target type. The possible names for targets are:
exe create an executable file
- dll create a shared libary
+ dll create a shared library
lib create a static library
module create a library that is loaded at runtime (i.e. a plugin)
<!-- In MSVC these are the different build -->
<!-- configurations you can have (in the build menu), -->
<!-- and in autoconf is enabled with enable-xxx=xx. -->
- <!-- For other compilers a seperate configuration -->
+ <!-- For other compilers a separate configuration -->
<!-- file is created (such as config.gcc on gcc) -->
<!-- which has several options a user can modify. -->
<!-- -->
<!-- -->
<!-- The "base class" of all our build targets -->
<!-- This links with the appropriate native -->
- <!-- libraries required by the platform, the libaries -->
+ <!-- libraries required by the platform, the libraries -->
<!-- we want for our stuff, and the wxWindows libs. -->
major = minor = release = None
for l in lines:
if not l.startswith('#define'): continue
- splitted = l.strip().split()
- if splitted[0] != '#define': continue
- if len(splitted) < 3: continue
- name = splitted[1]
- value = splitted[2]
+ splitline = l.strip().split()
+ if splitline[0] != '#define': continue
+ if len(splitline) < 3: continue
+ name = splitline[1]
+ value = splitline[2]
if value == None: continue
if name == 'wxMAJOR_VERSION': major = int(value)
if name == 'wxMINOR_VERSION': minor = int(value)
IODBC_C_SRC=""
-dnl ODBC is handled seperately for MSW
+dnl ODBC is handled separately for MSW
if test "$TOOLKIT" != "MSW" ; then
if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
if test "x$OPENGL_LIBS" = "x"; then
dnl it should be an error and not a warning because OpenGL is not on
- dnl by default and so if it had been explicitely requested, we
+ dnl by default and so if it had been explicitly requested, we
dnl shouldn't just fall back to compiling the library without it
AC_MSG_ERROR(OpenGL libraries not available)
fi
\twocolwidtha{7cm}
\begin{twocollist}\itemsep=0pt
-\twocolitem{{\bf wxSOUND\_NOERR}}{No error occured}
-\twocolitem{{\bf wxSOUND\_IOERR}}{An input/output error occured, it may concern
+\twocolitem{{\bf wxSOUND\_NOERR}}{No error occurred}
+\twocolitem{{\bf wxSOUND\_IOERR}}{An input/output error occurred, it may concern
either a driver or a file}
\twocolitem{{\bf wxSOUND\_INVFRMT}}{The sound format passed to the function is
invalid. Generally, it means that you passed out of range values to the codec
\constfunc{wxSoundError}{GetError}{\void}
-It returns the last error which occured.
+It returns the last error which occurred.
\membersection{wxSoundStream::GetLastAccess}\label{wxsoundstreamgetlastaccess}
\func{void}{OnSoundEvent}{\param{int }{evt}}
-It is called by the wxSoundStream when a new sound event occured.
+It is called by the wxSoundStream when a new sound event occurred.
{
DECLARE_DYNAMIC_CLASS( cbBarInfo )
public:
- // textual name, by which this bar is refered in layout-customization dialogs
+ // textual name, by which this bar is referred in layout-customization dialogs
wxString mName;
// stores bar's bounds in pane's coordinates
#define wxFPB_EXTRA_X 10
#define wxFPB_EXTRA_Y 4
-#define wxFPB_BMP_RIGHTSPACE 2 // pixels of the bmp to be alligned from the right filled with space
+#define wxFPB_BMP_RIGHTSPACE 2 // pixels of the bmp to be aligned from the right filled with space
enum
{
This control is easy to use. Simply create it as a child for a panel or sash window, and populate panels with
wxFoldPanelBar::AddFoldPanel(). Then use the wxFoldPanelBar::AddFoldPanelWindow() to add wxWindow derived controls
- to the current fold panel. Use wxFoldPanelBar::AddFoldPanelSeperator() to put separators between the groups of
+ to the current fold panel. Use wxFoldPanelBar::AddFoldPanelSeparator() to put separators between the groups of
controls that need a visual separator to group them together. After all is constructed, the user can fold
the panels by doubleclicking on the bar or single click on the arrow, which will indicate the collapsed or
expanded state.
void RefreshPanelsFrom(wxFoldPanelItem *item);
/** Returns the length of the panels that are expanded and collapsed. This is useful to determine
- quickly what size is used to display, and what is left at the bottom (right) to allign
+ quickly what size is used to display, and what is left at the bottom (right) to align
the collapsed panels. */
int GetPanelsLength(int &collapsed, int &expanded);
/** Reposition all the collapsed panels to the bottom. When it is not possible to
- allign them to the bottom, stick them behind the visible panels. The Rect holds the
+ align them to the bottom, stick them behind the visible panels. The Rect holds the
slack area left between last repositioned panel and the bottom panels. This needs to
get a refresh */
wxRect RepositionCollapsedToBottom();
/** Adds a wxWindow derived class to the referenced wxFoldPanel. IMPORTANT: Make the to be created window,
child of the wxFoldPanel. See example that follows. The flags to be used are:
- - wxFPB_ALIGN_WIDTH: Which means the wxWindow to be added will be alligned to fit the width of the
+ - wxFPB_ALIGN_WIDTH: Which means the wxWindow to be added will be aligned to fit the width of the
wxFoldPanel when it is resized. Very handy for sizer items, buttons and text boxes.
- - wxFPB_ALIGN_LEFT: Alligns left instead of fitting the width of the child window to be added. Use either
+ - wxFPB_ALIGN_LEFT: Aligns left instead of fitting the width of the child window to be added. Use either
this one or wxFPB_ALIGN_WIDTH.
The wxWindow to be added can be slightly indented from left and right so it is more visibly placed
// color and also the indents and width alligning like a control.
m_pnl->AddFoldPanelSeperator(item);
- // now add a text ctrl. Also very easy. Allign this on width so that when the control gets wider
+ // now add a text ctrl. Also very easy. Align this on width so that when the control gets wider
// the text control also sizes along.
m_pnl->AddFoldPanelWindow(item, new wxTextCtrl(item.GetParent(), wxID_ANY, wxT("Comment")), wxFPB_ALIGN_WIDTH, wxFPB_DEFAULT_SPACING, 20);
int Spacing = wxFPB_DEFAULT_SPACING, int leftSpacing = wxFPB_DEFAULT_LEFTSPACING,
int rightSpacing = wxFPB_DEFAULT_RIGHTSPACING);
- /** Adds a seperator line to the current wxFoldPanel. The seperator is a simple line which is drawn and is no
- real component. It can be used to seperate groups of controls which belong to eachother. The colour is
+ /** Adds a separator line to the current wxFoldPanel. The separator is a simple line which is drawn and is no
+ real component. It can be used to separate groups of controls which belong to each other. The colour is
adjustable, and it takes the same ySpacing, leftSpacing and rightSpacing as AddFoldPanelWindow(). */
int AddFoldPanelSeperator(const wxFoldPanel &panel, const wxColour &color = wxColour(167,167,167),
int Spacing = wxFPB_DEFAULT_SPACING, int leftSpacing = wxFPB_DEFAULT_LEFTLINESPACING,
};
// resize the element, whatever it is. A separator or
- // line will be always alligned by width or hight
+ // line will be always aligned by width or height
// depending on orientation of the whole panel
void ResizeItem(int size, bool vertical) {
if(m_flags & wxFPB_ALIGN_WIDTH)
{
- // allign by taking full width
+ // align by taking full width
int mySize = size - m_leftSpacing - m_rightSpacing;
if(mySize < 0)
virtual ~wxFoldPanelItem();
/** Add a window item to the list of items on this panel. The flags are wxFPB_ALIGN_LEFT for a non sizing
- window element, and wxFPB_ALIGN_WIDTH for a width alligned item. The ySpacing parameter reserves a number
+ window element, and wxFPB_ALIGN_WIDTH for a width aligned item. The ySpacing parameter reserves a number
of pixels before the window element, and leftSpacing is an indent. rightSpacing is only relevant when the
style wxFPB_ALIGN_WIDTH is chosen. */
void AddWindow(wxWindow *window, int flags, int ySpacing, int leftSpacing, int rightSpacing);
// ---------------------
// wxSoundError:
-// - wxSOUND_NOERR: No error occured
-// - wxSOUND_IOERR: an input/output error occured, it may concern either
+// - wxSOUND_NOERR: No error occurred
+// - wxSOUND_IOERR: an input/output error occurred, it may concern either
// a driver or a file
// - wxSOUND_INVFRMT: the sound format passed to the function is invalid.
// Generally, it means that you passed out of range values
// ---------------------
// wxSoundCallback(stream, evt, cdata): C callback for sound event.
// - stream: current wxSoundStream
-// - evt: the sound event which has occured, it may be wxSOUND_INPUT,
+// - evt: the sound event which has occurred, it may be wxSOUND_INPUT,
// wxSOUND_OUTPUT or wxSOUND_DUPLEX
// - cdata: User callback data
// ---------------------
info.mRect.height = mSepartorSize;
}
- // Do we need to set a new size to a seperator object?
+ // Do we need to set a new size to a separator object?
if ( info.mpToolWnd )
{
info.mpToolWnd->SetSize( info.mRect.x,
int value = 0;
// assumed here that all the panels that are expanded
- // are positioned after eachother from 0,0 to end.
+ // are positioned after each other from 0,0 to end.
for(size_t j = 0; j < m_panels.GetCount(); j++)
{
if (m_prebuffer)
delete[] m_prebuffer;
- // We try to minimize the need of dynamic memory allocation by preallocating a buffer. But
+ // We try to minimize the need for dynamic memory allocation by preallocating a buffer. But
// to be sure it will be efficient we minimize the best size.
if (m_multiplier_in < m_multiplier_out) {
m_prebuffer_size = (wxUint32)(m_sndio->GetBestSize() *
// AllocHeaders() allocates WXSOUND_MAX_QUEUE (= 128) blocks for an operation
// queue. It uses AllocHeader() for each element.
//
-// Once it has allocated all blocks, it returns true and if an error occured
+// Once it has allocated all blocks, it returns true and if an error occurred
// it returns false.
// -------------------------------------------------------------------------
bool wxSoundStreamWin::AllocHeaders(int mode)
char stopChars[256];
char fillUpChars[256];
char separator;
- char typesep; // Type seperator
+ char typesep; // Type separator
public:
bool ignoreCase;
void SetSeparator(char separator_);
char GetSeparator();
- /// The typesep character is used for seperating the word from the type
+ /// The typesep character is used for separating the word from the type
void SetTypesep(char separator_);
char GetTypesep();
int currentInterface = CheckMETAPOSTInterface(startPos,length,styler,defaultInterface) ;
// 0 no keyword highlighting
- // 1 metapost keyword hightlighting
- // 2+ metafun keyword hightlighting
+ // 1 metapost keyword highlighting
+ // 2+ metafun keyword highlighting
int extraInterface = 0 ;
-bool rc2wxr::Seperator(int ch)
+bool rc2wxr::Separator(int ch)
{
-while (Seperator(ch))
+while (Separator(ch))
{
-while (!Seperator(ch))
+while (!Separator(ch))
{
void ParseStaticText();
void ParseTextCtrl();
void ParsePushButton();
- bool Seperator(int ch);
+ bool Separator(int ch);
void ParseGroupBox();
void ReadRect(int & x, int & y, int & width, int & height);
wxString GetToken();
}
-bool rc2xml::Seperator(int ch)
+bool rc2xml::Separator(int ch)
{
//if ((ch==' ')|(ch==',')|(ch==13)|(ch==10)|(ch=='|')|(ch=='\t'))
if ((ch==' ')|(ch==',')|(ch==13)|(ch==10)|(ch=='\t'))
return ret; // check for more parameters
}
-wxString rc2xml::GetToken(bool *listseperator)
+wxString rc2xml::GetToken(bool *listseparator)
{
wxString token=wxEmptyString;
return token;
}
- while (Seperator(ch))
+ while (Separator(ch))
{
ReadChar(ch);
if (m_done)
}
- while (!Seperator(ch))
+ while (!Separator(ch))
{
token += (char)ch;
ReadChar(ch);
if (ch == EOF)
m_done = true;
- if (listseperator)
- *listseperator = (ch == ',');
+ if (listseparator)
+ *listseparator = (ch == ',');
return token;
}
void ParseRadioButton(wxString phrase,wxString varname);
void ParseCheckBox(wxString phrase,wxString varname);
void ParsePushButton(wxString phrase, wxString varname);
- bool Seperator(int ch);
+ bool Separator(int ch);
void ParseGroupBox(wxString phrase, wxString varname);
bool ReadRect(int & x, int & y, int & width, int & height);
- wxString GetToken(bool *listseperator = 0);
+ wxString GetToken(bool *listseparator = 0);
wxString GetQuoteField();
wxString GetStringQuote();
void ReadChar(int &ch);
the lucky ones of you that have never used Windows.
2. Installation
-If you are reading this file, I suppose you have succesfully unpacked the
+If you are reading this file, I suppose you have successfully unpacked the
files in a directory of your hard disk :-). You should already have
installed wxWin on your system.
Now you have to modify makefile.bcc
msg.Append (_T("\nODBC errors:\n"));
// msg += _T("\n");
/* Scan through each database connection displaying
- * any ODBC errors that have occured. */
+ * any ODBC errors that have occurred. */
wxDbList *pDbList;
for (pDbList = PtrBegDbList; pDbList; pDbList = pDbList->PtrNext)
{
frame->pDoc->p_Splitter = frame->p_Splitter;
frame->pDoc->p_Splitter->pDoc = frame->pDoc; // ControlBase: saving the Sash
//---------------------------------------------------------------------------------------
- //-- Problem : GetClientSize(Width,Hight) are not the same as the values given in the ---
+ //-- Problem : GetClientSize(Width,Height) are not the same as the values given in the ---
//-- construction of the Frame. ---
//-- Solved : GetClientSize is called here and the difference is noted. When the ---
//-- Window is closed the diff. is added to the result of GetClientSize. ---
#: ../browsedb.cpp:117
msgid "\n"
- "-E-> BrowserDB::OnStartDB() : DB CONNECTION ERROR : A problem occured while trying to get a connection to the data source"
+ "-E-> BrowserDB::OnStartDB() : DB CONNECTION ERROR : A problem occurred while trying to get a connection to the data source"
msgstr "\n"
"-E-> BrowserDB::OnStartDB() : DB VERBINDUNGSFEHLER : Verbindungsaufbau zur Datenquelle nicht möglich"
msgstr "-E-> unbekannte Format(%d) - sql(%d)"
#: ../pgmctrl.cpp:165
-msgid "-E-> wxConfigBase.p_ProgramCfg->DeleteAll() was not succesfull !"
+msgid "-E-> wxConfigBase.p_ProgramCfg->DeleteAll() was not successful !"
msgstr "-E-> wxConfigBase.p_ProgramCfg->DeleteAll() war nicht Erfolgreich !"
#: ../pgmctrl.cpp:149
msgstr "-I-> PgmCtrl::OnSelChanged - %s"
#: ../pgmctrl.cpp:163
-msgid "-I-> wxConfigBase.p_ProgramCfg->DeleteAll() was succesfull."
+msgid "-I-> wxConfigBase.p_ProgramCfg->DeleteAll() was successful."
msgstr "-I-> wxConfigBase.p_ProgramCfg->DeleteAll() war Erfolgreich !"
#: ../dbbrowse.cpp:115 ../dbbrowse.cpp:175
if (Temp1 == _T("wxConfigBase Delete"))
{
if (p_ProgramCfg->DeleteAll()) // Default Diretory for wxFileSelector
- Temp0 = _("-I-> wxConfigBase.p_ProgramCfg->DeleteAll() was succesfull.");
+ Temp0 = _("-I-> wxConfigBase.p_ProgramCfg->DeleteAll() was successful.");
else
- Temp0 = _("-E-> wxConfigBase.p_ProgramCfg->DeleteAll() was not succesfull !");
+ Temp0 = _("-E-> wxConfigBase.p_ProgramCfg->DeleteAll() was not successful !");
wxBell(); // Ding_a_Ling
Treffer++;
}
contrib/samples/animate/*.cpp
contrib/samples/animate/*.h
-contrib/samples/animate/*.def
contrib/samples/animate/makefile*
contrib/samples/animate/*.xbm
contrib/samples/animate/*.xpm
contrib/samples/applet/*.cpp
contrib/samples/applet/*.h
-contrib/samples/applet/*.def
contrib/samples/applet/makefile*
contrib/samples/applet/*.xbm
contrib/samples/applet/*.xpm
contrib/samples/deprecated/proplist/*.cpp
contrib/samples/deprecated/proplist/*.h
-contrib/samples/deprecated/proplist/*.def
contrib/samples/deprecated/proplist/makefile*
contrib/samples/deprecated/proplist/*.xbm
contrib/samples/deprecated/proplist/*.xpm
contrib/samples/deprecated/resource/*.cpp
contrib/samples/deprecated/resource/*.h
-contrib/samples/deprecated/resource/*.def
contrib/samples/deprecated/resource/makefile*
contrib/samples/deprecated/resource/*.xbm
contrib/samples/deprecated/resource/*.xpm
contrib/samples/deprecated/treelay/*.cpp
contrib/samples/deprecated/treelay/*.h
-contrib/samples/deprecated/treelay/*.def
contrib/samples/deprecated/treelay/makefile*
contrib/samples/deprecated/treelay/*.xbm
contrib/samples/deprecated/treelay/*.xpm
contrib/samples/fl/bitmaps/*.xpm
contrib/samples/fl/*.cpp
contrib/samples/fl/*.h
-contrib/samples/fl/*.def
contrib/samples/fl/*.xbm
contrib/samples/fl/*.xpm
contrib/samples/fl/*.txt
contrib/samples/gizmos/dynsash/*.cpp
contrib/samples/gizmos/dynsash/*.h
-contrib/samples/gizmos/dynsash/*.def
contrib/samples/gizmos/dynsash/makefile*
contrib/samples/gizmos/dynsash/*.xbm
contrib/samples/gizmos/dynsash/*.xpm
contrib/samples/gizmos/dynsash_switch/*.cpp
contrib/samples/gizmos/dynsash_switch/*.h
-contrib/samples/gizmos/dynsash_switch/*.def
contrib/samples/gizmos/dynsash_switch/makefile*
contrib/samples/gizmos/dynsash_switch/*.xbm
contrib/samples/gizmos/dynsash_switch/*.xpm
contrib/samples/gizmos/editlbox/*.cpp
contrib/samples/gizmos/editlbox/*.h
-contrib/samples/gizmos/editlbox/*.def
contrib/samples/gizmos/editlbox/makefile*
contrib/samples/gizmos/editlbox/*.xbm
contrib/samples/gizmos/editlbox/*.xpm
contrib/samples/gizmos/led/*.cpp
contrib/samples/gizmos/led/*.h
-contrib/samples/gizmos/led/*.def
contrib/samples/gizmos/led/makefile*
contrib/samples/gizmos/led/*.xbm
contrib/samples/gizmos/led/*.xpm
contrib/samples/gizmos/multicell/*.cpp
contrib/samples/gizmos/multicell/*.h
-contrib/samples/gizmos/multicell/*.def
contrib/samples/gizmos/multicell/makefile*
contrib/samples/gizmos/multicell/*.xbm
contrib/samples/gizmos/multicell/*.xpm
contrib/samples/gizmos/splittree/*.cpp
contrib/samples/gizmos/splittree/*.h
-contrib/samples/gizmos/splittree/*.def
contrib/samples/gizmos/splittree/makefile*
contrib/samples/gizmos/splittree/*.xbm
contrib/samples/gizmos/splittree/*.xpm
contrib/samples/plot/*.cpp
contrib/samples/plot/*.h
-contrib/samples/plot/*.def
contrib/samples/plot/makefile*
contrib/samples/plot/*.xbm
contrib/samples/plot/*.xpm
utils/hhp2cached/*.h
utils/hhp2cached/*.cpp
-utils/hhp2cached/*.def
utils/hhp2cached/*.rc
utils/hhp2cached/makefile*
utils/hhp2cached/*.bkl
samples/access/*.cpp
samples/access/*.h
-samples/access/*.def
samples/access/makefile*
samples/access/*.xbm
samples/access/*.xpm
samples/artprov/*.cpp
samples/artprov/*.h
-samples/artprov/*.def
samples/artprov/makefile*
samples/artprov/*.xbm
samples/artprov/*.xpm
samples/calendar/*.h
samples/calendar/makefile*
samples/calendar/*.rc
-samples/calendar/*.def
samples/calendar/*.ico
samples/calendar/*.xpm
samples/calendar/*.txt
samples/caret/*.h
samples/caret/makefile*
samples/caret/*.rc
-samples/caret/*.def
samples/caret/*.bmp
samples/caret/*.xpm
samples/caret/*.xbm
samples/checklst/*.cpp
samples/checklst/*.h
-samples/checklst/*.def
samples/checklst/*.rc
samples/checklst/*.txt
samples/checklst/makefile*
samples/config/*.cpp
samples/config/*.h
-samples/config/*.def
samples/config/makefile*
samples/config/*.xbm
samples/config/*.xpm
samples/console/*.h
samples/console/makefile*
samples/console/*.rc
-samples/console/*.def
samples/console/*.bmp
samples/console/*.xpm
samples/console/*.xbm
samples/controls/*.cpp
samples/controls/*.h
-samples/controls/*.def
samples/controls/makefile*
samples/controls/*.xbm
samples/controls/*.xpm
samples/dialup/*.h
samples/dialup/makefile*
samples/dialup/*.rc
-samples/dialup/*.def
samples/dialup/*.bmp
samples/dialup/*.xpm
samples/dialup/*.xbm
samples/display/*.h
samples/display/makefile*
samples/display/*.rc
-samples/display/*.def
samples/display/*.bmp
samples/display/*.xpm
samples/display/*.xbm
samples/db/*.cpp
samples/db/*.h
-samples/db/*.def
samples/db/makefile*
samples/db/*.xbm
samples/db/*.xpm
samples/debugrpt/*.cpp
samples/debugrpt/*.h
-samples/debugrpt/*.def
samples/debugrpt/makefile*
samples/debugrpt/*.xbm
samples/debugrpt/*.xpm
samples/dnd/makefile*
samples/dnd/*.rc
samples/dnd/*.wxr
-samples/dnd/*.def
samples/dnd/*.bmp
samples/dnd/*.xbm
samples/dnd/*.xpm
samples/drawing/*.h
samples/drawing/makefile*
samples/drawing/*.rc
-samples/drawing/*.def
samples/drawing/*.bmp
samples/drawing/*.xpm
samples/drawing/*.xbm
samples/dialogs/*.h
samples/dialogs/*.cpp
-samples/dialogs/*.def
samples/dialogs/*.rc
samples/dialogs/makefile*
samples/dialogs/*.xbm
samples/docview/*.h
samples/docview/*.cpp
-samples/docview/*.def
samples/docview/*.rc
samples/docview/makefile*
samples/docview/*.xbm
samples/docvwmdi/*.h
samples/docvwmdi/*.cpp
-samples/docvwmdi/*.def
samples/docvwmdi/*.rc
samples/docvwmdi/makefile*
samples/docvwmdi/*.xbm
samples/dragimag/*.h
samples/dragimag/makefile*
samples/dragimag/*.rc
-samples/dragimag/*.def
samples/dragimag/*.ico
samples/dragimag/*.xpm
samples/dragimag/*.png
samples/dynamic/*.cpp
samples/dynamic/*.h
-samples/dynamic/*.def
samples/dynamic/makefile*
samples/dynamic/*.xbm
samples/dynamic/*.xpm
samples/erase/*.cpp
samples/erase/*.h
-samples/erase/*.def
samples/erase/makefile*
samples/erase/*.xbm
samples/erase/*.xpm
samples/event/*.cpp
samples/event/*.h
-samples/event/*.def
samples/event/*.rc
samples/event/*.inf
samples/event/*.txt
samples/except/*.h
samples/except/makefile*
samples/except/*.rc
-samples/except/*.def
samples/except/*.ico
samples/except/*.xpm
samples/except/*.txt
samples/exec/*.h
samples/exec/makefile*
samples/exec/*.rc
-samples/exec/*.def
samples/exec/*.ico
samples/exec/*.xpm
samples/exec/*.txt
samples/font/*.h
samples/font/makefile*
samples/font/*.rc
-samples/font/*.def
samples/font/*.bmp
samples/font/*.xpm
samples/font/*.xbm
samples/grid/*.cpp
samples/grid/*.h
-samples/grid/*.def
samples/grid/*.rc
samples/grid/*.txt
samples/grid/makefile*
samples/help/*.cpp
samples/help/*.h
-samples/help/*.def
samples/help/makefile*
samples/help/*.xbm
samples/help/*.xpm
samples/htlbox/*.cpp
samples/htlbox/*.h
-samples/htlbox/*.def
samples/htlbox/makefile*
samples/htlbox/*.xpm
samples/htlbox/*.ico
samples/html/about/*.h
samples/html/about/makefile*
samples/html/about/*.rc
-samples/html/about/*.def
samples/html/about/*.bmp
samples/html/about/*.xpm
samples/html/about/*.xbm
samples/html/help/*.h
samples/html/help/makefile*
samples/html/help/*.rc
-samples/html/help/*.def
samples/html/help/*.bmp
samples/html/help/*.xpm
samples/html/help/*.xbm
samples/html/htmlctrl/*.h
samples/html/htmlctrl/makefile*
samples/html/htmlctrl/*.rc
-samples/html/htmlctrl/*.def
samples/html/htmlctrl/*.bmp
samples/html/htmlctrl/*.xpm
samples/html/htmlctrl/*.xbm
samples/html/printing/makefile*
samples/html/printing/*.rc
samples/html/printing/*.pro
-samples/html/printing/*.def
samples/html/printing/*.bmp
samples/html/printing/*.xpm
samples/html/printing/*.xbm
samples/html/test/*.h
samples/html/test/makefile*
samples/html/test/*.rc
-samples/html/test/*.def
samples/html/test/*.bmp
samples/html/test/*.xpm
samples/html/test/*.xbm
samples/html/virtual/*.h
samples/html/virtual/makefile*
samples/html/virtual/*.rc
-samples/html/virtual/*.def
samples/html/virtual/*.bmp
samples/html/virtual/*.xpm
samples/html/virtual/*.xbm
samples/html/widget/*.h
samples/html/widget/makefile*
samples/html/widget/*.rc
-samples/html/widget/*.def
samples/html/widget/*.bmp
samples/html/widget/*.xpm
samples/html/widget/*.xbm
samples/html/zip/*.h
samples/html/zip/makefile*
samples/html/zip/*.rc
-samples/html/zip/*.def
samples/html/zip/*.bmp
samples/html/zip/*.xpm
samples/html/zip/*.xbm
samples/html/helpview/*.h
samples/html/helpview/makefile*
samples/html/helpview/*.rc
-samples/html/helpview/*.def
samples/html/helpview/*.bmp
samples/html/helpview/*.xpm
samples/html/helpview/*.xbm
samples/image/*.h
samples/image/makefile*
samples/image/*.rc
-samples/image/*.def
samples/image/*.bmp
samples/image/*.xpm
samples/image/*.xbm
samples/internat/*.cpp
samples/internat/*.h
-samples/internat/*.def
samples/internat/*.rc
samples/internat/*.txt
samples/internat/makefile*
samples/ipc/client.g95
samples/ipc/server.g95
samples/ipc/*.rc
-samples/ipc/*.def
samples/ipc/*.bmp
samples/ipc/*.xpm
samples/ipc/*.xbm
samples/joytest/*.h
samples/joytest/*.cpp
-samples/joytest/*.def
samples/joytest/*.rc
samples/joytest/makefile.*
samples/joytest/*.txt
samples/keyboard/*.cpp
samples/keyboard/*.h
-samples/keyboard/*.def
samples/keyboard/*.rc
samples/keyboard/*.txt
samples/keyboard/makefile*
samples/layout/*.cpp
samples/layout/*.h
-samples/layout/*.def
samples/layout/makefile*
samples/layout/*.xbm
samples/layout/*.xpm
samples/listbox/*.cpp
samples/listbox/*.h
-samples/listbox/*.def
samples/listbox/*.rc
samples/listbox/*.txt
samples/listbox/makefile*
samples/listctrl/*.cpp
samples/listctrl/*.h
-samples/listctrl/*.def
samples/listctrl/*.rc
samples/listctrl/*.txt
samples/listctrl/makefile*
samples/mdi/*.cpp
samples/mdi/*.h
-samples/mdi/*.def
samples/mdi/makefile*
samples/mdi/*.xbm
samples/mdi/*.xpm
samples/mediaplayer/*.cpp
samples/mediaplayer/*.h
-samples/mediaplayer/*.def
samples/mediaplayer/makefile*
samples/mediaplayer/*.xbm
samples/mediaplayer/*.xpm
samples/menu/*.h
samples/menu/makefile*
samples/menu/*.rc
-samples/menu/*.def
samples/menu/*.bmp
samples/menu/*.xpm
samples/menu/*.xbm
samples/memcheck/*.h
samples/memcheck/*.cpp
-samples/memcheck/*.def
samples/memcheck/*.rc
samples/memcheck/makefile*
samples/memcheck/*.xbm
samples/minimal/*.cpp
samples/minimal/*.h
-samples/minimal/*.def
samples/minimal/makefile*
samples/minimal/*.xbm
samples/minimal/*.xpm
samples/minifram/*.h
samples/minifram/*.cpp
-samples/minifram/*.def
samples/minifram/*.rc
samples/minifram/makefile*
samples/minifram/*.xbm
samples/multimon/*.h
samples/multimon/*.cpp
-samples/multimon/*.def
samples/multimon/*.rc
samples/multimon/makefile*
samples/multimon/*.xbm
samples/notebook/*.h
samples/notebook/makefile*
samples/notebook/*.rc
-samples/notebook/*.def
samples/notebook/*.bmp
samples/notebook/*.xbm
samples/notebook/*.xpm
samples/odbc/*.h
samples/odbc/*.cpp
-samples/odbc/*.def
samples/odbc/*.rc
samples/odbc/makefile*
samples/odbc/*.inf
samples/popup/*.h
samples/popup/makefile*
samples/popup/*.rc
-samples/popup/*.def
samples/popup/*.bmp
samples/popup/*.xpm
samples/popup/*.ico
samples/printing/*.cpp
samples/printing/*.h
-samples/printing/*.def
samples/printing/makefile*
samples/printing/*.xbm
samples/printing/*.xpm
samples/propsize/*.cpp
samples/propsize/*.h
-samples/propsize/*.def
samples/propsize/makefile*
samples/propsize/*.xbm
samples/propsize/*.xpm
samples/render/*.cpp
samples/render/*.h
-samples/render/*.def
samples/render/makefile*
samples/render/*.xbm
samples/render/*.xpm
samples/richedit/*.cpp
samples/richedit/*.h
-samples/richedit/*.def
samples/richedit/makefile*
samples/richedit/*.xbm
samples/richedit/*.xpm
samples/rotate/*.h
samples/rotate/makefile*
samples/rotate/*.rc
-samples/rotate/*.def
samples/rotate/*.ico
samples/rotate/*.xpm
samples/rotate/*.txt
-samples/rotate/*.bmp
+samples/rotate/*.png
samples/rotate/*.pro
samples/rotate/*.bkl
samples/sashtest/*.cpp
samples/sashtest/*.h
-samples/sashtest/*.def
samples/sashtest/*.rc
samples/sashtest/*.txt
samples/sashtest/makefile*
samples/scroll/*.h
samples/scroll/makefile*
samples/scroll/*.rc
-samples/scroll/*.def
samples/scroll/*.bmp
samples/scroll/*.xpm
samples/scroll/*.xbm
samples/scrollsub/*.h
samples/scrollsub/makefile*
samples/scrollsub/*.rc
-samples/scrollsub/*.def
samples/scrollsub/*.bmp
samples/scrollsub/*.xpm
samples/scrollsub/*.xbm
samples/shaped/*.h
samples/shaped/makefile*
samples/shaped/*.rc
-samples/shaped/*.def
samples/shaped/*.bmp
samples/shaped/*.xpm
samples/shaped/*.xbm
samples/splash/*.h
samples/splash/*.cpp
-samples/splash/*.def
samples/splash/*.rc
samples/splash/makefile*
samples/splash/*.xbm
samples/splitter/*.cpp
samples/splitter/*.h
-samples/splitter/*.def
samples/splitter/*.rc
samples/splitter/*.txt
samples/splitter/makefile*
samples/sockets/*.cpp
samples/sockets/*.h
-samples/sockets/*.def
samples/sockets/makefile*
samples/sockets/client.wat
samples/sockets/server.wat
samples/sound/*.h
samples/sound/makefile*
samples/sound/*.rc
-samples/sound/*.def
samples/sound/*.ico
samples/sound/*.xpm
samples/sound/*.bmp
samples/statbar/*.h
samples/statbar/makefile*
samples/statbar/*.rc
-samples/statbar/*.def
samples/statbar/*.ico
samples/statbar/*.xpm
samples/statbar/*.bmp
samples/taskbar/*.h
samples/taskbar/makefile.*
samples/taskbar/*.rc
-samples/taskbar/*.def
samples/taskbar/*.bmp
samples/taskbar/*.ico
samples/taskbar/*.txt
samples/text/*.h
samples/text/makefile*
samples/text/*.rc
-samples/text/*.def
samples/text/*.bmp
samples/text/*.xpm
samples/text/*.xbm
samples/thread/*.h
samples/thread/makefile*
samples/thread/*.rc
-samples/thread/*.def
samples/thread/*.bmp
samples/thread/*.xpm
samples/thread/*.xbm
samples/typetest/*.cpp
samples/typetest/*.h
-samples/typetest/*.def
samples/typetest/*.rc
samples/typetest/*.txt
samples/typetest/makefile*
samples/toolbar/*.cpp
samples/toolbar/*.h
-samples/toolbar/*.def
samples/toolbar/makefile*
samples/toolbar/*.txt
samples/toolbar/*.xbm
samples/treectrl/*.cpp
samples/treectrl/*.h
-samples/treectrl/*.def
samples/treectrl/*.rc
samples/treectrl/*.txt
samples/treectrl/makefile*
samples/validate/*.cpp
samples/validate/*.h
-samples/validate/*.def
samples/validate/*.rc
samples/validate/*.inf
samples/validate/*.txt
samples/widgets/*.h
samples/widgets/makefile*
samples/widgets/*.rc
-samples/widgets/*.def
samples/widgets/*.ico
samples/widgets/*.xpm
samples/widgets/*.txt
samples/wizard/*.h
samples/wizard/makefile*
samples/wizard/*.rc
-samples/wizard/*.def
samples/wizard/*.bmp
samples/wizard/*.xpm
samples/wizard/*.xbm
demos/bombs/*.cpp
demos/bombs/*.h
-demos/bombs/*.def
demos/bombs/makefile*
demos/bombs/*.xbm
demos/bombs/*.xpm
demos/forty/*.h
demos/forty/makefile*
demos/forty/*.rc
-demos/forty/*.def
demos/forty/*.bmp
demos/forty/*.xpm
demos/forty/*.xbm
demos/fractal/*.cpp
demos/fractal/*.h
-demos/fractal/*.def
demos/fractal/makefile*
demos/fractal/*.xbm
demos/fractal/*.xpm
demos/life/*.h
demos/life/makefile*
demos/life/*.rc
-demos/life/*.def
demos/life/*.ico
demos/life/*.xpm
demos/life/*.txt
demos/poem/*.cpp
demos/poem/*.h
-demos/poem/*.def
demos/poem/*.rc
demos/poem/*.inf
demos/poem/*.txt
demos/dbbrowse/*.cpp
demos/dbbrowse/*.h
-demos/dbbrowse/*.def
demos/dbbrowse/*.rc
demos/dbbrowse/*.inf
demos/dbbrowse/*.txt
utils/HelpGen/src/*.h
utils/HelpGen/src/*.cpp
-utils/HelpGen/src/*.def
utils/HelpGen/src/*.rc
utils/HelpGen/src/makefile*
utils/HelpGen/src/*.bkl
utils/emulator/src/*.ini
utils/emulator/src/*.bmp
utils/emulator/src/*.ico
-utils/emulator/src/*.def
utils/emulator/src/*.rc
utils/emulator/src/*.wxe
utils/emulator/src/*.jpg
utils/helpview/src/*.h
utils/helpview/src/*.cpp
-utils/helpview/src/*.def
utils/helpview/src/*.rc
utils/helpview/src/makefile*
utils/helpview/src/*.xbm
utils/configtool/src/*.h
utils/configtool/src/*.cpp
-utils/configtool/src/*.def
utils/configtool/src/*.rc
utils/configtool/src/makefile*
utils/configtool/src/*.xbm
pointers to {\tt double} you should use.
Note that the above macros are generally only useful for
-wxObject types. There are seperate macros for declaring an array of a simple type,
+wxObject types. There are separate macros for declaring an array of a simple type,
such as an int.
The following simple types are supported:\\
Finally, Inv\_Year is defined to be an invalid value for year parameter.
\helpref{GetMonthName()}{wxdatetimegetmonthname} and
-\helpref{GetWeekDayName}{wxdatetimegetweekdayname} functions use the followign
+\helpref{GetWeekDayName}{wxdatetimegetweekdayname} functions use the following
flags:
\begin{verbatim}
adds the file to the report. The \arg{filename} shouldn't contain the path.
Returns \true if file could be added successfully, \false if an IO error
-occured.
+occurred.
\membersection{wxDebugReport::DoAddCustomContext}\label{wxdebugreportdoaddcustomcontext}
in any of the text controls shown in it.
{\bf Note:} If a key down ({\tt EVT\_KEY\_DOWN}) event is caught and
-the event handler does not call {\tt event.Skip()} then the coresponding
+the event handler does not call {\tt event.Skip()} then the corresponding
char event ({\tt EVT\_CHAR}) will not happen. This is by design and
enables the programs that handle both types of events to be a bit
simpler.
\constfunc{wxWindow*}{GetWindow}{\void}
-If this item is trackign a window then return it. NULL otherwise.
+If this item is tracking a window then return it. NULL otherwise.
\membersection{wxSizerItem::IsShown}\label{wxsizeritemisshown}
setsockopt() flag. This flag allows the socket to bind to a port that is already in use.
This is mostly used on UNIX-based systems to allow rapid starting and stopping of a server -
otherwise you may have to wait several minutes for the port to become available.
-This option can have suprising platform dependent behavior, check the documentation for
-your platforms implementation of setsockopt().
+This option can have surprising platform dependent behavior, check the documentation for
+your platform's implementation of setsockopt().
So:
\constfunc{wxString}{BuildURI}{\void}
-Builds the URI from its individual components and adds proper seperators.
+Builds the URI from its individual components and adds proper separators.
If the URI is not a reference or is not resolved,
the URI that is returned from Get is the same one
\constfunc{wxString}{BuildUnescapedURI}{\void}
-Builds the URI from its individual components, adds proper seperators, and
+Builds the URI from its individual components, adds proper separators, and
returns escape sequences to normal characters.
Note that it is preferred to call this over Unescape(BuildURI()) since
\end{verbatim}
Note that the exact usage of this depends on whether on not wxUSE\_STL is enabled. If
-wxUSE\_STL is enabled, wxStringBuffer creates a seperate empty character buffer, and
+wxUSE\_STL is enabled, wxStringBuffer creates a separate empty character buffer, and
if wxUSE\_STL is disabled, it uses GetWriteBuf() from wxString, keeping the same buffer
wxString uses intact. In other words, relying on wxStringBuffer containing the old
wxString data is probably not a good idea if you want to build your program in both
\end{verbatim}
Note that the exact usage of this depends on whether on not wxUSE\_STL is enabled. If
-wxUSE\_STL is enabled, wxStringBuffer creates a seperate empty character buffer, and
+wxUSE\_STL is enabled, wxStringBuffer creates a separate empty character buffer, and
if wxUSE\_STL is disabled, it uses GetWriteBuf() from wxString, keeping the same buffer
wxString uses intact. In other words, relying on wxStringBuffer containing the old
wxString data is probably not a good idea if you want to build your program in both
new <object> classes (and therefore different <object>'s child nodes).
<object_ref> node is identical to <object>, except that it does _not_ have
-"class" property and has additional required property "ref". It's concept is
+"class" property and has additional required property "ref". Its concept is
similar to Unix symlinks: value of the "ref" property is equal to the value of
"name" property of some existing node (called referred node) in the resources
(not necessary top-level). Referred node's "class" property and all subnodes
// VC++ IDE predefines _DEBUG and _UNICODE for the new projects itself, but
// the other symbols (WXUSINGDLL, __WXUNIVERSAL__, ...) should be defined
-// explicitely!
+// explicitly!
#ifdef _MSC_VER
#ifdef _UNICODE
// version does the normal processing (i.e. shows the usual assert failure
// dialog box)
//
- // the arguments are the place where the assert occured, the text of the
+ // the arguments are the place where the assert occurred, the text of the
// assert itself and the user-specified message
#ifdef __WXDEBUG__
virtual void OnAssert(const wxChar *file,
// parse the command line, return 0 if ok, -1 if "-h" or "--help" option
// was encountered and the help message was given or a positive value if a
- // syntax error occured
+ // syntax error occurred
//
// if showUsage is true, Usage() is called in case of syntax error or if
// help was requested
return wxTimeSpan(*this).Multiply(n);
}
- // return this timespan with inversed sign
+ // return this timespan with opposite sign
wxTimeSpan Negate() const { return wxTimeSpan(-GetValue()); }
// negate the value of the timespan
wxTimeSpan& Neg() { m_diff = -GetValue(); return *this; }
// Change this to 0 to remove use of all deprecated functions
#if wxODBC_BACKWARD_COMPATABILITY
//#################################################################################
-//############### DEPRECATED functions for backward compatability #################
+//############### DEPRECATED functions for backward compatibility #################
//#################################################################################
// Backward compability structures/classes. This will eventually go away
// Change this to 0 to remove use of all deprecated functions
#if wxODBC_BACKWARD_COMPATABILITY
//#################################################################################
-//############### DEPRECATED functions for backward compatability #################
+//############### DEPRECATED functions for backward compatibility #################
//#################################################################################
// Backward compability. These will eventually go away
wxTOOL_RIGHT
};
-/* the values of the format constants should be the same as correspondign */
+/* the values of the format constants should be the same as corresponding */
/* CF_XXX constants in Windows API */
enum wxDataFormatId
{
// return all modules/shared libraries in the address space of this process
//
- // returns an empty array if not implemented or an error occured
+ // returns an empty array if not implemented or an error occurred
static wxDynamicLibraryDetailsArray ListLoaded();
// return platform-specific name of dynamic library with proper extension
// NB: This method is intentionally *not* inside wxUSE_VALIDATORS!
// It is part of wxBase which doesn't use validators and the code
// is compiled out when building wxBase w/o GUI classes, which affects
- // binary compatiblity and wxBase library can't be used by GUI
+ // binary compatibility and wxBase library can't be used by GUI
// ports.
virtual bool TryValidator(wxEvent& WXUNUSED(event)) { return false; }
// read all data from the file into a string (useful for text files)
bool ReadAll(wxString *str, wxMBConv& conv = wxConvUTF8);
// returns number of bytes read - use Eof() and Error() to see if an error
- // occured or not
+ // occurred or not
size_t Read(void *pBuf, size_t nCount);
// returns the number of bytes written
size_t Write(const void *pBuf, size_t nCount);
bool IsOpened() const { return m_fp != NULL; }
// is end of file reached?
bool Eof() const { return feof(m_fp) != 0; }
- // is an error occured?
+ // has an error occurred?
bool Error() const { return ferror(m_fp) != 0; }
// get the file name
const wxString& GetName() const { return m_name; }
bool IsOpened() const { return m_fd != fd_invalid; }
// is end of file reached?
bool Eof() const;
- // has an error occured?
+ // has an error occurred?
bool Error() const { return m_error; }
// type such as disk or pipe
wxFileKind GetKind() const { return wxGetFileKind(m_fd); }
// the currently default encoding: by default, it's the default system
// encoding, but may be changed by the application using
// SetDefaultEncoding() to make all subsequent fonts created without
- // specifing encoding parameter using this encoding
+ // specifying encoding parameter using this encoding
static wxFontEncoding ms_encodingDefault;
};
};
-// State information of a search action. I'd have prefered to make this a nested
-// class inside wxHtmlHelpData, but that's against coding standards :-(
+// State information of a search action. I'd have preferred to make this a
+// nested class inside wxHtmlHelpData, but that's against coding standards :-(
// Never construct this class yourself, obtain a copy from
// wxHtmlHelpData::PrepareKeywordSearch(const wxString& key)
class WXDLLIMPEXP_HTML wxHtmlSearchStatus
// Set HTML page and display it. !! source is HTML document itself,
// it is NOT address/filename of HTML document. If you want to
// specify document location, use LoadPage() istead
- // Return value : false if an error occured, true otherwise
+ // Return value : false if an error occurred, true otherwise
bool SetPage(const wxString& source);
// Append to current page
const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
bool bLoadDefault = true, // preload wxstd.mo?
- bool bConvertEncoding = false) // convert Win<->Unix if neccessary?
+ bool bConvertEncoding = false) // convert Win<->Unix if necessary?
{
DoCommonInit();
// restores old locale
~wxLocale();
- // Try to get user's (or OS's) prefered language setting.
+ // Try to get user's (or OS's) preferred language setting.
// Return wxLANGUAGE_UNKNOWN if language-guessing algorithm failed
static int GetSystemLanguage();
#define wxODBC_FWD_ONLY_CURSORS 1
// Default is 0. Set to 1 to use the deprecated classes, enum types, function,
-// member variables. With a setting of 1, full backward compatability with the
+// member variables. With a setting of 1, full backward compatibility with the
// 2.0.x release is possible. It is STRONGLY recommended that this be set to 0,
// as future development will be done only on the non-deprecated
// functions/classes/member variables/etc.
*m_subMenu; // our sub menu or NULL
wxString m_text, // label of the item
m_help; // the help string for the item
- wxItemKind m_kind; // seperator/normal/check/radio item?
+ wxItemKind m_kind; // separator/normal/check/radio item?
bool m_isChecked; // is checked?
bool m_isEnabled; // is enabled?
wxFileType *GetFileTypeFromMimeType(const wxString& mimeType);
// other operations: return true if there were no errors or false if there
- // were some unreckognized entries (the good entries are always read anyhow)
+ // were some unrecognized entries (the good entries are always read anyhow)
//
// FIXME: These ought to be private ??
enum
{
- // we always report where the crash occured
+ // we always report where the crash occurred
wxCRASH_REPORT_LOCATION = 0,
// if this flag is given, the call stack is dumped
wxWindowDC(wxWindow *win);
protected:
- // intiialize the newly created DC
+ // initialize the newly created DC
void InitDC();
// override some base class virtuals
// get the accel table for all the menus
const wxAcceleratorTable& GetAccelTable() const { return m_accelTable; }
- // update the accel table (must be called after adding/deletign a menu)
+ // update the accel table (must be called after adding/deleting a menu)
void RebuildAccelTable();
#endif // wxUSE_ACCEL
#define wxODBC_FWD_ONLY_CURSORS 1
// Default is 0. Set to 1 to use the deprecated classes, enum types, function,
-// member variables. With a setting of 1, full backward compatability with the
+// member variables. With a setting of 1, full backward compatibility with the
// 2.0.x release is possible. It is STRONGLY recommended that this be set to 0,
// as future development will be done only on the non-deprecated
// functions/classes/member variables/etc.
#define wxODBC_FWD_ONLY_CURSORS 1
// Default is 0. Set to 1 to use the deprecated classes, enum types, function,
-// member variables. With a setting of 1, full backward compatability with the
+// member variables. With a setting of 1, full backward compatibility with the
// 2.0.x release is possible. It is STRONGLY recommended that this be set to 0,
// as future development will be done only on the non-deprecated
// functions/classes/member variables/etc.
#define wxODBC_FWD_ONLY_CURSORS 1
// Default is 0. Set to 1 to use the deprecated classes, enum types, function,
-// member variables. With a setting of 1, full backward compatability with the
+// member variables. With a setting of 1, full backward compatibility with the
// 2.0.x release is possible. It is STRONGLY recommended that this be set to 0,
// as future development will be done only on the non-deprecated
// functions/classes/member variables/etc.
const wxAcceleratorTable& GetAccelTable(void) const { return m_vAccelTable; }
//
- // Update the accel table (must be called after adding/deletign a menu)
+ // Update the accel table (must be called after adding/deleting a menu)
//
void RebuildAccelTable(void);
#endif // wxUSE_ACCEL
// The program directory can be determined automatically from argv[0],
// this function is automatically called from application initialisation.
// If you override the initialisation routine, you should call it
- // explicitely yourself.
+ // explicitly yourself.
static void SetInstallPrefix(const wxString& prefix);
// get the program installation prefix
wxWindowDC(wxWindow *win);
protected:
- // intiialize the newly created DC
+ // initialize the newly created DC
void InitDC();
// override some base class virtuals
// get the accel table for all the menus
const wxAcceleratorTable& GetAccelTable() const { return m_accelTable; }
- // update the accel table (must be called after adding/deletign a menu)
+ // update the accel table (must be called after adding/deleting a menu)
void RebuildAccelTable();
#endif // wxUSE_ACCEL
#define wxODBC_FWD_ONLY_CURSORS 0
// Default is 0. Set to 1 to use the deprecated classes, enum types, function,
-// member variables. With a setting of 1, full backward compatability with the
+// member variables. With a setting of 1, full backward compatibility with the
// 2.0.x release is possible. It is STRONGLY recommended that this be set to 0,
// as future development will be done only on the non-deprecated
// functions/classes/member variables/etc.
const wxString& arg = wxEmptyString);
// get the server reply, return the first character of the reply code,
- // '1'..'5' for normal FTP replies, 0 (*not* '0') if an error occured
+ // '1'..'5' for normal FTP replies, 0 (*not* '0') if an error occurred
char GetResult();
// check that the result is equal to expected value
// the (most common) native bitmap format without alpha support
#if defined(__WXMSW__)
- // under MSW the RGB components are inversed, they're in BGR order
+ // under MSW the RGB components are reversed, they're in BGR order
typedef wxPixelFormat<unsigned char, 24, 2, 1, 0> wxNativePixelFormat;
#define wxPIXEL_FORMAT_ALPHA 3
#define wxODBC_FWD_ONLY_CURSORS 1
// Default is 0. Set to 1 to use the deprecated classes, enum types, function,
-// member variables. With a setting of 1, full backward compatability with the
+// member variables. With a setting of 1, full backward compatibility with the
// 2.0.x release is possible. It is STRONGLY recommended that this be set to 0,
// as future development will be done only on the non-deprecated
// functions/classes/member variables/etc.
class WXDLLEXPORT wxSpinButtonBase : public wxControl
{
public:
- // ctor intiializes the range with the default (0..100) values
+ // ctor initializes the range with the default (0..100) values
wxSpinButtonBase() { m_min = 0; m_max = 100; }
// accessors
protected:
// do read up to size bytes of data into the provided buffer
//
- // this method should return 0 if EOF has been reached or an error occured
+ // this method should return 0 if EOF has been reached or an error occurred
// (m_lasterror should be set accordingly as well) or the number of bytes
// read
virtual size_t OnSysRead(void *buffer, size_t size) = 0;
#define EVT_TREE_BEGIN_DRAG(id, fn) wx__DECLARE_TREEEVT(BEGIN_DRAG, id, fn)
#define EVT_TREE_BEGIN_RDRAG(id, fn) wx__DECLARE_TREEEVT(BEGIN_RDRAG, id, fn)
-// GetItem() is the item on which the drop occured (if any) and GetPoint() the
+// GetItem() is the item on which the drop occurred (if any) and GetPoint() the
// current mouse coords
#define EVT_TREE_END_DRAG(id, fn) wx__DECLARE_TREEEVT(END_DRAG, id, fn)
#define wxODBC_FWD_ONLY_CURSORS 0
// Default is 0. Set to 1 to use the deprecated classes, enum types, function,
-// member variables. With a setting of 1, full backward compatability with the
+// member variables. With a setting of 1, full backward compatibility with the
// 2.0.x release is possible. It is STRONGLY recommended that this be set to 0,
// as future development will be done only on the non-deprecated
// functions/classes/member variables/etc.
//
// under some systems (currently only Linux) the program directory can be
// determined automatically but for portable programs you should always set
- // it explicitely
+ // it explicitly
void SetInstallPrefix(const wxString& prefix);
// get the program installation prefix
// Creates an object (menu, dialog, control, ...) from an XML node.
// Should check for validity.
// parent is a higher-level object (usually window, dialog or panel)
- // that is often neccessary to create the resource.
+ // that is often necessary to create the resource.
// If instance is non-NULL it should not create a new instance via 'new' but
// should rather use this one, and call its Create method.
wxObject *CreateResource(wxXmlNode *node, wxObject *parent,
wxPrintf(_T("Full name from wxVCard API: %s\n"), value.c_str());
- // now show how to deal with multiply occuring properties
+ // now show how to deal with multiply occurring properties
DumpVCardAddresses(vcard);
DumpVCardPhoneNumbers(vcard);
/*
* This function will return the exact string(s) from the database engine
- * indicating all error conditions which have just occured during the
+ * indicating all error conditions which have just occurred during the
* last call to the database engine.
*
* This demo uses the returned string by displaying it in a wxMessageBox. The
{
SetExtraStyle(wxDIALOG_EX_CONTEXTHELP|wxWS_EX_VALIDATE_RECURSIVELY);
- Create(win, -1, _("Preferences"), wxDefaultPosition, wxDefaultSize);
+ Create(win, -1, _("Preferences"), wxDefaultPosition, wxDefaultSize,
+ wxDEFAULT_DIALOG_STYLE
+#ifndef __WXWINCE__
+ |wxRESIZE_BORDER
+#endif
+ );
CreateButtons(wxOK|wxCANCEL|wxHELP);
wxBookCtrlBase* notebook = GetBookCtrl();
{
if ( wxGetApp().GetDialer()->HangUp() )
{
- wxLogStatus(this, wxT("Connection was succesfully terminated."));
+ wxLogStatus(this, wxT("Connection was successfully terminated."));
}
else
{
{
default:
case wxDragError:
- wxLogError(wxT("An error occured during drag and drop operation"));
+ wxLogError(wxT("An error occurred during drag and drop operation"));
break;
case wxDragNone:
// Added by JACS to demonstrate bizarre behaviour.
// With a size of 70, we get a missing red RHS,
- // and the hight is too small, so we get yellow
+ // and the height is too small, so we get yellow
// showing. With a size of 40, it draws as expected:
// it just shows a white rectangle with red outline.
int totalWidth = 70;
// program startup
virtual bool OnInit();
- // 2nd-level exception handling: we get all the exceptions occuring in any
+ // 2nd-level exception handling: we get all the exceptions occurring in any
// event handler here
virtual bool OnExceptionInMainLoop();
<LI>
<UL>
<LI>
-deeper nesting for check of mark allignment </LI>
+deeper nesting for check of mark alignment </LI>
<LI>
nested item 2</LI>
//
// To use this sample, simply select Open File from the file menu,
// select the file you want to play - and MediaPlayer will play the file in a
-// new notebook page, showing video if neccessary.
+// new notebook page, showing video if necessary.
//
// You can select one of the menu options, or move the slider around
// to manipulate what is playing.
* $Id$ *
* *
* $Log$
+ * Revision 1.4 2005/05/31 09:19:38 JS
+ * Typo correction patch [ 1208110 ] Lots of typo corrections
+ * Olly Betts
+ *
* Revision 1.3 2004/08/06 17:27:18 ABX
* Deleting void is undefined.
*
* always failed, must mkdir("~/.M") first)
* 2) "redesign" of "Folder properties" dialog and bug corrected, small change to
* MInputBox (it was too wide)
- * 3) bug in ProvFC when it didn't reckognize the books as being in the correct
+ * 3) bug in ProvFC when it didn't recognize the books as being in the correct
* format (=> messages "can't reopen book") corrected
* 4) I tried to enhance MDialog_About(), but it didn't really work... oh well,
* I've never said I was an artist
//
// Connect(addr, false) will issue a nonblocking connection request
// and return immediately. If the return value is true, then the
- // connection has been already succesfully established. If it is
+ // connection has been already successfully established. If it is
// false, you must wait for the request to complete, either with
// WaitOnConnect() or by watching wxSOCKET_CONNECTION / LOST
// events (please read the documentation).
//
// Impl notes:
-// There is no custom data source because doing so unneccesaraly sacrifices
+// There is no custom data source because doing so unnecessarily sacrifices
// some native autocompletion behavior (we would have to make our own -
// the SimpleComboBox sample does so in the developer folder that
// comes with OSX). One reason you might want this would be to have
-// only one array or be able to display numbers by returned an NSNumber
+// only one array or be able to display numbers returned by an NSNumber
// from the methods.
//
// One problem though is that wxCB_SORT isn't implemented...
if(m_timer)
Cleanup();
- //Note that ExitMovies() is not neccessary...
+ //Note that ExitMovies() is not necessary...
ExitMovies();
}
//
//Here, if the parent of the control has a sizer - we
//tell it to recalculate the size of this control since
- //the user opened a seperate media file
+ //the user opened a separate media file
//
m_ctrl->InvalidateBestSize();
m_ctrl->GetParent()->Layout();
NSArray* theQuoteArguments =
[wxNSStringWithWxString(command) componentsSeparatedByString:@"\""];
- NSMutableArray* theSeperatedArguments =
+ NSMutableArray* theSeparatedArguments =
[NSMutableArray arrayWithCapacity:10];
for (unsigned i = 0; i < [theQuoteArguments count]; ++i)
{
- [theSeperatedArguments addObjectsFromArray:
+ [theSeparatedArguments addObjectsFromArray:
[[theQuoteArguments objectAtIndex:i] componentsSeparatedByString:@" "]
];
if(++i < [theQuoteArguments count])
- [theSeperatedArguments addObject:[theQuoteArguments objectAtIndex:i]];
+ [theSeparatedArguments addObject:[theQuoteArguments objectAtIndex:i]];
}
- [theTask setLaunchPath:[theSeperatedArguments objectAtIndex:0]];
- [theTask setArguments:theSeperatedArguments];
+ [theTask setLaunchPath:[theSeparatedArguments objectAtIndex:0]];
+ [theTask setArguments:theSeparatedArguments];
[theTask launch];
if(sync & wxEXEC_ASYNC)
bestSize.y = childBestSize.y;
}
- // convert display area to window area, adding the size neccessary for the
+ // convert display area to window area, adding the size necessary for the
// tabs
wxSize best = CalcSizeFromPage(bestSize);
CacheBestSize(best);
// find the YEAR which is a year in the strftime() range (1970
// - 2038) whose Jan 1 falls on the same week day as the Jan 1
// of the real year. Then make a copy of the format and
- // replace all occurences of YEAR in it with some unique
+ // replace all occurrences of YEAR in it with some unique
// string not appearing anywhere else in it, then use
// strftime() to format the date in year YEAR and then replace
// YEAR back by the real year and the unique replacement
- // string back with YEAR. Notice that "all occurences of YEAR"
- // means all occurences of 4 digit as well as 2 digit form!
+ // string back with YEAR. Notice that "all occurrences of YEAR"
+ // means all occurrences of 4 digit as well as 2 digit form!
//
// the bugs: we assume that neither of %c nor %x contains any
// fields which may change between the YEAR and real year. For
strYear.Printf(_T("%d"), year);
strYear2.Printf(_T("%d"), year % 100);
- // find two strings not occuring in format (this is surely
- // not optimal way of doing it... improvements welcome!)
+ // find two strings not occurring in format (this is surely
+ // not the optimal way of doing it... improvements welcome!)
wxString fmt = format;
wxString replacement = (wxChar)-1;
while ( fmt.Find(replacement) != wxNOT_FOUND )
replacement << (wxChar)-2;
}
- // replace all occurences of year with it
+ // replace all occurrences of year with it
bool wasReplaced = fmt.Replace(strYear, replacement) > 0;
if ( !wasReplaced )
wasReplaced = fmt.Replace(strYear2, replacement2) > 0;
: _T("%x"),
&tmAdjusted);
- // now replace the occurence of 1999 with the real year
+ // now replace the occurrence of 1999 with the real year
wxString strYearReal, strYearReal2;
strYearReal.Printf(_T("%04d"), yearReal);
strYearReal2.Printf(_T("%02d"), yearReal % 100);
str.Replace(strYear, strYearReal);
str.Replace(strYear2, strYearReal2);
- // and replace back all occurences of replacement string
+ // and replace back all occurrences of replacement string
if ( wasReplaced )
{
str.Replace(replacement2, strYear2);
// Initialize the ODBC Environment for Database Operations
if (SQLAllocEnv(&Henv) != SQL_SUCCESS)
{
- wxLogDebug(wxT("A problem occured while trying to get a connection to the data source"));
+ wxLogDebug(wxT("A problem occurred while trying to get a connection to the data source"));
return false;
}
/*
* This function is called internally whenever an error condition prevents the user's
* request from being executed. This function will query the datasource as to the
- * actual error(s) that just occured on the previous request of the datasource.
+ * actual error(s) that just occurred on the previous request of the datasource.
*
* The function will retrieve each error condition from the datasource and
* Printf the codes/text values into a string which it then logs via logError().
* If in DBDEBUG_CONSOLE mode, the constructed string will be displayed in the console
* window and program execution will be paused until the user presses a key.
*
- * This function always returns a false, so that functions which call this function
+ * This function always returns false, so that functions which call this function
* can have a line like "return (DispAllErrors(henv, hdbc));" to indicate the failure
- * of the users request, so that the calling code can then process the error msg log
+ * of the user's request, so that the calling code can then process the error message log.
*/
{
wxString odbcErrMsg;
* 1) The last array element of the tableName[] argument must be zero (null).
* This is how the end of the array is detected.
* 2) This function returns an array of wxDbColInf structures. If no columns
- * were found, or an error occured, this pointer will be zero (null). THE
+ * were found, or an error occurred, this pointer will be zero (null). THE
* CALLING FUNCTION IS RESPONSIBLE FOR DELETING THE MEMORY RETURNED WHEN IT
* IS FINISHED WITH IT. i.e.
*
NULL, 0); // All columns
}
if (retcode != SQL_SUCCESS)
- { // Error occured, abort
+ { // Error occurred, abort
DispAllErrors(henv, hdbc, hstmt);
if (colInf)
delete [] colInf;
}
}
if (retcode != SQL_NO_DATA_FOUND)
- { // Error occured, abort
+ { // Error occurred, abort
DispAllErrors(henv, hdbc, hstmt);
if (colInf)
delete [] colInf;
NULL, 0); // All columns
}
if (retcode != SQL_SUCCESS)
- { // Error occured, abort
+ { // Error occurred, abort
DispAllErrors(henv, hdbc, hstmt);
if (colInf)
delete [] colInf;
}
}
if (retcode != SQL_NO_DATA_FOUND)
- { // Error occured, abort
+ { // Error occurred, abort
DispAllErrors(henv, hdbc, hstmt);
if (colInf)
delete [] colInf;
NULL, 0); // All columns
}
if (retcode != SQL_SUCCESS)
- { // Error occured, abort
+ { // Error occurred, abort
DispAllErrors(henv, hdbc, hstmt);
if (colInf)
delete [] colInf;
}
}
if (retcode != SQL_NO_DATA_FOUND)
- { // Error occured, abort
+ { // Error occurred, abort
DispAllErrors(henv, hdbc, hstmt);
if (colInf)
delete [] colInf;
NULL, 0); // All columns
}
if (retcode != SQL_SUCCESS)
- { // Error occured, abort
+ { // Error occurred, abort
DispAllErrors(henv, hdbc, hstmt);
SQLFreeStmt(hstmt, SQL_CLOSE);
return(-1);
noCols++;
if (retcode != SQL_NO_DATA_FOUND)
- { // Error occured, abort
+ { // Error occurred, abort
DispAllErrors(henv, hdbc, hstmt);
SQLFreeStmt(hstmt, SQL_CLOSE);
return(-1);
* -- : uses SQLTables and fills pTableInf; ------
* -- : pColInf is set to NULL and numCols to 0; ------
* -- : returns pDbInf (wxDbInf) ------
- * -- - if unsuccesfull (pDbInf == NULL) ------
+ * -- - if unsuccessful (pDbInf == NULL) ------
* -- : pColInf can be filled with GetColumns(..); ------
* -- : numCols can be filled with GetColumnCount(..); ------
* ---------------------------------------------------------------------
// embedded nulls in strings
setupStr.Printf(wxT("DSN=%s%cDescription=%s%cDefaultDir=%s%c"),dsn,2,description,2,defDir,2);
- // Replace the separator from above with the '\0' seperator needed
+ // Replace the separator from above with the '\0' separator needed
// by the SQLConfigDataSource() function
int k;
do
********************************************************************
*
* The following functions are all DEPRECATED and are included for
- * backward compatability reasons only
+ * backward compatibility reasons only
*
********************************************************************
********************************************************************/
// Each element of the widths array will be the width of the string up to and
-// including the coresponding character in text. This is the generic
+// including the corresponding character in text. This is the generic
// implementation, the port-specific classes should do this with native APIs
// if available and if faster. Note: pango_layout_index_to_pos is much slower
// than calling GetTextExtent!!
path such as "C:\Program Files" would be split into 2 paths:
"C:\Program" and "Files"
*/
-// wxT(" ;"); // Don't seperate with colon in DOS (used for drive)
- wxT(";"); // Don't seperate with colon in DOS (used for drive)
+// wxT(" ;"); // Don't separate with colon in DOS (used for drive)
+ wxT(";"); // Don't separate with colon in DOS (used for drive)
#else
wxT(" :;");
#endif
return false;
}
- // If we get here the operation has been succesfully completed
+ // If we get here the operation has been successfully completed
// Set the status-member
m_currentTransfermode = transferMode;
/* loop until a valid y coordinate has been
found, Or if the maximum number of passes has
been reached, exit the loop, and stop image
- decoding (At this point the image is succesfully
+ decoding (At this point the image is successfully
decoded).
If we don't loop, but merely set y to some other
value, that new value might still be invalid depending
(langFull.Len() == LEN_FULL && langFull[LEN_LANG] == wxT('_')) )
{
// 0. Make sure the lang is according to latest ISO 639
- // (this is neccessary because glibc uses iw and in instead
+ // (this is necessary because glibc uses iw and in instead
// of he and id respectively).
// the language itself (second part is the dialect/sublang)
wxPoint pos = event.GetPosition();
- // scrollbar on which the click occured
+ // scrollbar on which the click occurred
wxWindow *sbar = NULL;
wxWindow *win = (wxWindow *)event.GetEventObject();
return true;
default:
- // an error occured
+ // an error occurred
wxLogError(_("Failed to match '%s' in regular expression: %s"),
str, GetErrorMsg(rc, !conv).c_str());
// fall through
{
wxString subdir(dir);
- // empty string indicates that an error has occured, don't touch it then
+ // empty string indicates that an error has occurred, don't touch it then
if ( !subdir.empty() )
{
const wxString appname = wxTheApp->GetAppName();
}
//Increment to next (sub)string
- //Note that we have to use strlen here instead of nLen
- //here because XX2XX gives us the size of the output buffer,
- //not neccessarly the length of the string
+ //Note that we have to use strlen instead of nLen here
+ //because XX2XX gives us the size of the output buffer,
+ //which is not necessarily the length of the string
szPos += strlen(szPos) + 1;
}
}
//Increment to next (sub)string
- //Note that we have to use wxWcslen here instead of nLen
- //here because XX2XX gives us the size of the output buffer,
- //not neccessarly the length of the string
+ //Note that we have to use wxWcslen instead of nLen here
+ //because XX2XX gives us the size of the output buffer,
+ //which is not necessarily the length of the string
szPos += wxWcslen(szPos) + 1;
}
// Name: common/tbarbase.cpp
// Purpose: wxToolBarBase implementation
// Author: Julian Smart
-// Modified by: VZ at 11.12.99 (wxScrollableToolBar splitted off)
+// Modified by: VZ at 11.12.99 (wxScrollableToolBar split off)
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// to take into account the taskbar. And the Mac menu bar at top.
wxRect clientrect = wxGetClientDisplayRect();
- // NB: in wxMSW, negative position may not neccessary mean "out of screen",
+ // NB: in wxMSW, negative position may not necessarily mean "out of screen",
// but it may mean that the window is placed on other than the main
// display. Therefore we only make sure centered window is on the main display
// if the parent is at least partially present here.
m_pos = 0;
#if WXWIN_COMPATIBILITY_2_4
- // treat compatibilty mode as auto
+ // treat compatibility mode as auto
m_24compatibilty = flags == wxZLIB_24COMPATIBLE;
if (m_24compatibilty)
flags = wxZLIB_AUTO;
if ( ( (tw - fw) == 1 ) && ( td < fd ) )
{
// special case: interval 7 days or less not in same week
- // split in two seperate intervals
+ // split in two separate intervals
wxDateTime tfd = fromdate + wxDateSpan::Days(7-fd);
wxDateTime ftd = tfd + wxDateSpan::Day();
#if DEBUG_PAINT
- wxLogDebug("Highlight: Seperate segments");
+ wxLogDebug("Highlight: Separate segments");
#endif
- // draw seperately
+ // draw separately
HighlightRange(pDC, fromdate, tfd, pPen, pBrush);
HighlightRange(pDC, ftd, todate, pPen, pBrush);
}
#endif // __SMARTPHONE__/!__SMARTPHONE__
// 1) dir ctrl
- m_dirCtrl = NULL; // this is neccessary, event handler called from
+ m_dirCtrl = NULL; // this is necessary, event handler called from
// wxGenericDirCtrl would crash otherwise!
long dirStyle = wxDIRCTRL_DIR_ONLY | wxDEFAULT_CONTROL_BORDER;
//FIXME: this causes us to print an extra unnecesary
// space at the end of the line. But it
// is invisible , simplifies the size calculation
- // and ensures tokens are seperated in the display
+ // and ensures tokens are separated in the display
tok += _T(" ");
dc.GetTextExtent(tok, &x, &y);
// end of the current column
int xpos = 0;
- // find the column where this event occured
+ // find the column where this event occurred
int col,
countCol = m_owner->GetColumnCount();
for (col = 0; col < countCol; col++)
}
else
{
- // This is neccessary , because after a DnD operation in
+ // This is necessary, because after a DnD operation in
// from and to ourself, the up event is swallowed by the
// DnD code. So on next non-up event (which means here and
// now) m_lineSelectSingleOnUp should be reset.
SetSize(wxDefaultCoord, size.y);
#ifdef __WXGTK__
- // VS: this is neccessary in order to force frame redraw under
+ // VS: this is necessary in order to force frame redraw under
// WindowMaker or fvwm2 (and probably other broken WMs).
// Otherwise, detailed list wouldn't be displayed.
Show();
{
wxLogTrace(TRACE_DND, wxT( "Drop target: OnData returned TRUE") );
- /* tell GTK that data transfer was successfull */
+ /* tell GTK that data transfer was successful */
gtk_drag_finish( context, TRUE, FALSE, time );
}
else
{
wxLogTrace(TRACE_DND, wxT( "Drop target: OnData returned FALSE") );
- /* tell GTK that data transfer was not successfull */
+ /* tell GTK that data transfer was not successful */
gtk_drag_finish( context, FALSE, FALSE, time );
}
{
wxLogTrace(TRACE_DND, wxT( "Drop target: OnData returned TRUE") );
- /* tell GTK that data transfer was successfull */
+ /* tell GTK that data transfer was successful */
gtk_drag_finish( context, TRUE, FALSE, time );
}
else
{
wxLogTrace(TRACE_DND, wxT( "Drop target: OnData returned FALSE") );
- /* tell GTK that data transfer was not successfull */
+ /* tell GTK that data transfer was not successful */
gtk_drag_finish( context, FALSE, FALSE, time );
}
/// check archive for a file
bool Contains(const wxString& pattern);
- /// get a string for the last error occured
+ /// get a string for the last error which occurred
const wxString GetLastErrorMessage();
/// Last Error
virtual bool CanOpen(const wxString& location);
/// Open a file
virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
- /// Find first occurence of spec
+ /// Find first occurrence of spec
virtual wxString FindFirst(const wxString& spec, int flags = 0);
- /// Find next occurence of spec
+ /// Find next occurrence of spec
virtual wxString FindNext();
private:
const int MAX_ROOTS = 64;
wxTreeItemId roots[MAX_ROOTS];
// VS: this array holds information about whether we've set item icon at
- // given level. This is neccessary because m_Data has flat structure
+ // given level. This is necessary because m_Data has a flat structure
// and there's no way of recognizing if some item has subitems or not.
// We set the icon later: when we find an item with level=n, we know
- // that the last item with level=n-1 was folder with subitems, so we
+ // that the last item with level=n-1 was afolder with subitems, so we
// set its icon accordingly
bool imaged[MAX_ROOTS];
m_ContentsBox->DeleteAllItems();
{
if (m_hfStyle & wxHF_MERGE_BOOKS)
// VS: we don't want book nodes, books' content should
- // appear under tree's root. This line will create "fake"
+ // appear under tree's root. This line will create a "fake"
// record about book node so that the rest of this look
- // will believe there really _is_ book node and will
+ // will believe there really _is_ a book node and will
// behave correctly.
roots[1] = roots[0];
else
m_PagesHash->Put(it->GetFullPath(),
new wxHtmlHelpHashData(i, roots[it->level + 1]));
- // Set the icon for the node one level up in the hiearachy,
+ // Set the icon for the node one level up in the hierarchy,
// unless already done (see comment above imaged[] declaration)
if (!imaged[it->level])
{
} while (nextCell && !nextCell->IsLinebreakAllowed());
}
- // force new line if occured:
+ // force new line if occurred:
if ((cell == NULL) ||
(xpos + nextWordWidth > s_width && cell->IsLinebreakAllowed()))
{
wxString wxHtmlTag::GetAllParams() const
{
- // VS: this function is for backward compatiblity only,
+ // VS: this function is for backward compatibility only,
// never used by wxHTML
wxString s;
size_t cnt = m_ParamNames.GetCount();
}
/* GSocket_GetError:
- * Returns the last error occured for this socket. Note that successful
+ * Returns the last error which occurred for this socket. Note that successful
* operations do not clear this back to GSOCK_NOERROR, so use it only
* after an error.
*/
* assume that it can write since the first OUTPUT event, and no more
* OUTPUT events will be generated unless an error occurs.
* GSOCK_CONNECTION:
- * Connection succesfully established, for client sockets, or incoming
+ * Connection successfully established, for client sockets, or incoming
* client connection, for server sockets. Wait for this event (also watch
* out for GSOCK_LOST) after you issue a nonblocking GSocket_Connect() call.
* GSOCK_LOST:
// ATSU Font Information
- // this is splitted into an ATSU font id that may
+ // this is split into an ATSU font id that may
// contain some styles (special bold fonts etc) and
// these are the additional qd styles that are not
// included in the ATSU font id
//
// So we set up delegates for both the color and font panels,
// and the if the font panel opens the color panel, we
- // stop the modal loop, and start a seperate modal loop for
+ // stop the modal loop, and start a separate modal loop for
// the color panel until the color panel closes, switching
// back to the font panel modal loop once it does close.
//
* For stream (connection oriented) sockets, GSocket_Connect() tries
* to establish a client connection to a server using the peer address
* as established with GSocket_SetPeer(). Returns GSOCK_NOERROR if the
- * connection has been succesfully established, or one of the error
+ * connection has been successfully established, or one of the error
* codes listed below. Note that for nonblocking sockets, a return
* value of GSOCK_WOULDBLOCK doesn't mean a failure. The connection
* request can be completed later; you should use GSocket_Select()
}
/* GSocket_GetError:
- * Returns the last error occured for this socket. Note that successful
+ * Returns the last error which occurred for this socket. Note that successful
* operations do not clear this back to GSOCK_NOERROR, so use it only
* after an error.
*/
* assume that it can write since the first OUTPUT event, and no more
* OUTPUT events will be generated unless an error occurs.
* GSOCK_CONNECTION:
- * Connection succesfully established, for client sockets, or incoming
+ * Connection successfully established, for client sockets, or incoming
* client connection, for server sockets. Wait for this event (also watch
* out for GSOCK_LOST) after you issue a nonblocking GSocket_Connect() call.
* GSOCK_LOST:
* assume that it can write since the first OUTPUT event, and no more
* OUTPUT events will be generated unless an error occurs.
* GSOCK_CONNECTION:
- * Connection succesfully established, for client sockets, or incoming
+ * Connection successfully established, for client sockets, or incoming
* client connection, for server sockets. Wait for this event (also watch
* out for GSOCK_LOST) after you issue a nonblocking GSocket_Connect() call.
* GSOCK_LOST:
if(m_timer)
Cleanup();
- //Note that ExitMovies() is not neccessary...
+ //Note that ExitMovies() is not necessary...
ExitMovies();
}
//
//Here, if the parent of the control has a sizer - we
//tell it to recalculate the size of this control since
- //the user opened a seperate media file
+ //the user opened a separate media file
//
m_ctrl->InvalidateBestSize();
m_ctrl->GetParent()->Layout();
// yet another hack since this is a composite control
// when wxSlider has it's size hardcoded, we're not allowed to
// change the size. But when the control has labels, we DO need
- // to resize the internal Mac control to accomodate the text labels.
+ // to resize the internal Mac control to accommodate the text labels.
// We need to trick the wxWidgets resize mechanism so that we can
// resize the slider part of the control ONLY.
DisposeMovie(m_movie);
Stop();
- //Note that ExitMovies() is not neccessary, but
+ //Note that ExitMovies() is not necessary, but
//the docs are fuzzy on whether or not TerminateQTML is
ExitMovies();
theItem->GetId(), //id
theItem->GetText(), //text label
theItem->GetHelp(), //status bar help string
- theItem->GetKind(), //menu flags - checkable, seperator, etc.
+ theItem->GetKind(), //menu flags - checkable, separator, etc.
theItem->GetSubMenu() //submenu
));
theNode = theNode->GetNext();
if ( !wxIsMainThread() )
{
// unfortunately CW 8 is not able to correctly deduce the template types, so we have
- // to instantiate explicitely
+ // to instantiate explicitly
wxMacMPRemoteGUICall<wxTextCtrl,wxString>( this , &wxTextCtrl::WriteText , str ) ;
return ;
}
if ( m_macUsesCompositing )
{
// There is a bug in 10.2.X for ::GetRootControl returning the window view instead of
- // the content view, so we have to retrieve it explicitely
+ // the content view, so we have to retrieve it explicitly
HIViewFindByID( HIViewGetRoot( (WindowRef) m_macWindow ) , kHIViewWindowContentID ,
m_peer->GetControlRefAddr() ) ;
if ( !m_peer->Ok() )
if ( inWindowRef )
{
// bool isHighlighted = IsWindowHighlited( inWindowRef ) ;
-// if ( inActivate != isHightlited )
+// if ( inActivate != isHighlighted )
GrafPtr port ;
GetPort( &port ) ;
SetPortWindowPort( inWindowRef ) ;
// due to the rather low-level event API of wxWidgets, we cannot use RunApplicationEventLoop
// but have to use ReceiveNextEvent dealing with events manually, therefore we also have
-// deal with clicks in the menu bar explicitely
+// to deal with clicks in the menu bar explicitly
pascal OSStatus wxMacWindowEventHandler( EventHandlerCallRef handler , EventRef event , void *data ) ;
else
newColors = nil;
- /* If no errors occured, return a handle to the new off-screen PixMap */
+ /* If no errors occurred, return a handle to the new off-screen PixMap */
if (error != noErr)
{
if (newColors != nil)
* For stream (connection oriented) sockets, GSocket_Connect() tries
* to establish a client connection to a server using the peer address
* as established with GSocket_SetPeer(). Returns GSOCK_NOERROR if the
- * connection has been succesfully established, or one of the error
+ * connection has been successfully established, or one of the error
* codes listed below. Note that for nonblocking sockets, a return
* value of GSOCK_WOULDBLOCK doesn't mean a failure. The connection
* request can be completed later; you should use GSocket_Select()
}
/* GSocket_GetError:
- * Returns the last error occured for this socket. Note that successful
+ * Returns the last error which occurred for this socket. Note that successful
* operations do not clear this back to GSOCK_NOERROR, so use it only
* after an error.
*/
* assume that it can write since the first OUTPUT event, and no more
* OUTPUT events will be generated unless an error occurs.
* GSOCK_CONNECTION:
- * Connection succesfully established, for client sockets, or incoming
+ * Connection successfully established, for client sockets, or incoming
* client connection, for server sockets. Wait for this event (also watch
* out for GSOCK_LOST) after you issue a nonblocking GSocket_Connect() call.
* GSOCK_LOST:
* assume that it can write since the first OUTPUT event, and no more
* OUTPUT events will be generated unless an error occurs.
* GSOCK_CONNECTION:
- * Connection succesfully established, for client sockets, or incoming
+ * Connection successfully established, for client sockets, or incoming
* client connection, for server sockets. Wait for this event (also watch
* out for GSOCK_LOST) after you issue a nonblocking GSocket_Connect() call.
* GSOCK_LOST:
if ( abs( localwhere.h - gs_lastWhere.h ) < 3 && abs( localwhere.v - gs_lastWhere.v ) < 3 )
{
// This is not right if the second mouse down
- // event occured in a differen window. We
+ // event occurred in a different window. We
// correct this in MacDispatchMouseEvent.
if ( controlDown )
event.SetEventType(wxEVT_RIGHT_DCLICK ) ;
#endif
if ( !refData->m_hasAlpha )
{
- // the mask returned by GetIconInfo() is inversed compared to the usual
+ // the mask returned by GetIconInfo() is inverted compared to the usual
// wxWin convention
refData->SetMask(wxInvertMask(iconInfo.hbmMask, w, h));
}
{
// we assume that it is in XBM format which is not quite the same as
// the format CreateBitmap() wants because the order of bytes in the
- // line is inversed!
+ // line is reversed!
const size_t bytesPerLine = (width + 7) / 8;
const size_t padding = bytesPerLine % 2;
const size_t len = height * ( padding + bytesPerLine );
// supposed to initialize all common controls, in comctl32.dll 4.72 (and
// presumably earlier versions 4.70 and 4.71, date time picker not being
// supported in < 4.70 anyhow) it does not do it and we have to initialize
- // it explicitely
+ // it explicitly
static bool s_initDone = false; // MT-ok: used from GUI thread only
if ( !s_initDone )
{
if ( !(::GetDeviceCaps(GetHdc(), RASTERCAPS) & RC_STRETCHDIB) ||
!DrawBitmapUsingStretchDIBits(GetHdc(), bmp, x, y) )
{
- // no support for StretchDIBits() or an error occured if we got here
+ // no support for StretchDIBits() or an error occurred if we got here
wxMemoryDC memDC;
memDC.SelectObject(bmp);
}
else
{
- // an error occured
+ // an error occurred
wxLogError(_("Cannot find active dialup connection: %s"),
GetErrorString(dwRet).c_str());
return 0;
HWND hwnd = msg->hwnd;
wxWindow *wndThis = wxGetWindowFromHWND((WXHWND)hwnd);
- // this may happen if the event occured in a standard modeless dialog (the
+ // this may happen if the event occurred in a standard modeless dialog (the
// only example of which I know of is the find/replace dialog) - then call
// IsDialogMessage() to make TAB navigation in it work
if ( !wndThis )
PFD_DRAW_TO_WINDOW |
PFD_DOUBLEBUFFER, /* support double-buffering */
PFD_TYPE_RGBA, /* color type */
- 16, /* prefered color depth */
+ 16, /* preferred color depth */
0, 0, 0, 0, 0, 0, /* color bits (ignored) */
0, /* no alpha buffer */
0, /* alpha bits (ignored) */
PFD_DRAW_TO_WINDOW |
PFD_DOUBLEBUFFER, /* support double-buffering */
PFD_TYPE_RGBA, /* color type */
- 16, /* prefered color depth */
+ 16, /* preferred color depth */
0, 0, 0, 0, 0, 0, /* color bits (ignored) */
0, /* no alpha buffer */
0, /* alpha bits (ignored) */
* make the appropriate setsockopt() call.
* Implemented as a GSocket function because clients (ie, wxSocketServer)
* don't have access to the GSocket struct information.
-* Returns true if the flag was set correctly, false if an error occured
+* Returns true if the flag was set correctly, false if an error occurred
* (ie, if the parameter was NULL)
*/
bool GSocket::SetReusable()
* For stream (connection oriented) sockets, GSocket_Connect() tries
* to establish a client connection to a server using the peer address
* as established with GSocket_SetPeer(). Returns GSOCK_NOERROR if the
- * connection has been succesfully established, or one of the error
+ * connection has been successfully established, or one of the error
* codes listed below. Note that for nonblocking sockets, a return
* value of GSOCK_WOULDBLOCK doesn't mean a failure. The connection
* request can be completed later; you should use GSocket_Select()
}
/* GSocket_GetError:
- * Returns the last error occured for this socket. Note that successful
+ * Returns the last error occurred for this socket. Note that successful
* operations do not clear this back to GSOCK_NOERROR, so use it only
* after an error.
*/
* assume that it can write since the first OUTPUT event, and no more
* OUTPUT events will be generated unless an error occurs.
* GSOCK_CONNECTION:
- * Connection succesfully established, for client sockets, or incoming
+ * Connection successfully established, for client sockets, or incoming
* client connection, for server sockets. Wait for this event (also watch
* out for GSOCK_LOST) after you issue a nonblocking GSocket_Connect() call.
* GSOCK_LOST:
GetHbitmapOf(bitmap), hbmpMask) != 0;
if ( !ok )
{
- wxLogLastError(wxT("ImageList_Add()"));
+ wxLogLastError(wxT("ImageList_Replace()"));
}
::DeleteObject(hbmpMask);
case LVN_ENDLABELEDITA:
case LVN_ENDLABELEDITW:
- // logic here is inversed compared to all the other messages
+ // logic here is inverted compared to all the other messages
*result = event.IsAllowed();
// don't keep a stale wxTextCtrl around
#endif // __VISUALC__/!__VISUALC__
// ----------------------------------------------------------------------------
-// wrapper wxEntry catching all Win32 exceptions occuring in a wx program
+// wrapper wxEntry catching all Win32 exceptions occurring in a wx program
// ----------------------------------------------------------------------------
// wrap real wxEntry in a try-except block to be able to call
/*if( AMGetErrorText(hrdsv, szError, MAX_ERROR_TEXT_LEN) == 0)*/ \
/*{*/ \
/*wxFAIL_MSG( wxString::Format(wxT("DirectShow error \"%s\" ")*/\
- /*wxT("occured at line %i in ")*/ \
+ /*wxT("occurred at line %i in ")*/ \
/*wxT("mediactrl.cpp"),*/ \
/*szError, __LINE__) );*/ \
/*}*/ \
/*else*/ \
wxFAIL_MSG( wxString::Format(wxT("Unknown error (%i) ") \
- wxT("occured at") \
+ wxT("occurred at") \
wxT(" line %i in mediactrl.cpp."), \
(int)hrdsv, __LINE__) ); \
} \
// By default wxWindow(s) is created with a border -
// so we need to get rid of those, and create with
// wxCLIP_CHILDREN, so that if the driver/backend
- // is a child window, it refereshes properly
+ // is a child window, it refreshes properly
//
if ( !ctrl->wxControl::Create(parent, id, pos, size,
(style & ~wxBORDER_MASK) | wxBORDER_NONE | wxCLIP_CHILDREN,
//
//Here, if the parent of the control has a sizer - we
//tell it to recalculate the size of this control since
- //the user opened a seperate media file
+ //the user opened a separate media file
//
m_ctrl->InvalidateBestSize();
m_ctrl->GetParent()->Layout();
if(m_lib.IsOk())
{
- //Note that ExitMovies() is not neccessary, but
+ //Note that ExitMovies() is not necessary, but
//the docs are fuzzy on whether or not TerminateQTML is
m_lib.ExitMovies();
m_lib.TerminateQTML();
//
//Here, if the parent of the control has a sizer - we
//tell it to recalculate the size of this control since
- //the user opened a seperate media file
+ //the user opened a separate media file
//
m_ctrl->InvalidateBestSize();
m_ctrl->GetParent()->Layout();
if ( id != (WXWORD)idMenuTitle )
{
// get the checked status of the command: notice that menuState is the
- // old state of the menu, so the test for MF_CHECKED must be inversed
+ // old state of the menu, so the test for MF_CHECKED must be inverted
UINT menuState = ::GetMenuState(GetHmenu(), id, MF_BYCOMMAND);
SendEvent(id, !(menuState & MF_CHECKED));
}
break;
default:
- wsprintf(szBuf, L"%s: Unknown error occured.", szMember);
+ wsprintf(szBuf, L"%s: Unknown error occurred.", szMember);
break;
}
virtual ~wxIDataObject();
// normally, wxDataObject controls our lifetime (i.e. we're deleted when it
- // is), but in some cases, the situation is inversed, that is we delete it
+ // is), but in some cases, the situation is reversed, that is we delete it
// when this object is deleted - setting this flag enables such logic
void SetDeleteFlag() { m_mustDelete = true; }
// we suppose that the size precedes the data
pBuf = m_pDataObject->GetSizeFromBuffer( pBuf, &size, format );
if (! format.IsStandard() ) {
- // see GetData for coresponding increment
+ // see GetData for corresponding increment
size -= m_pDataObject->GetBufferOffset( format );
}
}
DECLARE_DYNAMIC_CLASS(wxMSWSystemMenuFontModule)
};
-// these static variables are by the wxMSWSystemMenuFontModule object
+// these static variables are from the wxMSWSystemMenuFontModule object
// and reflect the system settings returned by the Win32 API's
// SystemParametersInfo() call.
wxString str = wxStripMenuCodes(m_strName);
// if we have a valid accel string, then pad out
- // the menu string so the menu and accel string are not
- // placed ontop of eachother.
+ // the menu string so that the menu and accel string are not
+ // placed on top of each other.
if ( !m_strAccel.empty() )
{
str.Pad(str.Length()%8);
int xText = rc.x + margin + 1;
- // using native API because it reckognizes '&'
+ // using native API because it recognizes '&'
int nPrevMode = SetBkMode(hdc, TRANSPARENT);
HBRUSH hbr = CreateSolidBrush(colBack),
hPrevBrush = (HBRUSH)SelectObject(hdc, hbr);
(((st & wxODHidePrefix) && !wxMSWSystemMenuFontModule::ms_showCues) ? 512 : 0)); // 512 == DSS_HIDEPREFIX
// ::SetTextAlign(hdc, TA_RIGHT) doesn't work with DSS_DISABLED or DSS_MONO
- // as last parameter in DrawState() (at least with Windows98). So we have
+ // as the last parameter in DrawState() (at least with Windows98). So we have
// to take care of right alignment ourselves.
if ( !m_strAccel.empty() )
{
int nBmpWidth = bmp.GetWidth(),
nBmpHeight = bmp.GetHeight();
- // there should be enough place!
+ // there should be enough space!
wxASSERT((nBmpWidth <= rc.GetWidth()) && (nBmpHeight <= rc.GetHeight()));
int heightDiff = m_nHeight - nBmpHeight;
// if symbol information is corrupted and we crash, the exception is going
// to be ignored when we're called from WalkFromException() because of the
- // except handler there returning EXCEPTION_CONTINUE_EXECUTION, but we'd be
- // left in an inconsistent state, so deal with it explicitely here (even if
- // normally we should never crash, of course...)
+ // exception handler there returning EXCEPTION_CONTINUE_EXECUTION, but we'd
+ // be left in an inconsistent state, so deal with it explicitly here (even
+ // if normally we should never crash, of course...)
#ifdef _CPPUNWIND
try
#else
// Operations
bool wxTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip)
{
- // NB: we have to create the window lazily because of backward compatiblity,
- // old aplications may create wxTaskBarIcon instance before wxApp
+ // NB: we have to create the window lazily because of backward compatibility,
+ // old applications may create a wxTaskBarIcon instance before wxApp
// is initialized (as samples/taskbar used to do)
if (!m_win)
{
{
LPPOINT ppt = (LPPOINT)lParam;
- // the window on which event occured
+ // the window on which event occurred
HWND hwnd = ::WindowFromPoint(*ppt);
OutputDebugString("TTM_WINDOWFROMPOINT: ");
s_pfnFlashWindowEx = (FlashWindowEx_t)
dllUser32.GetSymbol(_T("FlashWindowEx"));
- // we can safely unload user32.dll here, it's goign to remain loaded as
+ // we can safely unload user32.dll here, it's going to remain loaded as
// long as the program is running anyhow
}
params.pid = (DWORD)pid;
// EnumWindows() has nice semantics: it returns 0 if it found
- // something or if an error occured and non zero if it
+ // something or if an error occurred and non zero if it
// enumerated all the window
if ( !::EnumWindows(wxEnumFindByPidProc, (LPARAM)¶ms) )
{
{
// tell the app to close
//
- // NB: this is the harshest way, the app won't have
+ // NB: this is the harshest way, the app won't have an
// opportunity to save any files, for example, but
// this is probably what we want here. If not we
// can also use SendMesageTimeout(WM_CLOSE)
Windows class unregistration).
pclassname is a pointer to a caller stored classname, which must initially be
- NULL. classname is the desired wndclass classname. If function succesfully
+ NULL. classname is the desired wndclass classname. If function successfully
registers the class, pclassname will be set to classname.
*/
extern "C" WXDLLIMPEXP_BASE HWND
wxLogLastError(_T("PeekNamedPipe"));
}
- // don't try to continue reading from a pipe if an error occured or if
+ // don't try to continue reading from a pipe if an error occurred or if
// it had been closed
::CloseHandle(m_hInput);
: wxSTREAM_READ_ERROR;
}
- // bytesRead is set to 0, as desired, if an error occured
+ // bytesRead is set to 0, as desired, if an error occurred
return bytesRead;
}
return true;
#else
// this function is called from wxDC ctor so it is called a *lot* of times
- // hence we optimize it a bit but doign the check only once
+ // hence we optimize it a bit but doing the check only once
//
// this should be MT safe as only the GUI thread (holding the GUI mutex)
// can call us
wOrient,
&scrollInfo) )
{
- // Not neccessarily an error, if there are no scrollbars yet.
+ // Not necessarily an error, if there are no scrollbars yet.
// wxLogLastError(_T("GetScrollInfo"));
}
return scrollInfo.nPos;
: SB_VERT,
&scrollInfo) )
{
- // Not neccessarily an error, if there are no scrollbars yet.
+ // Not necessarily an error, if there are no scrollbars yet.
// wxLogLastError(_T("GetScrollInfo"));
}
char stopChars[256];
char fillUpChars[256];
char separator;
- char typesep; // Type seperator
+ char typesep; // Type separator
public:
bool ignoreCase;
void SetSeparator(char separator_);
char GetSeparator();
- /// The typesep character is used for seperating the word from the type
+ /// The typesep character is used for separating the word from the type
void SetTypesep(char separator_);
char GetTypesep();
int currentInterface = CheckMETAPOSTInterface(startPos,length,styler,defaultInterface) ;
// 0 no keyword highlighting
- // 1 metapost keyword hightlighting
- // 2+ metafun keyword hightlighting
+ // 1 metapost keyword highlighting
+ // 2+ metafun keyword highlighting
int extraInterface = 0 ;