Fix more typos in comments and wxFAIL messages
Closes https://github.com/wxWidgets/wxWidgets/pull/270
This commit is contained in:
parent
d4460435d9
commit
ba5a0a3878
@ -78,7 +78,7 @@ enum wxAuiPaneDockArtGradients
|
||||
/// No gradient on the captions, in other words a solid colour
|
||||
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,
|
||||
|
||||
/// 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.
|
||||
|
||||
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
|
||||
wxAuiDefaultDockArt which provides bitmap art and a colour scheme that is
|
||||
|
@ -132,8 +132,8 @@ public:
|
||||
|
||||
wxPropertyGridManager inherits from wxPropertyGridInterface, and as such
|
||||
it has most property manipulation functions. However, only some of them affect
|
||||
properties on all pages (eg. GetPropertyByName() and ExpandAll()), while some
|
||||
(eg. Append()) only apply to the currently selected page.
|
||||
properties on all pages (e.g. GetPropertyByName() and ExpandAll()), while some
|
||||
(e.g. Append()) only apply to the currently selected page.
|
||||
|
||||
To operate explicitly on properties on specific page, use
|
||||
wxPropertyGridManager::GetPage() to obtain pointer to page's
|
||||
@ -405,7 +405,7 @@ public:
|
||||
Select and displays a given page.
|
||||
|
||||
@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 );
|
||||
|
||||
|
@ -304,11 +304,11 @@ wxPG_PROP_USES_COMMON_VALUE = 0x00020000,
|
||||
*/
|
||||
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,
|
||||
|
||||
/** Indicates the bit useable by derived properties.
|
||||
/** Indicates the bit usable by derived properties.
|
||||
*/
|
||||
wxPG_PROP_CLASS_SPECIFIC_2 = 0x00100000,
|
||||
|
||||
|
@ -89,7 +89,7 @@ public:
|
||||
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);
|
||||
|
||||
|
@ -112,7 +112,7 @@ protected:
|
||||
CPPUNIT_ASSERT(!stream_in.Eof());
|
||||
CPPUNIT_ASSERT(stream_in.IsOk());
|
||||
|
||||
// Test the stream version aswell.
|
||||
// Test the stream version as well.
|
||||
TStreamOut &stream_out = CreateOutStream();
|
||||
(void)stream_in.Read(stream_out);
|
||||
|
||||
@ -142,10 +142,10 @@ protected:
|
||||
// EOF behaviour is different in streams, disabled (for now?)
|
||||
|
||||
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()));
|
||||
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()));
|
||||
#endif
|
||||
}
|
||||
@ -386,14 +386,14 @@ protected:
|
||||
// Default false.
|
||||
bool m_bSeekInvalidBeyondEnd; // if true a SeekI|O beyond the end of the stream should return wxInvalidOffset
|
||||
// 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.
|
||||
protected:
|
||||
TStreamIn &CreateInStream()
|
||||
{
|
||||
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();
|
||||
@ -404,7 +404,7 @@ protected:
|
||||
{
|
||||
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();
|
||||
|
@ -173,7 +173,7 @@ private:
|
||||
void WrongFormatStrings();
|
||||
|
||||
// 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
|
||||
void DoMisc(int expectedLen, const wxString& expectedString,
|
||||
size_t max, const wxChar *format, ...);
|
||||
|
Loading…
Reference in New Issue
Block a user