Fix comment typos in sources

No real changes.

Closes https://github.com/wxWidgets/wxWidgets/pull/2541
This commit is contained in:
Blake Madden
2021-10-02 14:46:08 -04:00
committed by Vadim Zeitlin
parent cfdd4127b5
commit 668a2186cd
99 changed files with 133 additions and 133 deletions

View File

@@ -100,7 +100,7 @@ public:
// string <-> wxAcceleratorEntry conversion
// ----------------------------------------
// returns a wxString for the this accelerator.
// returns a wxString for this accelerator.
// this function formats it using the <flags>-<keycode> format
// where <flags> maybe a hyphen-separated list of "shift|alt|ctrl"
wxString ToString() const { return AsPossiblyLocalizedString(true); }

View File

@@ -1057,7 +1057,7 @@
// Default is 1.
//
// Recommended setting: 1 but can be safely set to 0 except for wxUniv where it
// it used by wxComboBox
// is used by wxComboBox
#define wxUSE_COMBOCTRL 1
// wxOwnerDrawnComboBox is a custom combobox allowing to paint the combobox

View File

@@ -28,7 +28,7 @@ class WXDLLIMPEXP_FWD_CORE wxImage;
object converting from the format-specific data representation to the
wxImage native format (RGB24).
wxAnimationDecoders always load an input stream using some optimized format
to store it which is format-depedent. This allows to store a (possibly big)
to store it which is format-dependent. This allows to store a (possibly big)
animation using a format which is a good compromise between required memory
and time required to blit it on the screen.

View File

@@ -148,7 +148,7 @@ private:
/**
Helper macro for defining user value types.
Even though C++ RTTI would be fully available to use, we'd have to to
Even though C++ RTTI would be fully available to use, we'd have to
facilitate sub-type system which allows, for instance, wxAny with
signed short '15' to be treated equal to wxAny with signed long long '15'.
Having sm_instance is important here.

View File

@@ -106,7 +106,7 @@ public:
// surrogates as we do for now)
//
// just remember that this works as long as wxString keeps an internal
// buffer with its wide wide char representation, just as with AsChar()
// buffer with its wide char representation, just as with AsChar()
// above
return m_str->c_str().AsWChar() + (m_iter - m_str->begin());
}
@@ -114,7 +114,7 @@ public:
// Because the objects of this class are only used as return type for
// functions which can return NULL we can skip providing dereferencing
// operators: the code using this class must test it for NULL first and if
// it does anything else with it it has to assign it to either char* or
// it does anything else with it has to assign it to either char* or
// wchar_t* itself, before dereferencing.
//
// IOW this

View File

@@ -80,7 +80,7 @@ private:
/////////////////////////////////////////////////////////////////////////////
// wxArchiveInputStream
//
// GetNextEntry() returns an wxArchiveEntry object containing the meta-data
// GetNextEntry() returns a wxArchiveEntry object containing the meta-data
// for the next entry in the archive (and gives away ownership). Reading from
// the wxArchiveInputStream then returns the entry's data. Eof() becomes true
// after an attempt has been made to read past the end of the entry's data.

View File

@@ -486,7 +486,7 @@ public:
public:
// deprecated -- please use SetManagedWindow() and
// deprecated -- please use SetManagedWindow()
// and GetManagedWindow() instead
wxDEPRECATED( void SetFrame(wxFrame* frame) );

View File

@@ -73,7 +73,7 @@ public:
wxWindowID winid,
const wxString& name = wxString());
which is used used by NewCloseButton(), and, as Create(), must be
which is used by NewCloseButton(), and, as Create(), must be
called on default-constructed wxBitmapButton object.
*/

View File

@@ -1070,7 +1070,7 @@ public:
// if the overloads above were used.
//
// And then we also have to provide the overloads for wxCStrData, as usual.
// Unfortunately those ones can't return anything as we don't have any
// Unfortunately those can't return anything as we don't have any
// sufficiently long-lived wxAnyStrPtr to return from them: any temporary
// strings it would point to would be destroyed when this function returns
// making it impossible to dereference the return value. So we just don't

View File

@@ -522,7 +522,7 @@ typedef short int WXTYPE;
#define wxC_CALLING_CONV
#endif /* compiler */
/* callling convention for the qsort(3) callback */
/* calling convention for the qsort(3) callback */
#define wxCMPFUNC_CONV wxC_CALLING_CONV
/* compatibility :-( */

View File

@@ -66,7 +66,7 @@ public:
// parameter to Dial() on this machine and returns their number (may be 0)
virtual size_t GetISPNames(wxArrayString& names) const = 0;
// dial the given ISP, use username and password to authentificate
// dial the given ISP, use username and password to authenticate
//
// if no nameOfISP is given, the function will select the default one
//
@@ -122,7 +122,7 @@ public:
// wxEVT_DIALUP_CONNECTED/wxEVT_DIALUP_DISCONNECTED events. The interval
// parameter is only for Unix where we do the check manually: under
// Windows, the notification about the change of connection status is
// instantenous.
// instantaneous.
//
// Returns false if couldn't set up automatic check for online status.
virtual bool EnableAutoCheckOnlineStatus(size_t nSeconds = 60) = 0;

View File

@@ -445,7 +445,7 @@ private:
// under Windows if needed.
//
// The first (just EXPORTED) macros do it if wxWidgets was compiled as a DLL
// and so must be used used inside the library. The second kind (USER_EXPORTED)
// and so must be used inside the library. The second kind (USER_EXPORTED)
// allow the user code to do it when it wants. This is needed if you have a dll
// that wants to export a wxArray daubed with your own import/export goo.
//
@@ -615,7 +615,7 @@ private:
// 2) Detach() just removes the object from the array (returning pointer to it)
//
// NB1: Base type T should have an accessible copy ctor if Add(T&) is used
// NB2: Never ever cast a array to it's base type: as dtor is not virtual
// NB2: Never ever cast an array to it's base type: as dtor is not virtual
// and so you risk having at least the memory leaks and probably worse
//
// Some functions of this class are not inline, so it takes some space to
@@ -631,7 +631,7 @@ private:
// This is necessary because at the moment of DEFINE_OBJARRAY class parsing the
// element_type must be fully defined (i.e. forward declaration is not
// enough), while WX_DECLARE_OBJARRAY may be done anywhere. The separation of
// two allows to break cicrcular dependencies with classes which have member
// two allows to break circcular dependencies with classes which have member
// variables of objarray type.
// ----------------------------------------------------------------------------

