Fix misspellings in comments and documentation
No real changes. Closes https://github.com/wxWidgets/wxWidgets/pull/870
This commit is contained in:
committed by
Vadim Zeitlin
parent
11e6a40a97
commit
49e20a961d
@@ -337,7 +337,7 @@ public:
|
|||||||
int GetWatchedPathsCount() const;
|
int GetWatchedPathsCount() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrevies all watched paths and places them in wxArrayString. Returns
|
* Retrieves all watched paths and places them in wxArrayString. Returns
|
||||||
* the number of paths.
|
* the number of paths.
|
||||||
*
|
*
|
||||||
* TODO think about API here: we need to return more information (like is
|
* TODO think about API here: we need to return more information (like is
|
||||||
|
@@ -146,7 +146,7 @@ protected:
|
|||||||
/**
|
/**
|
||||||
Virtual dtor.
|
Virtual dtor.
|
||||||
|
|
||||||
It is not really needed in this case but at leats it prevents gcc from
|
It is not really needed in this case, but at least it prevents gcc from
|
||||||
complaining about its absence.
|
complaining about its absence.
|
||||||
*/
|
*/
|
||||||
virtual ~wxHtmlWindowMouseHelper() { }
|
virtual ~wxHtmlWindowMouseHelper() { }
|
||||||
|
@@ -294,7 +294,7 @@ public:
|
|||||||
Converts the array to a wxVariant with the list type, regardless of the
|
Converts the array to a wxVariant with the list type, regardless of the
|
||||||
underlying SAFEARRAY type.
|
underlying SAFEARRAY type.
|
||||||
|
|
||||||
If the array is multidimensional, it is flattened using the alghoritm
|
If the array is multidimensional, it is flattened using the algorithm
|
||||||
originally employed in wxConvertOleToVariant().
|
originally employed in wxConvertOleToVariant().
|
||||||
*/
|
*/
|
||||||
bool ConvertToVariant(wxVariant& variant) const
|
bool ConvertToVariant(wxVariant& variant) const
|
||||||
@@ -327,7 +327,7 @@ public:
|
|||||||
Converts an array to an ArrayString.
|
Converts an array to an ArrayString.
|
||||||
|
|
||||||
Can be called only for wxSafeArray<VT_BSTR>. If the array is
|
Can be called only for wxSafeArray<VT_BSTR>. If the array is
|
||||||
multidimensional, it is flattened using the alghoritm originally
|
multidimensional, it is flattened using the algorithm originally
|
||||||
employed in wxConvertOleToVariant().
|
employed in wxConvertOleToVariant().
|
||||||
*/
|
*/
|
||||||
bool ConvertToArrayString(wxArrayString& strings) const
|
bool ConvertToArrayString(wxArrayString& strings) const
|
||||||
|
@@ -40,7 +40,7 @@ public:
|
|||||||
to transfer ownership of that reference to this ref holder. If the object comes from
|
to transfer ownership of that reference to this ref holder. If the object comes from
|
||||||
a Create or Copy method then this is the correct behaviour. If the object comes from
|
a Create or Copy method then this is the correct behaviour. If the object comes from
|
||||||
a Get method then you must CFRetain it yourself before passing it to this constructor.
|
a Get method then you must CFRetain it yourself before passing it to this constructor.
|
||||||
A handy way to do this is to use the non-member wxCFRefFromGet factory funcion.
|
A handy way to do this is to use the non-member wxCFRefFromGet factory function.
|
||||||
This method is templated and takes an otherType *p. This prevents implicit conversion
|
This method is templated and takes an otherType *p. This prevents implicit conversion
|
||||||
using an operator refType() in a different ref-holding class type.
|
using an operator refType() in a different ref-holding class type.
|
||||||
*/
|
*/
|
||||||
|
@@ -41,7 +41,7 @@ public:
|
|||||||
to transfer ownership of that reference to this ref holder. If the object comes from
|
to transfer ownership of that reference to this ref holder. If the object comes from
|
||||||
a Create or Copy method then this is the correct behaviour. If the object comes from
|
a Create or Copy method then this is the correct behaviour. If the object comes from
|
||||||
a Get method then you must CFRetain it yourself before passing it to this constructor.
|
a Get method then you must CFRetain it yourself before passing it to this constructor.
|
||||||
A handy way to do this is to use the non-member wxCFRefFromGet factory funcion.
|
A handy way to do this is to use the non-member wxCFRefFromGet factory function.
|
||||||
This method is templated and takes an otherType *p. This prevents implicit conversion
|
This method is templated and takes an otherType *p. This prevents implicit conversion
|
||||||
using an operator refType() in a different ref-holding class type.
|
using an operator refType() in a different ref-holding class type.
|
||||||
*/
|
*/
|
||||||
|
@@ -172,7 +172,7 @@ public:
|
|||||||
to transfer ownership of that reference to this ref holder. If the object comes from
|
to transfer ownership of that reference to this ref holder. If the object comes from
|
||||||
a Create or Copy method then this is the correct behaviour. If the object comes from
|
a Create or Copy method then this is the correct behaviour. If the object comes from
|
||||||
a Get method then you must CFRetain it yourself before passing it to this constructor.
|
a Get method then you must CFRetain it yourself before passing it to this constructor.
|
||||||
A handy way to do this is to use the non-member wxCFRefFromGet factory funcion.
|
A handy way to do this is to use the non-member wxCFRefFromGet factory function.
|
||||||
*/
|
*/
|
||||||
wxCFRef(refType p) : m_ptr(p)
|
wxCFRef(refType p) : m_ptr(p)
|
||||||
{
|
{
|
||||||
@@ -186,7 +186,7 @@ public:
|
|||||||
to transfer ownership of that reference to this ref holder. If the object comes from
|
to transfer ownership of that reference to this ref holder. If the object comes from
|
||||||
a Create or Copy method then this is the correct behaviour. If the object comes from
|
a Create or Copy method then this is the correct behaviour. If the object comes from
|
||||||
a Get method then you must CFRetain it yourself before passing it to this constructor.
|
a Get method then you must CFRetain it yourself before passing it to this constructor.
|
||||||
A handy way to do this is to use the non-member wxCFRefFromGet factory funcion.
|
A handy way to do this is to use the non-member wxCFRefFromGet factory function.
|
||||||
This method is templated and takes an otherType *p. This prevents implicit conversion
|
This method is templated and takes an otherType *p. This prevents implicit conversion
|
||||||
using an operator refType() in a different ref-holding class type.
|
using an operator refType() in a different ref-holding class type.
|
||||||
*/
|
*/
|
||||||
|
@@ -70,7 +70,7 @@ public:
|
|||||||
|
|
||||||
@param ptSize point size of the font to create; note that this is
|
@param ptSize point size of the font to create; note that this is
|
||||||
a float and not integer, it should be wxFont's point
|
a float and not integer, it should be wxFont's point
|
||||||
size multipled by wxDC's scale factor
|
size multiplied by wxDC's scale factor
|
||||||
@param aa should the font be antialiased?
|
@param aa should the font be antialiased?
|
||||||
*/
|
*/
|
||||||
virtual wxFontInstance *GetFontInstance(float ptSize, bool aa);
|
virtual wxFontInstance *GetFontInstance(float ptSize, bool aa);
|
||||||
@@ -98,7 +98,7 @@ public:
|
|||||||
/// Returns name of the bundle
|
/// Returns name of the bundle
|
||||||
virtual wxString GetName() const = 0;
|
virtual wxString GetName() const = 0;
|
||||||
|
|
||||||
/// Returns true if the font is fixe-width
|
/// Returns true if the font is fixed-width
|
||||||
virtual bool IsFixed() const = 0;
|
virtual bool IsFixed() const = 0;
|
||||||
|
|
||||||
/// Type of faces in the bundle
|
/// Type of faces in the bundle
|
||||||
|
@@ -1247,7 +1247,7 @@ public:
|
|||||||
bool EndParagraphSpacing() { return GetBuffer().EndParagraphSpacing(); }
|
bool EndParagraphSpacing() { return GetBuffer().EndParagraphSpacing(); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Begins appling line spacing. @e spacing is a multiple, where 10 means
|
Begins applying line spacing. @e spacing is a multiple, where 10 means
|
||||||
single-spacing, 15 means 1.5 spacing, and 20 means double spacing.
|
single-spacing, 15 means 1.5 spacing, and 20 means double spacing.
|
||||||
|
|
||||||
The ::wxTextAttrLineSpacing constants are defined for convenience.
|
The ::wxTextAttrLineSpacing constants are defined for convenience.
|
||||||
@@ -1497,7 +1497,7 @@ public:
|
|||||||
virtual bool WordLeft(int noPages = 1, int flags = 0);
|
virtual bool WordLeft(int noPages = 1, int flags = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Move a nuber of words to the right.
|
Move a number of words to the right.
|
||||||
*/
|
*/
|
||||||
virtual bool WordRight(int noPages = 1, int flags = 0);
|
virtual bool WordRight(int noPages = 1, int flags = 0);
|
||||||
|
|
||||||
|
@@ -1453,7 +1453,7 @@ public:
|
|||||||
virtual bool WordLeft(int noPages = 1, int flags = 0);
|
virtual bool WordLeft(int noPages = 1, int flags = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Move a nuber of words to the right.
|
Move a number of words to the right.
|
||||||
*/
|
*/
|
||||||
virtual bool WordRight(int noPages = 1, int flags = 0);
|
virtual bool WordRight(int noPages = 1, int flags = 0);
|
||||||
|
|
||||||
|
@@ -246,7 +246,7 @@ wxImage wxXPMDecoder::ReadFile(wxInputStream& stream)
|
|||||||
* A hard coded rgb.txt. To keep it short I removed all colornames with *
|
* A hard coded rgb.txt. To keep it short I removed all colornames with *
|
||||||
* trailing numbers, Blue3 etc, except the GrayXX. Sorry Grey-lovers I prefer *
|
* trailing numbers, Blue3 etc, except the GrayXX. Sorry Grey-lovers I prefer *
|
||||||
* Gray ;-). But Grey is recognized on lookups, only on save Gray will be *
|
* Gray ;-). But Grey is recognized on lookups, only on save Gray will be *
|
||||||
* used, maybe you want to do some substitue there too. *
|
* used, maybe you want to do some substitute there too. *
|
||||||
* *
|
* *
|
||||||
* To save memory the RGBs are coded in one long value, as done by the RGB *
|
* To save memory the RGBs are coded in one long value, as done by the RGB *
|
||||||
* macro. *
|
* macro. *
|
||||||
|
@@ -290,7 +290,7 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title,
|
|||||||
// So far we assumed that label doesn't contain mnemonic
|
// So far we assumed that label doesn't contain mnemonic
|
||||||
// and therefore single underscore characters were not
|
// and therefore single underscore characters were not
|
||||||
// replaced by two underscores. Now we have to double
|
// replaced by two underscores. Now we have to double
|
||||||
// all exisiting underscore characters.
|
// all existing underscore characters.
|
||||||
label.Replace(wxS("_"), wxS("__"));
|
label.Replace(wxS("_"), wxS("__"));
|
||||||
label += wxS('_');
|
label += wxS('_');
|
||||||
}
|
}
|
||||||
|
@@ -201,7 +201,7 @@ bool wxChmTools::Contains(const wxString& pattern)
|
|||||||
/**
|
/**
|
||||||
* Find()
|
* Find()
|
||||||
*
|
*
|
||||||
* Finds the next file descibed by a pattern in the archive, starting
|
* Finds the next file described by a pattern in the archive, starting
|
||||||
* the file given by second parameter
|
* the file given by second parameter
|
||||||
*
|
*
|
||||||
* @param pattern The file-pattern to search for. May contain '*' and/or '?'
|
* @param pattern The file-pattern to search for. May contain '*' and/or '?'
|
||||||
@@ -410,7 +410,7 @@ private:
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param archive The name of the .chm archive. Remember that archive must
|
* @param archive The name of the .chm archive. Remember that archive must
|
||||||
* be local file accesible via fopen, fread functions!
|
* be local file accessible via fopen, fread functions!
|
||||||
* @param filename The Name of the file to be extracted from archive
|
* @param filename The Name of the file to be extracted from archive
|
||||||
* @param simulate if true than class should simulate .HHP-File based on #SYSTEM
|
* @param simulate if true than class should simulate .HHP-File based on #SYSTEM
|
||||||
* if false than class does nothing if it doesn't find .hhp
|
* if false than class does nothing if it doesn't find .hhp
|
||||||
@@ -553,8 +553,8 @@ wxFileOffset wxChmInputStream::OnSysSeek(wxFileOffset seek, wxSeekMode mode)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Help Browser tries to read the contents of the
|
* Help Browser tries to read the contents of the
|
||||||
* file by interpreting a .hhp file in the Archiv.
|
* file by interpreting a .hhp file in the Archive.
|
||||||
* For .chm doesn't include such a file, we need
|
* Because .chm doesn't include such a file, we need
|
||||||
* to rebuild the information based on stored
|
* to rebuild the information based on stored
|
||||||
* system-files.
|
* system-files.
|
||||||
*/
|
*/
|
||||||
|
@@ -2058,7 +2058,7 @@ void wxWindowDCImpl::SetDCClipping( WXRegion userRegion )
|
|||||||
m_clipRegion );
|
m_clipRegion );
|
||||||
}
|
}
|
||||||
// intersect the user region, if any, with the
|
// intersect the user region, if any, with the
|
||||||
// exisiting clip region
|
// existing clip region
|
||||||
else // if( userRegion )
|
else // if( userRegion )
|
||||||
{
|
{
|
||||||
if( !m_clipRegion )
|
if( !m_clipRegion )
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
//
|
//
|
||||||
// The ActiveX control itself is particularly stubborn, calling
|
// The ActiveX control itself is particularly stubborn, calling
|
||||||
// IOleInPlaceSite::OnPosRectChange every file change trying to set itself
|
// IOleInPlaceSite::OnPosRectChange every file change trying to set itself
|
||||||
// to something different then what we told it to before.
|
// to something different from what we told it to before.
|
||||||
//
|
//
|
||||||
// The docs are at
|
// The docs are at
|
||||||
// http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/windowsmediaplayer10sdk.asp
|
// http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/windowsmediaplayer10sdk.asp
|
||||||
|
@@ -356,7 +356,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
|
|||||||
// Update radio groups data if we're inserting a new menu item.
|
// Update radio groups data if we're inserting a new menu item.
|
||||||
// Inserting radio and non-radio item has a different impact
|
// Inserting radio and non-radio item has a different impact
|
||||||
// on radio groups so we have to handle each case separately.
|
// on radio groups so we have to handle each case separately.
|
||||||
// (Inserting a radio item in the middle of exisiting group extends
|
// (Inserting a radio item in the middle of existing group extends
|
||||||
// the group, but inserting non-radio item breaks it into two subgroups.)
|
// the group, but inserting non-radio item breaks it into two subgroups.)
|
||||||
//
|
//
|
||||||
bool checkInitially = false;
|
bool checkInitially = false;
|
||||||
@@ -372,7 +372,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
|
|||||||
{
|
{
|
||||||
if ( m_radioData->UpdateOnInsertNonRadio(pos) )
|
if ( m_radioData->UpdateOnInsertNonRadio(pos) )
|
||||||
{
|
{
|
||||||
// One of the exisiting groups has been split into two subgroups.
|
// One of the existing groups has been split into two subgroups.
|
||||||
wxFAIL_MSG(wxS("Inserting non-radio item inside a radio group?"));
|
wxFAIL_MSG(wxS("Inserting non-radio item inside a radio group?"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -429,7 +429,7 @@ public:
|
|||||||
//
|
//
|
||||||
// Result of several hours and days of bug hunting -
|
// Result of several hours and days of bug hunting -
|
||||||
// this is called by an object when it wants to resize
|
// this is called by an object when it wants to resize
|
||||||
// itself to something different then our parent window -
|
// itself to something different from our parent window -
|
||||||
// don't let it :)
|
// don't let it :)
|
||||||
//
|
//
|
||||||
// m_window->m_oleInPlaceObject->SetObjectRects(
|
// m_window->m_oleInPlaceObject->SetObjectRects(
|
||||||
|
@@ -136,7 +136,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *item, size_t pos)
|
|||||||
// Update radio groups if we're inserting a new menu item.
|
// Update radio groups if we're inserting a new menu item.
|
||||||
// Inserting radio and non-radio item has a different impact
|
// Inserting radio and non-radio item has a different impact
|
||||||
// on radio groups, so we have to handle each case separately.
|
// on radio groups, so we have to handle each case separately.
|
||||||
// (Inserting a radio item in the middle of exisiting groups extends this group,
|
// (Inserting a radio item in the middle of existing groups extends this group,
|
||||||
// but inserting a non-radio item breaks it into two subgroups.)
|
// but inserting a non-radio item breaks it into two subgroups.)
|
||||||
bool check = false;
|
bool check = false;
|
||||||
if ( item->IsRadio() )
|
if ( item->IsRadio() )
|
||||||
@@ -151,7 +151,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *item, size_t pos)
|
|||||||
{
|
{
|
||||||
if ( m_radioData->UpdateOnInsertNonRadio(pos) )
|
if ( m_radioData->UpdateOnInsertNonRadio(pos) )
|
||||||
{
|
{
|
||||||
// One of the exisiting groups has been split into two subgroups.
|
// One of the existing groups has been split into two subgroups.
|
||||||
wxFAIL_MSG(wxS("Inserting non-radio item inside a radio group?"));
|
wxFAIL_MSG(wxS("Inserting non-radio item inside a radio group?"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user