Fix some typos in the comments and messages in the samples.
Closes #16738. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,7 +36,7 @@ the d&d operation. Finally, the drop target receives the notification when
|
|||||||
the data is dropped onto the associated window (see below) and is responsible
|
the data is dropped onto the associated window (see below) and is responsible
|
||||||
for pasting the data and returning the result code (copy, move or failure).
|
for pasting the data and returning the result code (copy, move or failure).
|
||||||
There is one class for each one of these roles in wxWindows d&d implementation,
|
There is one class for each one of these roles in wxWindows d&d implementation,
|
||||||
plese see their descriptions below for details.
|
please see their descriptions below for details.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ pointer manipulations and only requires you to override GetCountFormats()
|
|||||||
and GetFormat(n) functions to let it know what data formats you support.
|
and GetFormat(n) functions to let it know what data formats you support.
|
||||||
If it's not flexible enough for your application (i.e. the set of supported
|
If it's not flexible enough for your application (i.e. the set of supported
|
||||||
formats changes over time...), you should override IsAcceptedData(). In 99%
|
formats changes over time...), you should override IsAcceptedData(). In 99%
|
||||||
of cases the default implementation is ok and you only have to return count
|
of cases the default implementation is OK and you only have to return count
|
||||||
of supported formats (CF_xxx constants or one of your custom formats which
|
of supported formats (CF_xxx constants or one of your custom formats which
|
||||||
must have been registered) and their values.
|
must have been registered) and their values.
|
||||||
|
|
||||||
|
@@ -1144,7 +1144,7 @@ void FormMain::PopulateWithStandardItems ()
|
|||||||
|
|
||||||
pg->Append( new wxLongStringProperty(wxT("Information"),wxPG_LABEL,
|
pg->Append( new wxLongStringProperty(wxT("Information"),wxPG_LABEL,
|
||||||
wxT("Editing properties will have immediate effect on this window, ")
|
wxT("Editing properties will have immediate effect on this window, ")
|
||||||
wxT("and vice versa (atleast in most cases, that is).")
|
wxT("and vice versa (at least in most cases, that is).")
|
||||||
) );
|
) );
|
||||||
pg->SetPropertyHelpString( wxT("Information"),
|
pg->SetPropertyHelpString( wxT("Information"),
|
||||||
wxT("This property is read-only.") );
|
wxT("This property is read-only.") );
|
||||||
@@ -2100,7 +2100,7 @@ FormMain::FormMain(const wxString& title, const wxPoint& pos, const wxSize& size
|
|||||||
wxT("Switches between category-specific cell colours and default scheme (actually done using SetPropertyTextColour and SetPropertyBackgroundColour).") );
|
wxT("Switches between category-specific cell colours and default scheme (actually done using SetPropertyTextColour and SetPropertyBackgroundColour).") );
|
||||||
menuTry->AppendSeparator();
|
menuTry->AppendSeparator();
|
||||||
menuTry->AppendCheckItem(ID_STATICLAYOUT, wxT("Static Layout"),
|
menuTry->AppendCheckItem(ID_STATICLAYOUT, wxT("Static Layout"),
|
||||||
wxT("Switches between user-modifiedable and static layouts.") );
|
wxT("Switches between user-modifiable and static layouts.") );
|
||||||
menuTry->Append(ID_SETCOLUMNS, wxT("Set Number of Columns") );
|
menuTry->Append(ID_SETCOLUMNS, wxT("Set Number of Columns") );
|
||||||
menuTry->AppendSeparator();
|
menuTry->AppendSeparator();
|
||||||
menuTry->Append(ID_TESTXRC, wxT("Display XRC sample") );
|
menuTry->Append(ID_TESTXRC, wxT("Display XRC sample") );
|
||||||
@@ -2432,7 +2432,7 @@ void FormMain::OnExtendedKeyNav( wxCommandEvent& WXUNUSED(event) )
|
|||||||
WXK_RETURN);
|
WXK_RETURN);
|
||||||
propGrid->DedicateKey(WXK_RETURN);
|
propGrid->DedicateKey(WXK_RETURN);
|
||||||
|
|
||||||
// Up and Down keys are alredy associated with navigation,
|
// Up and Down keys are already associated with navigation,
|
||||||
// but we must also prevent them from being eaten by
|
// but we must also prevent them from being eaten by
|
||||||
// editor controls.
|
// editor controls.
|
||||||
propGrid->DedicateKey(WXK_UP);
|
propGrid->DedicateKey(WXK_UP);
|
||||||
|
@@ -378,7 +378,7 @@ RegFrame::RegFrame(wxFrame *parent, const wxChar *title, int x, int y, int w, in
|
|||||||
wxMenu *pMenuFile = new wxMenu;
|
wxMenu *pMenuFile = new wxMenu;
|
||||||
pMenuFile->Append(Menu_Test, wxT("Te&st"), wxT("Test key creation"));
|
pMenuFile->Append(Menu_Test, wxT("Te&st"), wxT("Test key creation"));
|
||||||
pMenuFile->AppendSeparator();
|
pMenuFile->AppendSeparator();
|
||||||
pMenuFile->Append(Menu_About, wxT("&About"), wxT("Show an extraordinarly beautiful dialog"));
|
pMenuFile->Append(Menu_About, wxT("&About"), wxT("Show an extraordinarily beautiful dialog"));
|
||||||
pMenuFile->AppendSeparator();
|
pMenuFile->AppendSeparator();
|
||||||
pMenuFile->Append(Menu_Quit, wxT("E&xit"), wxT("Quit this program"));
|
pMenuFile->Append(Menu_Quit, wxT("E&xit"), wxT("Quit this program"));
|
||||||
|
|
||||||
@@ -629,7 +629,7 @@ RegTreeCtrl::RegTreeCtrl(wxWindow *parent, wxWindowID id)
|
|||||||
: wxTreeCtrl(parent, id, wxDefaultPosition, wxDefaultSize,
|
: wxTreeCtrl(parent, id, wxDefaultPosition, wxDefaultSize,
|
||||||
wxTR_HAS_BUTTONS | wxTR_EDIT_LABELS | wxSUNKEN_BORDER)
|
wxTR_HAS_BUTTONS | wxTR_EDIT_LABELS | wxSUNKEN_BORDER)
|
||||||
{
|
{
|
||||||
// init members
|
// initialize members
|
||||||
m_draggedItem = NULL;
|
m_draggedItem = NULL;
|
||||||
m_restoreStatus = false;
|
m_restoreStatus = false;
|
||||||
m_viewMode = wxRegKey::WOW64ViewMode_Default;
|
m_viewMode = wxRegKey::WOW64ViewMode_Default;
|
||||||
|
@@ -64,7 +64,7 @@ API
|
|||||||
===
|
===
|
||||||
|
|
||||||
It's basically the wxTextCtrl with some additions. There is a new
|
It's basically the wxTextCtrl with some additions. There is a new
|
||||||
wxTextAttrEx class deriving from wxTextAttr, to accomodate new
|
wxTextAttrEx class deriving from wxTextAttr, to accommodate new
|
||||||
style attributes. This could be merged with wxTextAttr. There
|
style attributes. This could be merged with wxTextAttr. There
|
||||||
is also a wxRichTextAttr which is similar to wxTextAttrEx but
|
is also a wxRichTextAttr which is similar to wxTextAttrEx but
|
||||||
doesn't store the font as a wxFont: this allows much more
|
doesn't store the font as a wxFont: this allows much more
|
||||||
|
@@ -182,7 +182,7 @@ Client::OnInitCmdLine(wxCmdLineParser& pParser)
|
|||||||
wxApp::OnInitCmdLine(pParser);
|
wxApp::OnInitCmdLine(pParser);
|
||||||
pParser.AddSwitch(wxT("e"),wxT("event"),_("Use event based worker (default)"),wxCMD_LINE_PARAM_OPTIONAL);
|
pParser.AddSwitch(wxT("e"),wxT("event"),_("Use event based worker (default)"),wxCMD_LINE_PARAM_OPTIONAL);
|
||||||
pParser.AddSwitch(wxT("t"),wxT("thread"),_("Use thread based worker"),wxCMD_LINE_PARAM_OPTIONAL);
|
pParser.AddSwitch(wxT("t"),wxT("thread"),_("Use thread based worker"),wxCMD_LINE_PARAM_OPTIONAL);
|
||||||
pParser.AddSwitch(wxT("r"),wxT("random"),_("Send radnom data (default)"),wxCMD_LINE_PARAM_OPTIONAL);
|
pParser.AddSwitch(wxT("r"),wxT("random"),_("Send random data (default)"),wxCMD_LINE_PARAM_OPTIONAL);
|
||||||
pParser.AddOption(wxT("m"),wxT("message"),_("Send message from <str>"),wxCMD_LINE_VAL_STRING,wxCMD_LINE_PARAM_OPTIONAL);
|
pParser.AddOption(wxT("m"),wxT("message"),_("Send message from <str>"),wxCMD_LINE_VAL_STRING,wxCMD_LINE_PARAM_OPTIONAL);
|
||||||
pParser.AddOption(wxT("f"),wxT("file"),_("Send contents of <file>"),wxCMD_LINE_VAL_STRING,wxCMD_LINE_PARAM_OPTIONAL);
|
pParser.AddOption(wxT("f"),wxT("file"),_("Send contents of <file>"),wxCMD_LINE_VAL_STRING,wxCMD_LINE_PARAM_OPTIONAL);
|
||||||
pParser.AddOption(wxT("H"),wxT("hostname"),_("IP or name of host to connect to"),wxCMD_LINE_VAL_STRING,wxCMD_LINE_PARAM_OPTIONAL);
|
pParser.AddOption(wxT("H"),wxT("hostname"),_("IP or name of host to connect to"),wxCMD_LINE_VAL_STRING,wxCMD_LINE_PARAM_OPTIONAL);
|
||||||
@@ -220,7 +220,7 @@ Client::OnCmdLineParsed(wxCmdLineParser& pParser)
|
|||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
if (!file.ReadAll(&m_message)) {
|
if (!file.ReadAll(&m_message)) {
|
||||||
wxLogError(wxT("Cannot read conten of file %s"),fname.c_str());
|
wxLogError(wxT("Cannot read content of file %s"),fname.c_str());
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
m_sendType = SEND_MESSAGE;
|
m_sendType = SEND_MESSAGE;
|
||||||
@@ -319,9 +319,9 @@ Client::CreateBuffer(int* msgsize)
|
|||||||
//test3 for compatibility with GUI server sample
|
//test3 for compatibility with GUI server sample
|
||||||
if ((*msgsize) > 250)
|
if ((*msgsize) > 250)
|
||||||
{
|
{
|
||||||
//send at least one kb of data
|
//send at least one KB of data
|
||||||
int size = (*msgsize)/1024 + 1;
|
int size = (*msgsize)/1024 + 1;
|
||||||
//returned buffer will contain test indicator, message size in kb and data
|
//returned buffer will contain test indicator, message size in KB and data
|
||||||
bufsize = size*1024+2;
|
bufsize = size*1024+2;
|
||||||
buf = new char[bufsize];
|
buf = new char[bufsize];
|
||||||
buf[0] = (unsigned char)0xDE; //second byte contains size in kilobytes
|
buf[0] = (unsigned char)0xDE; //second byte contains size in kilobytes
|
||||||
@@ -330,7 +330,7 @@ Client::CreateBuffer(int* msgsize)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//returned buffer will contain test indicator, message size in kb and data
|
//returned buffer will contain test indicator, message size in KB and data
|
||||||
bufsize = (*msgsize)+2;
|
bufsize = (*msgsize)+2;
|
||||||
buf = new char[bufsize];
|
buf = new char[bufsize];
|
||||||
buf[0] = (unsigned char)0xBE; //second byte contains size in bytes
|
buf[0] = (unsigned char)0xBE; //second byte contains size in bytes
|
||||||
|
@@ -65,7 +65,7 @@ struct wxObjectCodeReaderCallback::wxObjectCodeReaderCallbackInternal
|
|||||||
|
|
||||||
if ( m_objectNames.find(objectID) == m_objectNames.end() )
|
if ( m_objectNames.find(objectID) == m_objectNames.end() )
|
||||||
{
|
{
|
||||||
wxLogError( _("Passing an unkown object to GetObject") );
|
wxLogError( _("Passing an unknown object to GetObject") );
|
||||||
return wxEmptyString;
|
return wxEmptyString;
|
||||||
}
|
}
|
||||||
return wxString( m_objectNames[objectID].c_str() );
|
return wxString( m_objectNames[objectID].c_str() );
|
||||||
|
Reference in New Issue
Block a user