View File

@@ -36,7 +36,7 @@ typedef wxDLManifest wxDLImports;
// ---------------------------------------------------------------------------
// NOTE: Do not attempt to use a base class pointer to this class.
// wxDL is not virtual and we deliberately hide some of it's
// wxDL is not virtual and we deliberately hide some of its
// methods here.
//
// Unless you know exactly why you need to, you probably shouldn't

View File

@@ -1692,7 +1692,7 @@ private:
};
// Scroll event class, derived form wxCommandEvent. wxScrollEvents are
// Scroll event class, derived from wxCommandEvent. wxScrollEvents are
// sent by wxSlider and wxScrollBar.
/*
wxEVT_SCROLL_TOP
@@ -3086,7 +3086,7 @@ private:
/*
wxEVT_MOUSE_CAPTURE_LOST
The window losing the capture receives this message, unless it released it
The window losing the capture receives this message, unless it released
it itself or unless wxWindow::CaptureMouse was called on another window
(and so capture will be restored when the new capturer releases it).
*/

View File

@@ -41,7 +41,7 @@
It's important to note that YieldFor() is used to selectively process the
events generated by the NATIVE toolkit.
Events syntethized by wxWidgets code or by user code are instead selectively
Events synthesized by wxWidgets code or by user code are instead selectively
processed thanks to the logic built into wxEvtHandler::ProcessPendingEvents().
In fact, when wxEvtHandler::ProcessPendingEvents gets called from inside a
YieldFor() call, wxEventLoopBase::IsEventAllowedInsideYield is used to decide

View File

@@ -495,7 +495,7 @@ public:
// is the char a path separator for this format?
static bool IsPathSeparator(wxChar ch, wxPathFormat format = wxPATH_NATIVE);
// is this is a DOS path which beings with a windows unique volume name
// is this is a DOS path which begins with a windows unique volume name
// ('\\?\Volume{guid}\')?
static bool IsMSWUniqueVolumeNamePath(const wxString& path,
wxPathFormat format = wxPATH_NATIVE);

View File

@@ -95,7 +95,7 @@ protected:
// ----------------------------------------------------------------------------
// wxFontPickerCtrl: platform-independent class which embeds the
// platform-dependent wxFontPickerWidget andm if wxFNTP_USE_TEXTCTRL style is
// platform-dependent wxFontPickerWidget and if wxFNTP_USE_TEXTCTRL style is
// used, a textctrl next to it.
// ----------------------------------------------------------------------------

View File

@@ -834,7 +834,7 @@ public:
return r;
}
// return true if the point is (not strcitly) inside the rect
// return true if the point is (not strictly) inside the rect
bool Contains(int x, int y) const;
bool Contains(const wxPoint& pt) const { return Contains(pt.x, pt.y); }
// return true if the rectangle 'rect' is (not strictly) inside this rect
@@ -846,7 +846,7 @@ public:
// like Union() but don't ignore empty rectangles
wxRect& operator+=(const wxRect& rect);
// intersections of two rectrangles not testing for empty rectangles
// intersections of two rectangles not testing for empty rectangles
wxRect& operator*=(const wxRect& rect);
// centre this rectangle in the given (usually, but not necessarily,
@@ -948,7 +948,7 @@ public:
wxStockGDI creates the stock GDI objects on demand. Pointers to the
created objects are stored in the ms_stockObject array, which is indexed
by the Item enum values. Platorm-specific fonts can be created by
by the Item enum values. Platform-specific fonts can be created by
implementing a derived class with an override for the GetFont function.
wxStockGDI operates as a singleton, accessed through the ms_instance
pointer. By default this pointer is set to an instance of wxStockGDI.

View File

@@ -71,7 +71,7 @@ public:
// Extend (or shrink) the current selection block (creating it if
// necessary, i.e. if there is no selection at all currently or if the
// current current cell isn't selected, as in this case a new block
// current cell isn't selected, as in this case a new block
// containing it is always added) to the one specified by the start and end
// coordinates of its opposite corners (which don't have to be in
// top/bottom left/right order).

View File

@@ -188,7 +188,7 @@ private:
*m_remaining;
// Reference to the parent top level window, automatically becomes NULL if
// it it is destroyed and could be always NULL if it's not given at all.
// it is destroyed and could be always NULL if it's not given at all.
wxWindowRef m_parentTop;
// Progress dialog styles: this is not the same as m_windowStyle because

View File

@@ -478,7 +478,7 @@ inline wxPoint2DDouble operator/(const wxPoint2DDouble& pt , wxInt32 n)
return wxPoint2DDouble( pt.m_x / n , pt.m_y / n );
}
// wxRect2Ds are a axis-aligned rectangles, each side of the rect is parallel to the x- or m_y- axis. The rectangle is either defined by the
// wxRect2Ds are an axis-aligned rectangles, each side of the rect is parallel to the x- or m_y- axis. The rectangle is either defined by the
// top left and bottom right corner, or by the top left corner and size. A point is contained within the rectangle if
// left <= x < right and top <= m_y < bottom , thus it is a half open interval.

View File

@@ -162,7 +162,7 @@ public:
wxGLAttributes& FrameBuffersRGB();
void EndList(); // No more values can be chained
// This function is undocumented and can not be chained on purpose!
// This function is undocumented and cannot be chained on purpose!
// To keep backwards compatibility with versions before wx3.1 we add here
// the default values used in those versions for the case of NULL list.
void AddDefaultsForWXBefore31();

View File

@@ -26,7 +26,7 @@ public:
virtual ~wxMemoryDCImpl();
// these get reimplemented for mono-bitmaps to behave
// more like their Win32 couterparts. They now interpret
// more like their Win32 counterparts. They now interpret
// wxWHITE, wxWHITE_BRUSH and wxWHITE_PEN as drawing 0
// and everything else as drawing 1.
virtual void SetPen( const wxPen &pen ) wxOVERRIDE;

View File

@@ -22,7 +22,7 @@
// In other words, it isn't guaranteed to map to Meta. This is a real
// problem: it is common to map NumLock to it (in fact, it's an exception
// if the X server _doesn't_ use it for NumLock). So the old code caused
// wxKeyEvent::MetaDown() to always return true as long as NumLock was on
// wxKeyEvent::MetaDown() to always return true as long as NumLock was
// on many systems, which broke all applications using
// wxKeyEvent::GetModifiers() to check modifiers state (see e.g. here:
// http://tinyurl.com/56lsk2).

