Fix more typos in comments and wxFAIL messages
Closes https://github.com/wxWidgets/wxWidgets/pull/270
This commit is contained in:
@@ -78,7 +78,7 @@ enum wxAuiPaneDockArtGradients
|
|||||||
/// No gradient on the captions, in other words a solid colour
|
/// No gradient on the captions, in other words a solid colour
|
||||||
wxAUI_GRADIENT_NONE = 0,
|
wxAUI_GRADIENT_NONE = 0,
|
||||||
|
|
||||||
/// Vertical gradient on the captions, in other words a gradal change in colours from top to bottom
|
/// Vertical gradient on the captions, in other words a gradual change in colours from top to bottom
|
||||||
wxAUI_GRADIENT_VERTICAL = 1,
|
wxAUI_GRADIENT_VERTICAL = 1,
|
||||||
|
|
||||||
/// Horizontal gradient on the captions, in other words a gradual change in colours from left to right
|
/// Horizontal gradient on the captions, in other words a gradual change in colours from left to right
|
||||||
@@ -182,7 +182,7 @@ enum wxAuiButtonId
|
|||||||
See also @ref overview_aui.
|
See also @ref overview_aui.
|
||||||
|
|
||||||
wxAuiDockArt is the art provider: provides all drawing functionality to the
|
wxAuiDockArt is the art provider: provides all drawing functionality to the
|
||||||
wxAui dock manager. This allows the dock manager to have a plugable look-and-feel.
|
wxAui dock manager. This allows the dock manager to have a pluggable look-and-feel.
|
||||||
|
|
||||||
By default, a wxAuiManager uses an instance of this class called
|
By default, a wxAuiManager uses an instance of this class called
|
||||||
wxAuiDefaultDockArt which provides bitmap art and a colour scheme that is
|
wxAuiDefaultDockArt which provides bitmap art and a colour scheme that is
|
||||||
|
@@ -132,8 +132,8 @@ public:
|
|||||||
|
|
||||||
wxPropertyGridManager inherits from wxPropertyGridInterface, and as such
|
wxPropertyGridManager inherits from wxPropertyGridInterface, and as such
|
||||||
it has most property manipulation functions. However, only some of them affect
|
it has most property manipulation functions. However, only some of them affect
|
||||||
properties on all pages (eg. GetPropertyByName() and ExpandAll()), while some
|
properties on all pages (e.g. GetPropertyByName() and ExpandAll()), while some
|
||||||
(eg. Append()) only apply to the currently selected page.
|
(e.g. Append()) only apply to the currently selected page.
|
||||||
|
|
||||||
To operate explicitly on properties on specific page, use
|
To operate explicitly on properties on specific page, use
|
||||||
wxPropertyGridManager::GetPage() to obtain pointer to page's
|
wxPropertyGridManager::GetPage() to obtain pointer to page's
|
||||||
@@ -405,7 +405,7 @@ public:
|
|||||||
Select and displays a given page.
|
Select and displays a given page.
|
||||||
|
|
||||||
@param index
|
@param index
|
||||||
Index of page being seleced. Can be -1 to select nothing.
|
Index of page being selected. Can be -1 to select nothing.
|
||||||
*/
|
*/
|
||||||
void SelectPage( int index );
|
void SelectPage( int index );
|
||||||
|
|
||||||
|
@@ -304,11 +304,11 @@ wxPG_PROP_USES_COMMON_VALUE = 0x00020000,
|
|||||||
*/
|
*/
|
||||||
wxPG_PROP_AUTO_UNSPECIFIED = 0x00040000,
|
wxPG_PROP_AUTO_UNSPECIFIED = 0x00040000,
|
||||||
|
|
||||||
/** Indicates the bit useable by derived properties.
|
/** Indicates the bit usable by derived properties.
|
||||||
*/
|
*/
|
||||||
wxPG_PROP_CLASS_SPECIFIC_1 = 0x00080000,
|
wxPG_PROP_CLASS_SPECIFIC_1 = 0x00080000,
|
||||||
|
|
||||||
/** Indicates the bit useable by derived properties.
|
/** Indicates the bit usable by derived properties.
|
||||||
*/
|
*/
|
||||||
wxPG_PROP_CLASS_SPECIFIC_2 = 0x00100000,
|
wxPG_PROP_CLASS_SPECIFIC_2 = 0x00100000,
|
||||||
|
|
||||||
|
@@ -89,7 +89,7 @@ public:
|
|||||||
void AddHandler(wxXmlResourceHandler* handler);
|
void AddHandler(wxXmlResourceHandler* handler);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Add a new handler at the begining of the handler list.
|
Add a new handler at the beginning of the handler list.
|
||||||
*/
|
*/
|
||||||
void InsertHandler(wxXmlResourceHandler *handler);
|
void InsertHandler(wxXmlResourceHandler *handler);
|
||||||
|
|
||||||
|
@@ -112,7 +112,7 @@ protected:
|
|||||||
CPPUNIT_ASSERT(!stream_in.Eof());
|
CPPUNIT_ASSERT(!stream_in.Eof());
|
||||||
CPPUNIT_ASSERT(stream_in.IsOk());
|
CPPUNIT_ASSERT(stream_in.IsOk());
|
||||||
|
|
||||||
// Test the stream version aswell.
|
// Test the stream version as well.
|
||||||
TStreamOut &stream_out = CreateOutStream();
|
TStreamOut &stream_out = CreateOutStream();
|
||||||
(void)stream_in.Read(stream_out);
|
(void)stream_in.Read(stream_out);
|
||||||
|
|
||||||
@@ -142,10 +142,10 @@ protected:
|
|||||||
// EOF behaviour is different in streams, disabled (for now?)
|
// EOF behaviour is different in streams, disabled (for now?)
|
||||||
|
|
||||||
if (m_bEofAtLastRead)
|
if (m_bEofAtLastRead)
|
||||||
// EOF should only occure after the last successful get.
|
// EOF should only occur after the last successful get.
|
||||||
CPPUNIT_ASSERT_MESSAGE("Eof is detected too late.", !(stream_in.LastRead() != 1 && stream_in.Eof()));
|
CPPUNIT_ASSERT_MESSAGE("Eof is detected too late.", !(stream_in.LastRead() != 1 && stream_in.Eof()));
|
||||||
else
|
else
|
||||||
// EOF should only occure after a failed get.
|
// EOF should only occur after a failed get.
|
||||||
CPPUNIT_ASSERT_MESSAGE("Eof is detected too soon.", !(stream_in.LastRead() == 1 && stream_in.Eof()));
|
CPPUNIT_ASSERT_MESSAGE("Eof is detected too soon.", !(stream_in.LastRead() == 1 && stream_in.Eof()));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -386,14 +386,14 @@ protected:
|
|||||||
// Default false.
|
// Default false.
|
||||||
bool m_bSeekInvalidBeyondEnd; // if true a SeekI|O beyond the end of the stream should return wxInvalidOffset
|
bool m_bSeekInvalidBeyondEnd; // if true a SeekI|O beyond the end of the stream should return wxInvalidOffset
|
||||||
// Default true.
|
// Default true.
|
||||||
bool m_bEofAtLastRead; // Does EOF occure at the moment the last byte is read or when read past the last byte.
|
bool m_bEofAtLastRead; // Does EOF occur at the moment the last byte is read or when read past the last byte.
|
||||||
// Default true.
|
// Default true.
|
||||||
protected:
|
protected:
|
||||||
TStreamIn &CreateInStream()
|
TStreamIn &CreateInStream()
|
||||||
{
|
{
|
||||||
if (m_pCurrentIn)
|
if (m_pCurrentIn)
|
||||||
{
|
{
|
||||||
wxFAIL_MSG(wxT("Error in test case, the previouse input stream needs to be delete first!"));
|
wxFAIL_MSG(wxT("Error in test case, the previous input stream needs to be delete first!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pCurrentIn = DoCreateInStream();
|
m_pCurrentIn = DoCreateInStream();
|
||||||
@@ -404,7 +404,7 @@ protected:
|
|||||||
{
|
{
|
||||||
if (m_pCurrentOut)
|
if (m_pCurrentOut)
|
||||||
{
|
{
|
||||||
wxFAIL_MSG(wxT("Error in test case, the previouse output stream needs to be delete first!"));
|
wxFAIL_MSG(wxT("Error in test case, the previous output stream needs to be delete first!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pCurrentOut = DoCreateOutStream();
|
m_pCurrentOut = DoCreateOutStream();
|
||||||
|
@@ -173,7 +173,7 @@ private:
|
|||||||
void WrongFormatStrings();
|
void WrongFormatStrings();
|
||||||
|
|
||||||
// compares the expectedString and the result of wxVsnprintf() char by char
|
// compares the expectedString and the result of wxVsnprintf() char by char
|
||||||
// for all its lenght (not only for first expectedLen chars) and also
|
// for all its length (not only for first expectedLen chars) and also
|
||||||
// checks the return value
|
// checks the return value
|
||||||
void DoMisc(int expectedLen, const wxString& expectedString,
|
void DoMisc(int expectedLen, const wxString& expectedString,
|
||||||
size_t max, const wxChar *format, ...);
|
size_t max, const wxChar *format, ...);
|
||||||
|
Reference in New Issue
Block a user