diff --git a/build/bakefiles/wxpresets/sample/minimal.cpp b/build/bakefiles/wxpresets/sample/minimal.cpp
index eaac7b66a0..b395af17d0 100644
--- a/build/bakefiles/wxpresets/sample/minimal.cpp
+++ b/build/bakefiles/wxpresets/sample/minimal.cpp
@@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
// Name: minimal.cpp
-// Purpose: Minimal wxWindows sample
+// Purpose: Minimal wxWidgets sample
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
@@ -24,7 +24,7 @@
#endif
// for all others, include the necessary headers (this file is usually all you
-// need because it includes almost all "standard" wxWindows headers)
+// need because it includes almost all "standard" wxWidgets headers)
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
@@ -95,7 +95,7 @@ wxBEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(Minimal_About, MyFrame::OnAbout)
wxEND_EVENT_TABLE()
-// Create a new application object: this macro will allow wxWindows to create
+// Create a new application object: this macro will allow wxWidgets to create
// the application object during program execution (it's better than using a
// static object for many reasons) and also implements the accessor function
// wxGetApp() which will return the reference of the right type (i.e. MyApp and
@@ -114,7 +114,7 @@ wxIMPLEMENT_APP(MyApp);
bool MyApp::OnInit()
{
// create the main application window
- MyFrame *frame = new MyFrame(wxT("Minimal wxWindows App"));
+ MyFrame *frame = new MyFrame(wxT("Minimal wxWidgets App"));
// and show it (the frames, unlike simple controls, are not shown when
// created initially)
@@ -158,7 +158,7 @@ MyFrame::MyFrame(const wxString& title)
#if wxUSE_STATUSBAR
// create a status bar just for fun (by default with 1 pane only)
CreateStatusBar(2);
- SetStatusText(wxT("Welcome to wxWindows!"));
+ SetStatusText(wxT("Welcome to wxWidgets!"));
#endif // wxUSE_STATUSBAR
}
diff --git a/distrib/autopackage/sample/minimal.cpp b/distrib/autopackage/sample/minimal.cpp
index eaac7b66a0..b395af17d0 100644
--- a/distrib/autopackage/sample/minimal.cpp
+++ b/distrib/autopackage/sample/minimal.cpp
@@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
// Name: minimal.cpp
-// Purpose: Minimal wxWindows sample
+// Purpose: Minimal wxWidgets sample
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
@@ -24,7 +24,7 @@
#endif
// for all others, include the necessary headers (this file is usually all you
-// need because it includes almost all "standard" wxWindows headers)
+// need because it includes almost all "standard" wxWidgets headers)
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
@@ -95,7 +95,7 @@ wxBEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(Minimal_About, MyFrame::OnAbout)
wxEND_EVENT_TABLE()
-// Create a new application object: this macro will allow wxWindows to create
+// Create a new application object: this macro will allow wxWidgets to create
// the application object during program execution (it's better than using a
// static object for many reasons) and also implements the accessor function
// wxGetApp() which will return the reference of the right type (i.e. MyApp and
@@ -114,7 +114,7 @@ wxIMPLEMENT_APP(MyApp);
bool MyApp::OnInit()
{
// create the main application window
- MyFrame *frame = new MyFrame(wxT("Minimal wxWindows App"));
+ MyFrame *frame = new MyFrame(wxT("Minimal wxWidgets App"));
// and show it (the frames, unlike simple controls, are not shown when
// created initially)
@@ -158,7 +158,7 @@ MyFrame::MyFrame(const wxString& title)
#if wxUSE_STATUSBAR
// create a status bar just for fun (by default with 1 pane only)
CreateStatusBar(2);
- SetStatusText(wxT("Welcome to wxWindows!"));
+ SetStatusText(wxT("Welcome to wxWidgets!"));
#endif // wxUSE_STATUSBAR
}
diff --git a/docs/contributing/binary-compatibility.md b/docs/contributing/binary-compatibility.md
index 690d605816..b900aaab23 100644
--- a/docs/contributing/binary-compatibility.md
+++ b/docs/contributing/binary-compatibility.md
@@ -37,7 +37,7 @@ also the section about `wxABI_VERSION`.
What kind of changes are NOT binary compatible
----------------------------------------------
-If its still up, the
+If it's still up, the
[KDE guide](http://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++)
is a good reference.
@@ -45,7 +45,7 @@ is a good reference.
The changes that are NOT binary compatible:
- Adding a virtual function
-- Changing the name of a any function or variable
+- Changing the name of any function or variable
- Changing the signature of a virtual function (adding a parameter,
even a default one)
- Changing the order of the virtual functions in a class ("switching" them, etc.)
diff --git a/include/wx/app.h b/include/wx/app.h
index bbd97308ca..bc17b94b93 100644
--- a/include/wx/app.h
+++ b/include/wx/app.h
@@ -886,7 +886,7 @@ extern wxAppInitializer wxTheAppInitializer;
// deprecated variants _not_ requiring a semicolon after them
// (note that also some wx-prefixed macro do _not_ require a semicolon because
-// it's not always possible to force the compire to require it)
+// it's not always possible to force the compiler to require it)
#define IMPLEMENT_WXWIN_MAIN_CONSOLE wxIMPLEMENT_WXWIN_MAIN_CONSOLE
#define IMPLEMENT_WXWIN_MAIN wxIMPLEMENT_WXWIN_MAIN
diff --git a/include/wx/event.h b/include/wx/event.h
index c4da27e459..9b2572ae2e 100644
--- a/include/wx/event.h
+++ b/include/wx/event.h
@@ -4388,7 +4388,7 @@ WXDLLIMPEXP_CORE wxWindow* wxFindFocusDescendant(wxWindow* ancestor);
// deprecated variants _not_ requiring a semicolon after them and without wx prefix
// (note that also some wx-prefixed macro do _not_ require a semicolon because
-// it's not always possible to force the compire to require it)
+// it's not always possible to force the compiler to require it)
#define DECLARE_EVENT_TABLE_ENTRY(type, winid, idLast, fn, obj) \
wxDECLARE_EVENT_TABLE_ENTRY(type, winid, idLast, fn, obj)
diff --git a/include/wx/object.h b/include/wx/object.h
index 5b765fdd52..6a0140737b 100644
--- a/include/wx/object.h
+++ b/include/wx/object.h
@@ -207,7 +207,7 @@ inline T *wxCheckCast(const void *ptr)
// ----------------------------------------------------------------------------
// deprecated variants _not_ requiring a semicolon after them and without wx prefix.
// (note that also some wx-prefixed macro do _not_ require a semicolon because
-// it's not always possible to force the compire to require it)
+// it's not always possible to force the compiler to require it)
#define DECLARE_CLASS_INFO_ITERATORS() wxDECLARE_CLASS_INFO_ITERATORS();
#define DECLARE_ABSTRACT_CLASS(n) wxDECLARE_ABSTRACT_CLASS(n);
@@ -457,7 +457,7 @@ inline wxObject *wxCheckDynamicCast(wxObject *obj, wxClassInfo *classInfo)
// deprecated variants _not_ requiring a semicolon after them and without wx prefix.
// (note that also some wx-prefixed macro do _not_ require a semicolon because
-// it's not always possible to force the compire to require it)
+// it's not always possible to force the compiler to require it)
#define IMPLEMENT_DYNAMIC_CLASS(n,b) wxIMPLEMENT_DYNAMIC_CLASS(n,b)
#define IMPLEMENT_DYNAMIC_CLASS2(n,b1,b2) wxIMPLEMENT_DYNAMIC_CLASS2(n,b1,b2)
diff --git a/include/wx/stc/stc.h b/include/wx/stc/stc.h
index 5d2f3fbc0b..c8adbb3854 100644
--- a/include/wx/stc/stc.h
+++ b/include/wx/stc/stc.h
@@ -7,7 +7,7 @@
// This class delegates all method calls and events to the
// Scintilla objects and so forth. This allows the use of
// Scintilla without polluting the namespace with all the
-// classes and itentifiers from Scintilla.
+// classes and identifiers from Scintilla.
//
// Author: Robin Dunn
//
diff --git a/interface/wx/aui/framemanager.h b/interface/wx/aui/framemanager.h
index 68854534eb..5870065cd7 100644
--- a/interface/wx/aui/framemanager.h
+++ b/interface/wx/aui/framemanager.h
@@ -46,7 +46,7 @@ enum wxAuiManagerOption
/// When a docked pane is resized, its content is refreshed in live (instead of moving
/// the border alone and refreshing the content at the end).
wxAUI_MGR_LIVE_RESIZE = 1 << 8,
- /// Default behavior.
+ /// Default behaviour.
wxAUI_MGR_DEFAULT = wxAUI_MGR_ALLOW_FLOATING |
wxAUI_MGR_TRANSPARENT_HINT |
wxAUI_MGR_HINT_FADE |
@@ -144,7 +144,7 @@ enum wxAuiManagerOption
When a docked pane is resized, its content is refreshed in live (instead of moving
the border alone and refreshing the content at the end).
@style{wxAUI_MGR_DEFAULT}
- Default behavior, combines: wxAUI_MGR_ALLOW_FLOATING | wxAUI_MGR_TRANSPARENT_HINT |
+ Default behaviour, combines: wxAUI_MGR_ALLOW_FLOATING | wxAUI_MGR_TRANSPARENT_HINT |
wxAUI_MGR_HINT_FADE | wxAUI_MGR_NO_VENETIAN_BLINDS_FADE.
@endStyleTable
diff --git a/interface/wx/dataview.h b/interface/wx/dataview.h
index 5b1339ee55..1892e60740 100644
--- a/interface/wx/dataview.h
+++ b/interface/wx/dataview.h
@@ -3374,7 +3374,7 @@ public:
Process a @c wxEVT_DATAVIEW_COLUMN_SORTED event.
@event{EVT_DATAVIEW_COLUMN_REORDERED(id, func)}
Process a @c wxEVT_DATAVIEW_COLUMN_REORDERED event.
- Currently this even is only generated when using the native OSX
+ Currently this even is only generated when using the native OS X
version.
@event{EVT_DATAVIEW_ITEM_BEGIN_DRAG(id, func)}
Process a @c wxEVT_DATAVIEW_ITEM_BEGIN_DRAG event.
diff --git a/interface/wx/dc.h b/interface/wx/dc.h
index 8ff5c64ce9..ab129e2245 100644
--- a/interface/wx/dc.h
+++ b/interface/wx/dc.h
@@ -1578,7 +1578,7 @@ public:
context, if this wxDC has something that could be thought of in that
way. (Not all of them do.)
- For example, on Windows the return value is an HDC, on OSX it is a
+ For example, on Windows the return value is an HDC, on OS X it is a
CGContextRef and on wxGTK it will be a GdkDrawable. If the DC is a
wxGCDC then the return value will be the value returned from
wxGraphicsContext::GetNativeContext. A value of NULL is returned if
diff --git a/interface/wx/defs.h b/interface/wx/defs.h
index 6828c75a30..0de4f544bb 100644
--- a/interface/wx/defs.h
+++ b/interface/wx/defs.h
@@ -1063,7 +1063,7 @@ enum wxKeyModifier
wxMOD_META = 0x0008,
wxMOD_WIN = wxMOD_META,
- /** used to describe the true Ctrl Key under OSX,
+ /** used to describe the true Ctrl Key under OS X,
identic to @c wxMOD_CONTROL on other platforms */
wxMOD_RAW_CONTROL,
diff --git a/interface/wx/font.h b/interface/wx/font.h
index 1bc18f6b9a..459ca71dfd 100644
--- a/interface/wx/font.h
+++ b/interface/wx/font.h
@@ -114,7 +114,7 @@ enum wxFontFlag
/// Underlined style (not underlined by default).
wxFONTFLAG_UNDERLINED = 1 << 6,
- /// Strike-through style (implemented in MSW, GTK, and OSX)
+ /// Strike-through style (implemented in MSW, GTK, and wxOSX)
wxFONTFLAG_STRIKETHROUGH = 1 << 7,
/// the mask of all currently used flags
@@ -388,7 +388,7 @@ public:
/**
Use a strike-through version of the font.
- Currently this is only implemented in wxMSW, wxGTK and OSX.
+ Currently this is only implemented in wxMSW, wxGTK, and wxOSX.
*/
wxFontInfo& Strikethrough(bool strikethrough = true);
@@ -790,7 +790,7 @@ public:
/**
Returns stricken-through version of this font.
- Currently stricken-through fonts are only supported in wxMSW, wxGTK and OSX.
+ Currently stricken-through fonts are only supported in wxMSW, wxGTK, and wxOSX.
@see MakeStrikethrough()
@@ -852,7 +852,7 @@ public:
/**
Changes this font to be stricken-through.
- Currently stricken-through fonts are only supported in wxMSW, wxGTK and OSX.
+ Currently stricken-through fonts are only supported in wxMSW, wxGTK, and wxOSX.
@see Strikethrough()
@@ -1056,7 +1056,7 @@ public:
/**
Sets strike-through attribute of the font.
- Currently stricken-through fonts are only supported in wxMSW, wxGTK and OSX.
+ Currently stricken-through fonts are only supported in wxMSW, wxGTK, and wxOSX.
@param strikethrough
@true to add strike-through style, @false to remove it.
diff --git a/interface/wx/html/webkit.h b/interface/wx/html/webkit.h
index b387db9ea4..2caa7f4a80 100644
--- a/interface/wx/html/webkit.h
+++ b/interface/wx/html/webkit.h
@@ -20,7 +20,7 @@
RunScript return a value, which is a very critical feature in many web
embedding scenarios.
- This class is only available on OSX.
+ This class is only available on OS X.
**/
class wxWebKitCtrl : public wxControl
diff --git a/interface/wx/power.h b/interface/wx/power.h
index 005a90a36b..95638c75bb 100644
--- a/interface/wx/power.h
+++ b/interface/wx/power.h
@@ -106,7 +106,7 @@ wxEventType wxEVT_POWER_RESUME;
powering off the screen and Acquire() method can be used to do this.
Notice that currently this functionality is only implemented for MSW and
- OSX and on the latter only ::wxPOWER_RESOURCE_SYSTEM is supported for
+ OS X and on the latter only ::wxPOWER_RESOURCE_SYSTEM is supported for
versions earlier than 10.9.
If possible, use wxPowerResourceBlocker class to ensure that Release() is
diff --git a/interface/wx/preferences.h b/interface/wx/preferences.h
index 8ce835c319..a63536f175 100644
--- a/interface/wx/preferences.h
+++ b/interface/wx/preferences.h
@@ -184,7 +184,7 @@ public:
On OS X, preferences pages named "General" and "Advanced" are commonly used
in apps and the OS provides stock icons for them that should be used.
- Instead of reimplementing this behavior yourself, you can inherit from
+ Instead of reimplementing this behaviour yourself, you can inherit from
wxStockPreferencesPage and get correct title and icon.
Notice that this class only implements GetName() and GetLargeIcon(), you
diff --git a/interface/wx/simplebook.h b/interface/wx/simplebook.h
index 838a9034a6..ba2302fb3d 100644
--- a/interface/wx/simplebook.h
+++ b/interface/wx/simplebook.h
@@ -19,7 +19,7 @@
See the @ref page_samples_notebook for an example of wxSimplebook in
action.
- Notice that is often convenient to use ShowNewPage() instead of the base
+ Notice that it is often convenient to use ShowNewPage() instead of the base
class AddPage().
There are no special styles defined for this class as it has no visual
diff --git a/interface/wx/sysopt.h b/interface/wx/sysopt.h
index 4337c8c082..30d9461da0 100644
--- a/interface/wx/sysopt.h
+++ b/interface/wx/sysopt.h
@@ -121,7 +121,7 @@
This option only has effect for Mac OS X 10.4 and higher.
If 1 activates the spell checking in wxTextCtrl.
@flag{osx.openfiledialog.always-show-types}
- Per default a wxFileDialog with wxFD_OPEN does not show a types-popup on OSX but allows
+ Per default a wxFileDialog with wxFD_OPEN does not show a types-popup on OS X but allows
the selection of files from any of the supported types. Setting this to 1 shows a wxChoice
for selection (if there is more than one supported filetype).
@endFlagTable
diff --git a/interface/wx/taskbar.h b/interface/wx/taskbar.h
index bf8fc5251c..2be6f4489c 100644
--- a/interface/wx/taskbar.h
+++ b/interface/wx/taskbar.h
@@ -6,7 +6,7 @@
/////////////////////////////////////////////////////////////////////////////
/**
- On OSX Cocoa the taskbar icon can be in the doc or in the status area.
+ On wxOSX/Cocoa the taskbar icon can be in the doc or in the status area.
This enumeration can be used to select which will be instantiated.
*/
enum wxTaskBarIconType
@@ -91,7 +91,7 @@ class wxTaskBarIcon : public wxEvtHandler
{
public:
/**
- Default constructor. The iconType is only applicable on wxOSX_Cocoa.
+ Default constructor. The iconType is only applicable on wxOSX/Cocoa.
*/
wxTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE);
diff --git a/interface/wx/uiaction.h b/interface/wx/uiaction.h
index a9415d278a..27b3aaf2c2 100644
--- a/interface/wx/uiaction.h
+++ b/interface/wx/uiaction.h
@@ -109,7 +109,7 @@ public:
Press a key.
If you are using modifiers then it needs to be paired with an identical
- KeyUp or the modifiers will not be released (MSW and OSX).
+ KeyUp or the modifiers will not be released (MSW and OS X).
@param keycode
Key to operate on, as an integer. It is interpreted as a wxKeyCode.
diff --git a/interface/wx/webview.h b/interface/wx/webview.h
index 694eba7854..fa55f131e5 100644
--- a/interface/wx/webview.h
+++ b/interface/wx/webview.h
@@ -206,7 +206,7 @@ public:
It is designed to allow the creation of multiple backends for each port,
although currently just one is available. It differs from wxHtmlWindow in
that each backend is actually a full rendering engine, Trident on MSW and
- Webkit on OSX and GTK. This allows the correct viewing complex pages with
+ Webkit on OS X and GTK. This allows the correct viewing of complex pages with
javascript and css.
@section descriptions Backend Descriptions
@@ -235,7 +235,7 @@ public:
@par wxWEBVIEW_WEBKIT (OSX)
- The OSX WebKit backend uses Apple's
+ The OS X WebKit backend uses Apple's
WebView
class. This backend has full support for custom schemes and virtual file
systems.
@@ -499,21 +499,21 @@ public:
/**
Returns @true if the current selection can be copied.
- @note This always returns @c true on the OSX WebKit backend.
+ @note This always returns @c true on the OS X WebKit backend.
*/
virtual bool CanCopy() const = 0;
/**
Returns @true if the current selection can be cut.
- @note This always returns @c true on the OSX WebKit backend.
+ @note This always returns @c true on the OS X WebKit backend.
*/
virtual bool CanCut() const = 0;
/**
Returns @true if data can be pasted.
- @note This always returns @c true on the OSX WebKit backend.
+ @note This always returns @c true on the OS X WebKit backend.
*/
virtual bool CanPaste() const = 0;
@@ -688,7 +688,7 @@ public:
are changed, since this will require a new search. To reset the
search, for example resetting the highlights call the function
with an empty search phrase. This always returns @c wxNOT_FOUND
- on the OSX WebKit backend.
+ on the OS X WebKit backend.
@since 2.9.5
*/
virtual long Find(const wxString& text, wxWebViewFindFlags flags = wxWEBVIEW_FIND_DEFAULT) = 0;
diff --git a/interface/wx/window.h b/interface/wx/window.h
index 2b288e75c0..6b1c49a95f 100644
--- a/interface/wx/window.h
+++ b/interface/wx/window.h
@@ -3530,7 +3530,7 @@ public:
@remarks Use EVT_HOTKEY(hotkeyId, fnc) in the event table to capture the
event. This function is currently only implemented under MSW
- and OSX and always returns false in the other ports.
+ and OS X and always returns false in the other ports.
@see UnregisterHotKey()
*/
diff --git a/samples/help/doc.tex b/samples/help/doc.tex
index 30edc88ec5..1683439a1d 100644
--- a/samples/help/doc.tex
+++ b/samples/help/doc.tex
@@ -18,7 +18,7 @@
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
\setfooter{\thepage}{}{}{}{}{\thepage}%
-This is a demo document for the wxWindows 'help' sample.
+This is a demo document for the wxWidgets 'help' sample.
You should process this file with Tex2RTF, for example:
diff --git a/samples/propgrid/tests.cpp b/samples/propgrid/tests.cpp
index f91d684579..16bdccd6fd 100644
--- a/samples/propgrid/tests.cpp
+++ b/samples/propgrid/tests.cpp
@@ -1414,7 +1414,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
}
else
{
- RT_MSG(wxT("All tests successfull"))
+ RT_MSG(wxT("All tests successful"))
retVal = true;
if ( !interactive )
diff --git a/samples/xrc/rc/artprov.xrc b/samples/xrc/rc/artprov.xrc
index a22e30d82a..a3bdc9823e 100644
--- a/samples/xrc/rc/artprov.xrc
+++ b/samples/xrc/rc/artprov.xrc
@@ -18,7 +18,7 @@
diff --git a/samples/xrc/rc/derivdlg.xrc b/samples/xrc/rc/derivdlg.xrc
index 0bfcec78a0..9c43fd7a95 100644
--- a/samples/xrc/rc/derivdlg.xrc
+++ b/samples/xrc/rc/derivdlg.xrc
@@ -18,7 +18,7 @@
500,150
- This is a derived dialog using XRC. This type of derived dialog will likely be the heart of your project, and thus is the most important example in this demonstration.\n\nIt is recommended to open up derivdlg.cpp, derivdlg.h and derivdlg.xrc and follow along what is going on.\n\nThe steps to use a derived dialog are:\n\n(1) Derive your own dialog from wxDialog (derivdlg.cpp and derivdlg.h are an example).\n\n(2) In the source of the constructor of the derived dialog, load the XRC into the file, using the code as shown in the derivdlg.cpp\n\n(3)Add to the derived dilog's sourcecode some event handlers and other methods you want the dialog to do.\n\n(4)You can now just make an instance of the derived dialog and show it using ShowModal(), as is done in the MyFrame::OnDerivedDialogToolOrMenuCommand() method.\n\nThe remainder of this docuent will talk about how to use events with derived dialogs and XRC. There are 3 bits of an extra event functionality that this derived dialog can do, these will be described in turn:\n\n(A) Something to do when a user clicks on your custom button: This is straightforward. You name a control in the XRC file (in this example it is "my__button"). Then in the .cpp file, put an entry in the event table that will connect button clicks with that ID to a function that will be fired. The event table entry in the example is EVT__BUTTON( XRCID( "my__button" ), PreferencesDialog::OnMyButtonClicked ) This event table entry has 3 parts: The first part, EVT__BUTTON tells that you are describing a button click event. The final part, PreferencesDialog::OnMyButtonClicked() is what you want done in response to a button event. The middle part, XRCID( "my__button" ) is the restriction that only button events generated by a wxButton of that ID should trigger go on to do the function. This XRCID is the name of the wxButton in your XRC file. Now just describe, in the .h file and .cpp file, what you want your custom OnMyButtonClicked() function to do.\n\n(B) The second example is a very common requirement: that a checkbox or radiobutton disables some other control. The event table is set up the same as the "My Button" example above. However, it isn't an EVT__BUTTON event, it is an EVT__UPDATE__UI event: when the dialog does an updating of its UI (and thus fires this event) if the updating if of a control matching that XRCID, then it will do the specified function (which in this case looks at whether or not the checkbox is checked, and if it isn't checked, then disable the textctrl).\n\n(C) The last example shows how to handle the OK button. You will likely want to do something when the user presses OK, like save preferences or start some action (this example shows a simple case of just popping up a dialog and stopping a close). OK buttons are always named wxID__OK, so the XRC file should have it as wxID__OK also. The Event table has an EVT__BUTTON entry for wxID__OK (no XRCID though). Since this is a derived dialog with an event table, in response to an EVT__BUTTON event from a wxID__OK button, it will first look around in its own event table to see if there was any EVT__BUTTON entries, and since there is, it will do that one--if there wasn't it then checks out the base class's event table and sees if there was one there, and so on up the chain of inherited classes. Note that this is exactly what happens with the derived dialog's wxID__CANCEL button. You didn't put any EVT__BUTTON entries with an identifier of wxID__CANCEL, so after it scans your derived dialog's event table, it will then look at wxDialog's event table and see if there is one in that event table, and so on until it finds one. It will find a wxID__CANCEL handler, which will connect to the proper function (which causes the dialog to close).
+ This is a derived dialog using XRC. This type of derived dialog will likely be the heart of your project, and thus is the most important example in this demonstration.\n\nIt is recommended to open up derivdlg.cpp, derivdlg.h and derivdlg.xrc and follow along what is going on.\n\nThe steps to use a derived dialog are:\n\n(1) Derive your own dialog from wxDialog (derivdlg.cpp and derivdlg.h are an example).\n\n(2) In the source of the constructor of the derived dialog, load the XRC into the file, using the code as shown in the derivdlg.cpp\n\n(3)Add to the derived dialog's sourcecode some event handlers and other methods you want the dialog to do.\n\n(4)You can now just make an instance of the derived dialog and show it using ShowModal(), as is done in the MyFrame::OnDerivedDialogToolOrMenuCommand() method.\n\nThe remainder of this document will talk about how to use events with derived dialogs and XRC. There are 3 bits of an extra event functionality that this derived dialog can do, these will be described in turn:\n\n(A) Something to do when a user clicks on your custom button: This is straightforward. You name a control in the XRC file (in this example it is "my__button"). Then in the .cpp file, put an entry in the event table that will connect button clicks with that ID to a function that will be fired. The event table entry in the example is EVT__BUTTON( XRCID( "my__button" ), PreferencesDialog::OnMyButtonClicked ) This event table entry has 3 parts: The first part, EVT__BUTTON tells that you are describing a button click event. The final part, PreferencesDialog::OnMyButtonClicked() is what you want done in response to a button event. The middle part, XRCID( "my__button" ) is the restriction that only button events generated by a wxButton of that ID should trigger go on to do the function. This XRCID is the name of the wxButton in your XRC file. Now just describe, in the .h file and .cpp file, what you want your custom OnMyButtonClicked() function to do.\n\n(B) The second example is a very common requirement: that a checkbox or radiobutton disables some other control. The event table is set up the same as the "My Button" example above. However, it isn't an EVT__BUTTON event, it is an EVT__UPDATE__UI event: when the dialog does an update of its UI (and thus fires this event) if the updating is of a control matching that XRCID, then it will do the specified function (which in this case looks at whether or not the checkbox is checked, and if it isn't checked, then disable the textctrl).\n\n(C) The last example shows how to handle the OK button. You will likely want to do something when the user presses OK, like save preferences or start some action (this example shows a simple case of just popping up a dialog and stopping a close). OK buttons are always named wxID__OK, so the XRC file should have it as wxID__OK also. The Event table has an EVT__BUTTON entry for wxID__OK (no XRCID though). Since this is a derived dialog with an event table, in response to an EVT__BUTTON event from a wxID__OK button, it will first look around in its own event table to see if there was any EVT__BUTTON entries, and since there is, it will do that one--if there wasn't it then checks out the base class's event table and sees if there was one there, and so on up the chain of inherited classes. Note that this is exactly what happens with the derived dialog's wxID__CANCEL button. You didn't put any EVT__BUTTON entries with an identifier of wxID__CANCEL, so after it scans your derived dialog's event table, it will then look at wxDialog's event table and see if there is one in that event table, and so on until it finds one. It will find a wxID__CANCEL handler, which will connect to the proper function (which causes the dialog to close).
diff --git a/samples/xrc/rc/variable.xrc b/samples/xrc/rc/variable.xrc
index 4c07f1a184..064dd499c4 100644
--- a/samples/xrc/rc/variable.xrc
+++ b/samples/xrc/rc/variable.xrc
@@ -18,7 +18,7 @@
500,150
- VARIABLE EXPANSION ISN'T IMPLEMENTED CURRENTLY. You can use variable expansion in your XRC files. The steps to do this are:\n\n(1)Enclose a variable inside a dollarsign and round brackets, like this: dollarsign(version).\n\n(2) Set the XmlResource flags to allow expansion of variables.\n\n(3)Before you use that XML resource, inform the XmlResourceHandler what you want that variable's value to be, via wxResourceHandler::Get()->SetVariable( "version", "2.4.0")\n\n Now, at runtime, the variable will be automatically replace by its value before the control is constructed.\n\nThe number in the version at the bottom of this dialog is an example of this expansion in action.\n\nThis is very handy for things like replacing the text in a wxStaticText, since it is a much simpler way to make a wxStaticText be a proper size: by creating it the proper size. This is in contrast to the alternative way of having using some static non-variable value in your XRC, having XRC construct it, then your application having code to change the text of it, then your app getting its best size, then setting the statictext's size, then laying out the dialog's sizer again, and other work.
+ VARIABLE EXPANSION ISN'T IMPLEMENTED CURRENTLY. You can use variable expansion in your XRC files. The steps to do this are:\n\n(1)Enclose a variable inside a dollarsign and round brackets, like this: dollarsign(version).\n\n(2) Set the XmlResource flags to allow expansion of variables.\n\n(3)Before you use that XML resource, inform the XmlResourceHandler what you want that variable's value to be, via wxResourceHandler::Get()->SetVariable( "version", "2.4.0")\n\n Now, at runtime, the variable will be automatically replace by its value before the control is constructed.\n\nThe number in the version at the bottom of this dialog is an example of this expansion in action.\n\nThis is very handy for things like replacing the text in a wxStaticText, since it is a much simpler way to make a wxStaticText be a proper size: by creating it at the proper size. This is in contrast to the alternative way of using some static non-variable value in your XRC, having XRC construct it, then your application having code to change the text of it, then your app getting its best size, then setting the statictext's size, then laying out the dialog's sizer again, and other work.
diff --git a/src/common/combocmn.cpp b/src/common/combocmn.cpp
index 406e68ebc5..da17de86e6 100644
--- a/src/common/combocmn.cpp
+++ b/src/common/combocmn.cpp
@@ -520,7 +520,7 @@ void wxComboPopupWindow::OnDismiss()
{
wxComboCtrlBase* combo = (wxComboCtrlBase*) GetParent();
wxASSERT_MSG( wxDynamicCast(combo, wxComboCtrlBase),
- wxT("parent might not be wxComboCtrl, but check wxIMPLEMENT_DYNAMIC_CLASS(2) macro for correctness") );
+ wxT("parent might not be wxComboCtrl, but check wxIMPLEMENT_DYNAMIC_CLASS2() macro for correctness") );
combo->OnPopupDismiss(true);
}
diff --git a/src/common/tarstrm.cpp b/src/common/tarstrm.cpp
index ad1cff5e23..944835e927 100644
--- a/src/common/tarstrm.cpp
+++ b/src/common/tarstrm.cpp
@@ -1121,7 +1121,7 @@ bool wxTarOutputStream::PutNextEntry(wxTarEntry *entry)
if (m_tarstart != wxInvalidOffset)
m_datapos = m_tarstart + m_tarsize;
- // types that are not allowd any data
+ // types that are not allowed any data
const char nodata[] = {
wxTAR_LNKTYPE, wxTAR_SYMTYPE, wxTAR_CHRTYPE, wxTAR_BLKTYPE,
wxTAR_DIRTYPE, wxTAR_FIFOTYPE, 0
diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp
index c130ecd891..c7c26a9bfb 100644
--- a/src/generic/grid.cpp
+++ b/src/generic/grid.cpp
@@ -654,7 +654,7 @@ void wxGridCellAttrData::UpdateAttrRows( size_t pos, int numRows )
{
if (numRows > 0)
{
- // If rows inserted, include row counter where necessary
+ // If rows inserted, increment row counter where necessary
coords.SetRow(row + numRows);
}
else if (numRows < 0)
@@ -688,15 +688,15 @@ void wxGridCellAttrData::UpdateAttrCols( size_t pos, int numCols )
{
if ( numCols > 0 )
{
- // If rows inserted, include row counter where necessary
+ // If cols inserted, increment col counter where necessary
coords.SetCol(col + numCols);
}
else if (numCols < 0)
{
- // If rows deleted ...
+ // If cols deleted ...
if ((size_t)col >= pos - numCols)
{
- // ...either decrement row counter (if row still exists)...
+ // ...either decrement col counter (if col still exists)...
coords.SetCol(col + numCols);
}
else
@@ -800,12 +800,12 @@ void wxGridRowOrColAttrData::UpdateAttrRowsOrCols( size_t pos, int numRowsOrCols
{
if ( numRowsOrCols > 0 )
{
- // If rows inserted, include row counter where necessary
+ // If rows or cols inserted, increment row/col counter where necessary
rowOrCol += numRowsOrCols;
}
else if ( numRowsOrCols < 0)
{
- // If rows deleted, either decrement row counter (if row still exists)
+ // If rows/cols deleted, either decrement row/col counter (if row/col still exists)
if ((size_t)rowOrCol >= pos - numRowsOrCols)
rowOrCol += numRowsOrCols;
else
@@ -5186,7 +5186,7 @@ wxGrid::UpdateBlockBeingSelected(int topRow, int leftCol,
break;
case wxGridSelectRows:
- // only full rows selection allowd, ensure that we do select
+ // only full rows selection allowed, ensure that we do select
// full rows
leftCol = 0;
rightCol = GetNumberCols() - 1;
diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp
index 4bff9d94a7..d601451a09 100644
--- a/src/generic/scrlwing.cpp
+++ b/src/generic/scrlwing.cpp
@@ -1563,6 +1563,6 @@ WXLRESULT wxScrolledT_Helper::FilterMSWWindowProc(WXUINT nMsg, WXLRESULT rc)
}
#endif // __WXMSW__
-// NB: skipping wxScrolled in wxRTTI information because being a templte,
+// NB: skipping wxScrolled in wxRTTI information because being a template,
// it doesn't and can't implement wxRTTI support
wxIMPLEMENT_DYNAMIC_CLASS(wxScrolledWindow, wxPanel);
diff --git a/src/gtk/textentry.cpp b/src/gtk/textentry.cpp
index 804c381f45..2de7e069f7 100644
--- a/src/gtk/textentry.cpp
+++ b/src/gtk/textentry.cpp
@@ -173,9 +173,9 @@ void wxTextEntry::DoSetValue(const wxString& value, int flags)
{
if (value != DoGetValue())
{
- // use Remove() rather than SelectAll() to avoid unnecessary clipboard
+ // Use Remove() rather than SelectAll() to avoid unnecessary clipboard
// operations, and prevent triggering an apparent bug in GTK which
- // causes the the subsequent WriteText() to append rather than overwrite
+ // causes the subsequent WriteText() to append rather than overwrite.
{
EventsSuppressor noevents(this);
Remove(0, -1);
diff --git a/src/gtk/webview_webkit.cpp b/src/gtk/webview_webkit.cpp
index 0680c7e54e..d371ec75ff 100644
--- a/src/gtk/webview_webkit.cpp
+++ b/src/gtk/webview_webkit.cpp
@@ -136,10 +136,10 @@ wxgtk_webview_webkit_navigation(WebKitWebView *,
{
wxString wxuri = uri;
wxSharedPtr handler;
- wxVector > hanlders = webKitCtrl->GetHandlers();
+ wxVector > handlers = webKitCtrl->GetHandlers();
//We are not vetoed so see if we match one of the additional handlers
- for(wxVector >::iterator it = hanlders.begin();
- it != hanlders.end(); ++it)
+ for(wxVector >::iterator it = handlers.begin();
+ it != handlers.end(); ++it)
{
if(wxuri.substr(0, (*it)->GetName().length()) == (*it)->GetName())
{
@@ -357,11 +357,11 @@ wxgtk_webview_webkit_resource_req(WebKitWebView *,
wxString uri = webkit_network_request_get_uri(request);
wxSharedPtr handler;
- wxVector > hanlders = webKitCtrl->GetHandlers();
+ wxVector > handlers = webKitCtrl->GetHandlers();
//We are not vetoed so see if we match one of the additional handlers
- for(wxVector >::iterator it = hanlders.begin();
- it != hanlders.end(); ++it)
+ for(wxVector >::iterator it = handlers.begin();
+ it != handlers.end(); ++it)
{
if(uri.substr(0, (*it)->GetName().length()) == (*it)->GetName())
{
diff --git a/src/msw/app.cpp b/src/msw/app.cpp
index 8ce6c3928f..387be962c9 100644
--- a/src/msw/app.cpp
+++ b/src/msw/app.cpp
@@ -786,7 +786,7 @@ void wxApp::WakeUpIdle()
}
// ----------------------------------------------------------------------------
-// other wxApp event hanlders
+// other wxApp event handlers
// ----------------------------------------------------------------------------
void wxApp::OnEndSession(wxCloseEvent& WXUNUSED(event))
diff --git a/src/msw/ole/dropsrc.cpp b/src/msw/ole/dropsrc.cpp
index 171994a16b..e5b556d2ca 100644
--- a/src/msw/ole/dropsrc.cpp
+++ b/src/msw/ole/dropsrc.cpp
@@ -174,7 +174,7 @@ wxDropSource::~wxDropSource()
// Name : DoDragDrop
// Purpose : start drag and drop operation
// Returns : wxDragResult - the code of performed operation
-// Params : [in] int flags: specifies if moving is allowe (or only copying)
+// Params : [in] int flags: specifies if moving is allowed (or only copying)
// Notes : you must call SetData() before if you had used def ctor
wxDragResult wxDropSource::DoDragDrop(int flags)
{
diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp
index b6f9789aad..c7497c8aa1 100644
--- a/src/msw/treectrl.cpp
+++ b/src/msw/treectrl.cpp
@@ -2164,9 +2164,9 @@ void wxTreeCtrl::SortChildren(const wxTreeItemId& item)
// rely on the fact that TreeView_SortChildren does the same thing as our
// default behaviour, i.e. sorts items alphabetically and so call it
// directly if we're not in derived class (much more efficient!)
- // RN: Note that if you find you're code doesn't sort as expected this
+ // RN: Note that if you find your code doesn't sort as expected this
// may be why as if you don't use the wxDECLARE_CLASS/wxIMPLEMENT_CLASS
- // combo for your derived wxTreeCtrl if will sort without
+ // combo for your derived wxTreeCtrl it will sort without
// OnCompareItems
if ( GetClassInfo() == wxCLASSINFO(wxTreeCtrl) )
{
diff --git a/src/stc/stc.h.in b/src/stc/stc.h.in
index f506426857..b57b01705b 100644
--- a/src/stc/stc.h.in
+++ b/src/stc/stc.h.in
@@ -7,7 +7,7 @@
// This class delegates all method calls and events to the
// Scintilla objects and so forth. This allows the use of
// Scintilla without polluting the namespace with all the
-// classes and itentifiers from Scintilla.
+// classes and identifiers from Scintilla.
//
// Author: Robin Dunn
//
diff --git a/src/unix/fswatcher_inotify.cpp b/src/unix/fswatcher_inotify.cpp
index 694beecedf..6caeb3ab66 100644
--- a/src/unix/fswatcher_inotify.cpp
+++ b/src/unix/fswatcher_inotify.cpp
@@ -433,7 +433,7 @@ protected:
// If there's a filespec, assume he's not
if ( watch.GetFilespec().empty() )
{
- // The the only way to know the path for the first event,
+ // The only way to know the path for the first event,
// normally the IN_MOVED_FROM, is to retrieve the watch
// corresponding to oldinevt. This is needed for a move
// within a watch.