View File

@@ -1058,7 +1058,7 @@
// Default is 1.
//
// Recommended setting: 1 but can be safely set to 0 except for wxUniv where it
// it used by wxComboBox
// is used by wxComboBox
#define wxUSE_COMBOCTRL 1
// wxOwnerDrawnComboBox is a custom combobox allowing to paint the combobox

View File

@@ -182,7 +182,7 @@ public:
bool GTKShouldIgnoreEvent() const;
// override this if some events should never be consumed by wxWidgets but
// override this if some events should never be consumed by wxWidgets
// but have to be left for the native control
//
// base version just calls HandleWindowEvent()

View File

@@ -54,7 +54,7 @@ private:
wxDECLARE_ABSTRACT_CLASS(wxDC);
};
// this must be defined when wxDC::Blit() honours the DC origian and needed to
// this must be defined when wxDC::Blit() honours the DC origin and needed to
// allow wxUniv code in univ/winuniv.cpp to work with versions of wxGTK
// 2.3.[23]
#ifndef wxHAS_WORKING_GTK_DC_BLIT

View File

@@ -295,7 +295,7 @@ public:
//
// 'window' is pointer to wxHtmlWindowInterface of the window which
// generated the event.
// HINT: if this handling is not enough for you you should use
// HINT: if this handling is not enough for you should use
// wxHtmlWidgetCell
virtual bool ProcessMouseClick(wxHtmlWindowInterface *window,
const wxPoint& pos,

View File

@@ -39,7 +39,7 @@ public:
wxHtmlTagsCache(const wxString& source);
virtual ~wxHtmlTagsCache();
// Finds parameters for tag starting at at and fills the variables
// Finds parameters for tag starting at and fills the variables
void QueryTag(const wxString::const_iterator& at,
const wxString::const_iterator& inputEnd,
wxString::const_iterator *end1,

View File

@@ -28,7 +28,7 @@
#if wxUSE_CONSTRAINTS
// ----------------------------------------------------------------------------
// forward declrations
// forward declarations
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_FWD_CORE wxWindowBase;

View File

@@ -1058,7 +1058,7 @@
// Default is 1.
//
// Recommended setting: 1 but can be safely set to 0 except for wxUniv where it
// it used by wxComboBox
// is used by wxComboBox
#define wxUSE_COMBOCTRL 1
// wxOwnerDrawnComboBox is a custom combobox allowing to paint the combobox

View File

@@ -131,7 +131,7 @@ public:
// (for wxWindowDC and Motif callbacks only)
// -----------------------------------------
// Adds a recangle to the updates list
// Adds a rectangle to the updates list
void AddUpdateRect(int x, int y, int w, int h);
void ClearUpdateRegion() { m_updateRegion.Clear(); }

View File

@@ -49,7 +49,7 @@ public:
wxDIB(HBITMAP hbmp)
{ Init(); (void)Create(hbmp); }
// load a DIB from file (any depth is supoprted here unlike above)
// load a DIB from file (any depth is supported here unlike above)
//
// as above, use IsOk() to see if the bitmap was loaded successfully
wxDIB(const wxString& filename)

View File

@@ -155,7 +155,7 @@ protected:
// ----------------------------------------------------------------------------
// wxEnhMetaFileSimpleDataObject does derive from wxDataObjectSimple which
// makes it more convenient to use (it can be used with wxDataObjectComposite)
// at the price of not supoprting any more CF_METAFILEPICT but only
// at the price of not supporting any more CF_METAFILEPICT but only
// CF_ENHMETAFILE
// ----------------------------------------------------------------------------

View File

@@ -96,7 +96,7 @@ public:
// Uses DISPATCH_PROPERTYGET
// and returns a dispatch pointer. The calling code should call Release
// on the pointer, though this could be implicit by constructing an wxAutomationObject
// on the pointer, though this could be implicit by constructing a wxAutomationObject
// with it and letting the destructor call Release.
WXIDISPATCH* GetDispatchProperty(const wxString& property, int noArgs, wxVariant args[]) const;
WXIDISPATCH* GetDispatchProperty(const wxString& property, int noArgs, const wxVariant **args) const;

View File

@@ -297,7 +297,7 @@ public:
protected:
// structure to hold information needed to process one native event
// this is just a dummy holder, so it doesn't take ownership of it's data
// this is just a dummy holder, so it doesn't take ownership of its data
struct wxEventProcessingData
{
wxEventProcessingData(const FILE_NOTIFY_INFORMATION* ne,

View File

@@ -1058,7 +1058,7 @@
// Default is 1.
//
// Recommended setting: 1 but can be safely set to 0 except for wxUniv where it
// it used by wxComboBox
// is used by wxComboBox
#define wxUSE_COMBOCTRL 1
// wxOwnerDrawnComboBox is a custom combobox allowing to paint the combobox

View File

@@ -165,7 +165,7 @@ enum POPUPCHECKSTATES
// If we declare them as taking LOGFONT below, the code would be able to
// silently pass LOGFONTA to them in ANSI build and would crash at run-time
// under Windows Vista/7 because of a buffer overrun (LOGFONTA being smaller
// than LOGFONTW expected by these functions). If we we declare them as taking
// than LOGFONTW expected by these functions). If we declare them as taking
// LOGFONTW, the code wouldn't work correctly under XP. So we use a special
// wxUxThemeFont class to encapsulate this and intentionally change the LOGFONT
// output parameters of the theme functions to take it instead.

View File

@@ -57,7 +57,7 @@ public:
// watches from kqeueue and from FSEvents
bool RemoveAll() wxOVERRIDE;
// post an file change event to the owner
// post a file change event to the owner
void PostChange(const wxFileName& oldFileName,
const wxFileName& newFileName, int event);

View File

@@ -1064,7 +1064,7 @@
// Default is 1.
//
// Recommended setting: 1 but can be safely set to 0 except for wxUniv where it
// it used by wxComboBox
// is used by wxComboBox
#define wxUSE_COMBOCTRL 1
// wxOwnerDrawnComboBox is a custom combobox allowing to paint the combobox

View File

@@ -33,7 +33,7 @@ public:
// A container of font and colours with inheritance support. It holds two
// sets of attributes:
// 1. The currently specified ones from parsed tags that contain
// information on on what should change in the output; some of them
// information on what should change in the output; some of them
// may be invalid if only the others are affected by a change.
// 2. The _effective_ attributes that are always valid and accumulate
// all past changes as the markup is being parser; these are used

View File

@@ -19,7 +19,7 @@
#endif
// wxRescaleCoord is used to scale the components of the given wxSize by the
// ratio between 2 scales, with rounding. It doesn't not scale the components
// ratio between 2 scales, with rounding. It doesn't scale the components
// if they're set to -1 (wxDefaultCoord), as this value is special in wxSize.
//
// The way it's used is special because we want to ensure there is no confusion

View File

@@ -181,7 +181,7 @@ public:
bool LoadArg(wxPrintfArg *p, va_list &argptr);
private:
// An helper function of LoadArg() which is used to handle the '*' flag
// A helper function of LoadArg() which is used to handle the '*' flag
void ReplaceAsteriskWith(int w);
};

View File

@@ -207,7 +207,7 @@ public:
return InsertPage(-1, label, bmp, pageObj);
}
// Deletes all all properties and all pages.
// Deletes all properties and all pages.
virtual void Clear() wxOVERRIDE;
// Deletes all properties on given page.

View File

@@ -324,7 +324,7 @@ public:
const wxPGAttributeStorage& GetPropertyAttributes( wxPGPropArg id ) const
{
// If 'id' refers to invalid property, then we will return dummy
// attributes (i.e. root property's attributes, which contents should
// attributes (i.e. root property's attributes, which contents
// should always be empty and of no consequence).
wxPG_PROP_ARG_CALL_PROLOG_RETVAL(m_pState->DoGetRoot()->GetAttributes())
return p->GetAttributes();

View File

@@ -463,7 +463,7 @@ private:
// -----------------------------------------------------------------------
// wxEnumProperty with wxString value and writable combo box editor.
// Uses int value, similar to wxEnumProperty, unless text entered by user is
// Uses int value, similar to wxEnumProperty, unless text entered by user
// is not in choices (in which case string value is used).
class WXDLLIMPEXP_PROPGRID wxEditEnumProperty : public wxEnumProperty
{

View File

@@ -31,7 +31,7 @@
// bother to inline them unless we crank the optimization levels way up.
// Therefore, we also provide macros to wring maximum speed out of compiler
// unconditionally (e.g. even in debug builds). Of course, if the performance
// isn't absolutely crucial for you you shouldn't be using them but the inline
// isn't absolutely crucial for you shouldn't be using them but the inline
// functions instead.
// ----------------------------------------------------------------------------

View File

@@ -1054,7 +1054,7 @@
// Default is 1.
//
// Recommended setting: 1 but can be safely set to 0 except for wxUniv where it
// it used by wxComboBox
// is used by wxComboBox
#define wxUSE_COMBOCTRL 1
// wxOwnerDrawnComboBox is a custom combobox allowing to paint the combobox

View File

@@ -65,7 +65,7 @@ enum wxStockHelpStringClient
wxSTOCK_MENU // help string to use for menu items
};
// Returns an help string for the given stock UI element and for the given "context".
// Returns a help string for the given stock UI element and for the given "context".
WXDLLIMPEXP_CORE wxString wxGetStockHelpString(wxWindowID id,
wxStockHelpStringClient client = wxSTOCK_MENU);

View File

@@ -143,7 +143,7 @@ public:
// return true if the converter's charset is UTF-8, i.e. char* strings
// decoded using this object can be directly copied to wxString's internal
// storage without converting to WC and than back to UTF-8 MB string
// storage without converting to WC and then back to UTF-8 MB string
virtual bool IsUTF8() const { return false; }
// The old conversion functions. The existing classes currently mostly

View File

@@ -1507,7 +1507,7 @@ public:
}
/*
Note that we we must define all of the overloads below to avoid
Note that we must define all of the overloads below to avoid
ambiguity when using str[0].
*/
wxUniChar operator[](int n) const

View File

@@ -76,7 +76,7 @@ wxGCC_WARNING_SUPPRESS(ctor-dtor-privacy)
// using wxArgNormalizer<T>, unlike the rest of
// the function's arguments [2]
// fixed List of types of the leading "fixed" arguments, in
// parenthesis [(FILE*,const wxString&)]
// parentheses [(FILE*,const wxString&)]
// impl Name of the variadic function that implements 'name' for
// the native strings representation (wchar_t* if
// wxUSE_UNICODE_WCHAR or wxUSE_UNICODE_UTF8 when running under

View File

@@ -102,7 +102,7 @@ enum
//
// However recursive mutexes have several important drawbacks: first, in the
// POSIX implementation, they're less efficient. Second, and more importantly,
// they CAN NOT BE USED WITH CONDITION VARIABLES under Unix! Using them with
// they CANNOT BE USED WITH CONDITION VARIABLES under Unix! Using them with
// wxCondition will work under Windows and some Unices (notably Linux) but will
// deadlock under other Unix versions (e.g. Solaris). As it might be difficult
// to ensure that a recursive mutex is not used with wxCondition, it is a good

View File

@@ -1057,7 +1057,7 @@
// Default is 1.
//
// Recommended setting: 1 but can be safely set to 0 except for wxUniv where it
// it used by wxComboBox
// is used by wxComboBox
#define wxUSE_COMBOCTRL 1
// wxOwnerDrawnComboBox is a custom combobox allowing to paint the combobox

View File

@@ -139,7 +139,7 @@ public:
wxXLocale() { m_isC = false; }
// Construct from a symbolic language constant: unless the language is
// wxLANGUAGE_ENGLISH_US (which we suppose to be the same as "C" locale)
// wxLANGUAGE_ENGLISH_US (which we assume to be the same as "C" locale)
// the object will be invalid
wxXLocale(wxLanguage lang)
{

View File

@@ -154,7 +154,7 @@ public:
virtual void DoBeginWriteObject(const wxObject *object, const wxClassInfo *classInfo,
int objectID, const wxStringToAnyHashMap &metadata ) = 0;
// end of writing an toplevel object name param is used for unique
// end of writing a toplevel object name param is used for unique
// identification within the container
virtual void DoEndWriteObject(const wxObject *object,
const wxClassInfo *classInfo, int objectID ) = 0;
@@ -213,7 +213,7 @@ Streaming callbacks for depersisting XML to code, or running objects
class WXDLLIMPEXP_BASE wxObjectReaderCallback;
/*
wxObjectReader handles streaming in a class from a arbitrary format.
wxObjectReader handles streaming in a class from an arbitrary format.
While walking through it issues calls out to interfaces to readercallback
the guts from the underlying storage format.
*/

View File

@@ -56,7 +56,7 @@ public:
virtual void DoBeginWriteObject(const wxObject *object,
const wxClassInfo *classInfo, int objectID, const wxStringToAnyHashMap &metadata );
// end of writing an toplevel object name param is used for unique
// end of writing a toplevel object name param is used for unique
// identification within the container
virtual void DoEndWriteObject(const wxObject *object,
const wxClassInfo *classInfo, int objectID );

View File

@@ -353,7 +353,7 @@ void wxAuiGtkTabArt::DrawTab(wxDC& dc, wxWindow* wnd, const wxAuiNotebookPage& p
if(page.active && (wnd->FindFocus() == wnd) && focus_area.x <= (area.x + area.width))
{
// clipping seems not to work here, so we we have to recalc the focus-area manually
// clipping seems not to work here, so we have to recalc the focus-area manually
if((focus_area.x + focus_area.width) > (area.x + area.width))
focus_area.width = area.x + area.width - focus_area.x + focus_width - GTK_NOTEBOOK (wxGTKPrivate::GetNotebookWidget())->tab_vborder;
gtk_paint_focus (style_notebook, window,

View File

@@ -499,7 +499,7 @@ bool wxGUIAppTraitsBase::ShowAssertDialog(const wxString& msg)
if ( wxIsMainThread() )
{
// Note that this and the other messages here are intentionally not
// translated -- they are for developpers only.
// translated -- they are for developers only.
static const wxStringCharType* caption = wxS("wxWidgets Debug Alert");
wxString msgDlg = wxS("A debugging check in this application ")

View File

@@ -948,7 +948,7 @@ void wxComboCtrlBase::CalculateAreas( int btnWidth )
wxSize sz = GetClientSize();
int btnBorder; // border for button only
// check if button should really be outside the border: we'll do it it if
// check if button should really be outside the border: we'll do it if
// its platform default or bitmap+pushbutton background is used, but not if
// there is vertical size adjustment or horizontal spacing.
if ( ( (m_iFlags & wxCC_BUTTON_OUTSIDE_BORDER) ||
@@ -2378,7 +2378,7 @@ wxSize wxComboCtrlBase::GetButtonSize()
wxSize retSize(m_btnWid,m_btnHei);
// Need to call CalculateAreas now if button size is
// Need to call CalculateAreas now if button size
// is not explicitly specified.
if ( retSize.x <= 0 || retSize.y <= 0)
{

View File

@@ -607,7 +607,7 @@ bool wxSetFocusToChild(wxWindow *win, wxWindow **childLastFocused)
{
wxCHECK_MSG( win, false, wxT("wxSetFocusToChild(): invalid window") );
// wxCHECK_MSG( childLastFocused, false,
// wxT("wxSetFocusToChild(): NULL child poonter") );
// wxT("wxSetFocusToChild(): NULL child pointer") );
if ( childLastFocused && *childLastFocused )
{

View File

@@ -365,7 +365,7 @@ void wxDCImpl::DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h)
wxS("Clipping box size values cannot be negative") );
// If we set clipping box with this method we can operate on device coordinates
// and calculate clipping box properly also when transfromations were applied to DC.
// and calculate clipping box properly also when transformations were applied to DC.
m_useDevClipCoords = true;
wxRect clipRegion(LogicalToDevice(x, y), LogicalToDeviceRel(w, h));
@@ -1252,7 +1252,7 @@ void wxDC::DrawLabel(const wxString& text,
{
if ( pc == text.end() || *pc == '\n' )
{
int xRealStart = x; // init it here to avoid compielr warnings
int xRealStart = x; // init it here to avoid compiler warnings
if ( !curLine.empty() )
{

View File

@@ -616,7 +616,7 @@ wxAffineMatrix2D wxGCDCImpl::GetTransformMatrix() const
void wxGCDCImpl::ResetTransformMatrix()
{
// Reset affine transfrom matrix (extended) to identity matrix.
// Reset affine transform matrix (extended) to identity matrix.
m_matrixExtTransform.Set(wxMatrix2D(), wxPoint2DDouble());
ComputeScaleAndOrigin();
}

View File

@@ -2160,7 +2160,7 @@ bool wxDocPrintout::OnPrintPage(int WXUNUSED(page))
GetPPIPrinter(&ppiPrinterX, &ppiPrinterY);
wxUnusedVar(ppiPrinterY);
// This scales the DC so that the printout roughly represents the
// This scales the DC so that the printout roughly represents
// the screen scaling. The text point size _should_ be the right size
// but in fact is too small for some reason. This is a detail that will
// need to be addressed at some point but can be fudged for the

View File

@@ -360,7 +360,7 @@ int wxEventLoopManual::DoRun()
}
catch ( ... )
{
// OnException() throwed, possibly rethrowing the same
// OnException() thrown, possibly rethrowing the same
// exception again: very good, but we still need OnExit() to
// be called
OnExit();

View File

@@ -77,7 +77,7 @@ bool wxFileDialogBase::Create(wxWindow *parent,
assert in wxRegion::DoOffset is triggered later on.
Another solution was to override GetWindowStyleFlag() to not include
wxFD_FILE_MUST_EXIST in its return value, but as other wxFileDialog
style flags (that are actually used) dont't seem to cause problems
style flags (that are actually used) don't seem to cause problems
this seemed an easier solution.
*/
style &= ~wxFD_FILE_MUST_EXIST;

View File

@@ -182,7 +182,7 @@ wxArchiveFSEntry *wxArchiveFSCacheDataImpl::GetNext(wxArchiveFSEntry *fse)
//---------------------------------------------------------------------------
// wxArchiveFSCacheData
//
// This is the inteface for wxArchiveFSCacheDataImpl above. Holds the catalog
// This is the interface for wxArchiveFSCacheDataImpl above. Holds the catalog
// of an archive file, and if it is being read from a non-seekable stream, a
// copy of its backing file.
//---------------------------------------------------------------------------
@@ -501,7 +501,7 @@ wxString wxArchiveFSHandler::DoFind()
match = m_ZipFile + dir + wxT("/") + filename;
}
else
break; // already tranversed
break; // already transversed
}
}

View File

@@ -418,7 +418,7 @@ wxColour wxColourDatabase::Find(const wxString& colour) const
wxColourDatabase * const self = wxConstCast(this, wxColourDatabase);
self->Initialize();
// make the comparaison case insensitive and also match both grey and gray
// make the comparison case insensitive and also match both grey and gray
wxString colName = colour;
colName.MakeUpper();
wxString colNameAlt = colName;

View File

@@ -370,7 +370,7 @@ wxGIFDecoder::dgif(wxInputStream& stream, GIFImage *img, int interl, int bits)
int ab_free; // first free position in alphabet
int ab_max; // last possible character in alphabet
int pass; // pass number in interlaced images
int pos; // index into decompresion stack
int pos; // index into decompression stack
unsigned int x, y; // position in image buffer
int code, lastcode, abcabca;

View File

@@ -475,7 +475,7 @@ size_t wxHTTPStream::OnSysRead(void *buffer, size_t bufsize)
// if m_httpsize is (size_t) -1 this means read until connection closed
// which is equivalent to getting a READ_ERROR, for clients however this
// must be translated into EOF, as it is the expected way of signalling
// end end of the content
// end of the content
m_lasterror = wxSTREAM_EOF;
}

View File

@@ -1380,7 +1380,7 @@ bool wxICOHandler::SaveFile(wxImage *image,
}
image->SetOption(wxIMAGE_OPTION_BMP_FORMAT, bppFormat);
// monochome bitmap:
// monochrome bitmap:
mask.SetOption(wxIMAGE_OPTION_BMP_FORMAT, wxBMP_1BPP_BW);
bool IsBmp = false;
bool IsMask = false;

View File

@@ -90,7 +90,7 @@ wxEND_FLAGS( wxMenuBarStyle )
#if wxUSE_EXTENDED_RTTI
// the negative id would lead the window (its superclass !) to
// vetoe streaming out otherwise
// veto streaming out otherwise
bool wxMenuBarStreamingCallback( const wxObject *WXUNUSED(object), wxObjectWriter *,
wxObjectWriterCallback *, const wxStringToAnyHashMap & )
{
@@ -509,7 +509,7 @@ int wxMenuBase::FindItem(const wxString& text) const
return rc;
}
// we execute this code for submenus as well to alllow finding them by
// we execute this code for submenus as well to allow finding them by
// name just like the ordinary items
if ( !item->IsSeparator() )
{

View File

@@ -202,7 +202,7 @@ wxClassInfo *wxClassInfo::FindClass(const wxString& className)
// first time the problem will no longer happen; all the modules it depends on
// will have been loaded. The assumption is checked using the 'entry' variable
// as a reentrance guard, it checks that once the hash table is global it is
// not accessed multiple times simulateously.
// not accessed multiple times simultaneously.
void wxClassInfo::Register()
{
@@ -220,7 +220,7 @@ void wxClassInfo::Register()
}
else
{
// guard againt reentrance once the global has been created
// guard against reentrance once the global has been created
wxASSERT_MSG(++entry == 1, wxT("wxClassInfo::Register() reentrance"));
classTable = sm_classTable;
}
@@ -250,7 +250,7 @@ void wxClassInfo::Register()
}
else
{
// the gobal hash has already been created by a reentrant call,
// the global hash has already been created by a reentrant call,
// so delete the local hash and try again
delete classTable;
Register();

View File

@@ -73,7 +73,7 @@ wxFSFile* wxWebViewArchiveHandler::GetFile(const wxString &uri)
}
}
//We do not have a protocol string so we just pass the path withouth the
//We do not have a protocol string so we just pass the path without the
if(start == wxString::npos)
{
size_t doubleslash = path.find("//");

View File

@@ -430,7 +430,7 @@ void wxNonOwnedWindow::SetDfbFocus()
// Note that the events are processed by event loop, i.e. not between
// execution of lines (1) and (2) above. So by the time the first
// DWET_GOTFOCUS event is handled, tlw2->SetFocus() was already executed.
// If we onconditionally called RequestFocus() from here, handling the
// If we unconditionally called RequestFocus() from here, handling the
// first event would result in this change to the event queue:
//
// DWET_LOSTFOCUS(tlw1)

View File

@@ -1039,7 +1039,7 @@ void wxWindowDFB::HandleKeyEvent(const wxDFBWindowEvent& event_)
return;
}
// Synthetize navigation key event, but do it only if the TAB key
// Synthesize navigation key event, but do it only if the TAB key
// wasn't handled yet:
if ( isTab && GetParent() && GetParent()->HasFlag(wxTAB_TRAVERSAL) )
{

View File

@@ -316,7 +316,7 @@ void wxGenericComboCtrl::OnPaintEvent( wxPaintEvent& WXUNUSED(event) )
dc.SetPen(tcCol);
dc.DrawRectangle(tcRect);
// this is intentionally here to allow drawed rectangle's
// this is intentionally here to allow drawn rectangle's
// right edge to be hidden
if ( m_text )
tcRect.width = m_widthCustomPaint;

View File

@@ -306,7 +306,7 @@ int wxGenericFileDialog::ShowModal()
bool wxGenericFileDialog::Show( bool show )
{
// Called by ShowModal, so don't repeate the update
// Called by ShowModal, so don't repeat the update
#ifndef __WIN32__
if (show)
{

View File

@@ -175,7 +175,7 @@ public:
static wxRendererGeneric* DoGetGeneric();
protected:
// draw the rectange using the first pen for the left and top sides and
// draw the rectangle using the first pen for the left and top sides and
// the second one for the bottom and right ones
void DrawShadedRect(wxDC& dc, wxRect *rect,
const wxPen& pen1, const wxPen& pen2);

View File

@@ -57,7 +57,7 @@ extern GdkAtom g_altTextAtom;
// wxClipboardSync: used to perform clipboard operations synchronously
// ----------------------------------------------------------------------------
// constructing this object on stack will wait wait until the latest clipboard
// constructing this object on stack will wait until the latest clipboard
// operation is finished on block exit
//
// notice that there can be no more than one such object alive at any moment,

View File

@@ -212,7 +212,7 @@ wxSize wxButton::DoGetBestSize() const
{
// the default button in wxGTK is bigger than the other ones because of an
// extra border around it, but we don't want to take it into account in
// our size calculations (otherwsie the result is visually ugly), so
// our size calculations (otherwise the result is visually ugly), so
// always return the size of non default button from here
const bool isDefault = GTK_WIDGET_HAS_DEFAULT(m_widget);
if ( isDefault )

View File

@@ -771,7 +771,7 @@ wxString wxListBox::GetRealLabel(GList *item) const
str = wxString( label->label );
#if wxUSE_CHECKLISTBOX
// checklistboxes have "[±] " prepended to their lables, remove it
// checklistboxes have "[±] " prepended to their labels, remove it
//
// NB: 4 below is the length of wxCHECKLBOX_STRING from wx/gtk1/checklst.h
if ( m_hasCheckBoxes )

View File

@@ -1018,7 +1018,7 @@ bool wxTextCtrl::IsOwnGtkWindow( GdkWindow *window )
}
}
// the font will change for subsequent text insertiongs
// the font will change for subsequent text insertions
bool wxTextCtrl::SetFont( const wxFont &font )
{
wxCHECK_MSG( m_text != NULL, false, wxT("invalid text ctrl") );

View File

@@ -2510,7 +2510,7 @@ bool wxMSWDCImpl::DoStretchBlit(wxCoord xdest, wxCoord ydest,
actually is applied not only to the source but also dest]
Be conservative about using the offset and only do it for
currently currently known failing cases: when xdest and xsrc are
currently known failing cases: when xdest and xsrc are
equal and only when not actually stretching.
*/
const wxCoord ofs = (GetLayoutDirection() == wxLayout_RightToLeft

View File

@@ -5016,7 +5016,7 @@ bool wxWindowMSW::HandlePaletteChanged(WXHWND hWndPalChange)
// same as below except we don't respond to our own messages
if ( hWndPalChange != GetHWND() )
{
// check to see if we our our parents have a custom palette
// check to see if we our parents have a custom palette
wxWindowMSW *win = this;
while ( win && !win->HasCustomPalette() )
{

View File

@@ -73,12 +73,12 @@ long wxTextEntry::GetLastPosition() const
void wxTextEntry::SetSelection(long WXUNUSED(from), long WXUNUSED(to))
{
wxFAIL_MSG("wxTextEntry::SetSelection should be overriden");
wxFAIL_MSG("wxTextEntry::SetSelection should be overridden");
}
void wxTextEntry::GetSelection(long *from, long *to) const
{
// no unified get selection method in Qt (overriden in textctrl & combobox)
// no unified get selection method in Qt (overridden in textctrl & combobox)
// only called if no selection
// If the return values from and to are the same, there is no
// selection.

View File

@@ -346,7 +346,7 @@ void wxRichTextStyleOrganiserDialog::CreateControls()
else
{
// Avoid the Escape key logic falling back on OK after finding
// a hidden wxID_CANCEL contol
// a hidden wxID_CANCEL control
m_closeButton->SetId(wxID_HIGHEST);
m_buttonSizer->Show(m_closeButton, false);
}

View File

@@ -1291,7 +1291,7 @@ wxString wxRichTextXMLHelper::MakeStringFromProperty(const wxVariant& var)
return var.MakeString();
}
// Create a proprty from the string read from the XML file.
// Create a property from the string read from the XML file.
wxVariant wxRichTextXMLHelper::MakePropertyFromString(const wxString& name, const wxString& value, const wxString& WXUNUSED(type))
{
wxVariant var(value, name);

View File

@@ -353,8 +353,8 @@ void wxListBox::DoDeleteOneItem(unsigned int n)
}
//else: current item may stay
// update the selections array: the indices of all seletected items after
// the one being deleted must change and the item itselfm ust be removed
// update the selections array: the indices of all selected items after
// the one being deleted must change and the item itself just be removed
int index = wxNOT_FOUND;
unsigned int count = m_selections.GetCount();
for ( unsigned int item = 0; item < count; item++ )
@@ -1429,7 +1429,7 @@ bool wxStdListboxInputHandler::HandleMouse(wxInputConsumer *consumer,
winCapture->ReleaseMouse();
m_btnCapture = 0;
}
//else: the mouse wasn't presed over the listbox, only released here
//else: the mouse wasn't pressed over the listbox, only released here
}
else if ( event.LeftDClick() )
{

View File

@@ -207,7 +207,7 @@ protected:
// show the submenu for this item
void OpenSubmenu(wxMenuItem *item, InputMethod how = WithKeyboard);
// can this tiem be opened?
// can this time be opened?
bool CanOpen(wxMenuItem *item)
{
return item && item->IsEnabled() && item->IsSubMenu();
@@ -216,7 +216,7 @@ protected:
// dismiss the menu and all parent menus too
void DismissAndNotify();
// react to dimissing this menu and also dismiss the parent if
// react to dismissing this menu and also dismiss the parent if
// dismissParent
void HandleDismiss(bool dismissParent);
@@ -1235,7 +1235,7 @@ wxMenuItem* wxMenu::DoInsert(size_t pos, wxMenuItem *item)
if ( pos <= start )
{
// Item is inserted in the begining of the range
// Item is inserted in the beginning of the range
// we need to update its end item
m_startRadioGroup = pos;
item->SetAsRadioGroupStart();
@@ -1465,7 +1465,7 @@ bool wxMenu::ClickItem(wxMenuItem *item)
}
else
{
// not applicabled
// not applicable
isChecked = -1;
}

View File

@@ -163,7 +163,7 @@ bool wxNotebook::SetPageText(size_t nPage, const wxString& strText)
if ( FixedSizeTabs() )
{
// it's enough to just reresh this one
// it's enough to just refresh this one
RefreshTab(nPage);
}
else // var width tabs
@@ -556,7 +556,7 @@ void wxNotebook::DoDraw(wxControlRenderer *renderer)
{
// unfortunately we can't do this because the selected tab hangs
// over its neighbours and so we might need to refresh more tabs -
// of course, we could still avoid rereshing some of them with more
// of course, we could still avoid refreshing some of them with more
// complicated checks, but it doesn't seem too bad to refresh all
// of them, I still don't see flicker, so leaving as is for now
@@ -1105,7 +1105,7 @@ void wxNotebook::UpdateSpinBtn()
// efficient
m_offset -= GetTabWidth(m_firstVisible--);
// reclaculate after m_firstVisible change
// recalculate after m_firstVisible change
CalcLastVisibleTab();
}
@@ -1247,7 +1247,7 @@ void wxNotebook::ScrollLastTo(size_t page)
// go to it
ScrollTo(m_firstVisible);
// consitency check: the page we were asked to show should be shown
// consistency check: the page we were asked to show should be shown
wxASSERT_MSG( (size_t)page < m_lastVisible, wxT("bug in ScrollLastTo") );
}

View File

@@ -108,7 +108,7 @@ void wxSpinButton::SetRange(int minVal, int maxVal)
// because the arrows disabled state might have changed - we don't check if
// it really changed or not because SetRange() is called rarely enough and
// son an extre refresh here doesn't really hurt
// an extra refresh here doesn't really hurt
Refresh();
}
@@ -165,7 +165,7 @@ bool wxSpinButton::ChangeValue(int inc)
if ( GetEventHandler()->ProcessEvent(event) && !event.IsAllowed() )
{
// programm has vetoed the event
// program has vetoed the event
return false;
}

View File

@@ -232,7 +232,7 @@ wxRect wxStatusBarUniv::DoGetFieldRect(int n) const
wxCoord borderBetweenFields;
wxRect rect = self->GetTotalFieldRect(&borderBetweenFields);
// it's the caller responsability to check this, if unsure - call
// it's the caller responsibility to check this, if unsure - call
// GetFieldRect() instead
wxCHECK_MSG( !m_widthsAbs.IsEmpty(), rect,
wxT("can't be called if we don't have the widths") );

View File

@@ -932,7 +932,7 @@ void wxGTKRenderer::DrawUndeterminedBitmap(wxDC& dc,
bool isPressed)
{
// FIXME: For sure it is not GTK look but it is better than nothing.
// Show me correct look and I will immediatelly make it better (ABX)
// Show me correct look and I will immediately make it better (ABX)
wxRect rect = rectTotal;
wxColour col1, col2;
@@ -1080,7 +1080,7 @@ wxBitmap wxGTKRenderer::GetCheckBitmap(int flags)
dc.SelectObject(m_bitmapsCheckbox[0][1]);
DrawUncheckBitmap(dc, rect, false);
// normal undeterminated
// normal undetermined
dc.SelectObject(m_bitmapsCheckbox[0][2]);
DrawUndeterminedBitmap(dc, rect, false);
@@ -1091,7 +1091,7 @@ wxBitmap wxGTKRenderer::GetCheckBitmap(int flags)
dc.SelectObject(m_bitmapsCheckbox[1][1]);
DrawUncheckBitmap(dc, rect, true);
// pressed undeterminated
// pressed undetermined
dc.SelectObject(m_bitmapsCheckbox[1][2]);
DrawUndeterminedBitmap(dc, rect, true);
}
@@ -1809,7 +1809,7 @@ wxMenuGeometryInfo *wxGTKRenderer::GetMenuGeometry(wxWindow *win,
gi->m_ofsAccel = gi->m_ofsLabel + widthLabelMax;
if ( widthAccelMax > 0 )
{
// if we actually have any accesl, add a margin
// if we actually have any accels, add a margin
gi->m_ofsAccel += MENU_ACCEL_MARGIN;
}

View File

@@ -1768,7 +1768,7 @@ void wxWin32Renderer::DrawToolBarButton(wxDC& dc,
}
else if (style == wxTOOL_STYLE_SEPARATOR)
{
// leave a small gap aroudn the line, also account for the toolbar
// leave a small gap around the line, also account for the toolbar
// border itself
if(rectOrig.height > rectOrig.width)
{
@@ -3145,7 +3145,7 @@ void wxWin32Renderer::AdjustSize(wxSize *size, const wxWindow *window)
{
if ( !(window->GetWindowStyle() & wxBU_EXACTFIT) )
{
// TODO: don't harcode all this
// TODO: don't hardcode all this
size->x += 3*window->GetCharWidth();
wxCoord heightBtn = (11*(window->GetCharHeight() + 8))/10;

View File

@@ -400,7 +400,7 @@ bool wxApp::ProcessXEvent(WXEvent* _event)
switch ( keyEvent.m_keyCode )
{
// for modifiers, don't send wxEVT_CHAR event.
// the definition of Modifiers, plese see the doc of
// the definition of Modifiers, please see the doc of
// wxKeyModifier. we only take care of wxMOD_ALT, wxMOD_CONTROL
// wxMOD_SHIFT under X11 platform. Other modifiers is handled
// by window manager.
@@ -441,7 +441,7 @@ bool wxApp::ProcessXEvent(WXEvent* _event)
wxKeyEvent keyEvent(wxEVT_KEY_UP);
wxTranslateKeyEvent(keyEvent, win, window, event);
// if recieve the modifiers key up. set the corresponding
// if receive the modifiers key up. set the corresponding
// keyboardState to false.
switch ( keyEvent.m_keyCode )
{
@@ -771,7 +771,7 @@ Window wxGetWindowParent(Window window)
return (Window) 0;
#ifndef __VMS
// VMS chokes on unreacheable code
// VMS chokes on unreachable code
Window parent, root = 0;
#if wxUSE_NANOX
int noChildren = 0;

View File

@@ -213,7 +213,7 @@ bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *buf)
{
// VZ: old format
#if 0
// filenames are stores as a string with #0 as deliminators
// filenames are stores as a string with #0 as delimitors
const char *filenames = (const char*) buf;
size_t pos = 0;
for(;;)

View File

@@ -1374,7 +1374,7 @@ bool wxWindowDCImpl::DoBlit( wxCoord xdest, wxCoord ydest, wxCoord width, wxCoor
{
/* we SHOULD use the direct way if all of the bitmap
in the memory dc is copied in which case XCopyArea
wouldn't be able able to boost performace by reducing
wouldn't be able able to boost performance by reducing
the area to be scaled */
use_bitmap_method = true;
}

View File

@@ -228,11 +228,11 @@ int wxPalette::GetPixel(unsigned char WXUNUSED(red),
return wxNOT_FOUND;
}
// In all wx ports, when declare GetRGB, the first parameter is "int pixel"
// the docs said the function is used to "Returns RGB values for a given
// palette index." And in GetRGB implementation, all port named the first
// parameter to " int index". I don't it is whether intended, but "index"
// is more meanning for, and to be consistent with other ports, I renamed
// In all wx ports, when declaring GetRGB, the first parameter is "int pixel."
// The docs said the function is used to "Returns RGB values for a given
// palette index." And in GetRGB implementation, all ports name the first
// parameter to "int index". I don't know whether that is intended, but "index"
// is more meaningful, and to be consistent with other ports, I renamed
// the first parameter from pixel to index.
bool wxPalette::GetRGB(int index,
unsigned char *red,