Remove more wxT() macros from samples
Also use wxString instead of wxChar* strings. Closes https://github.com/wxWidgets/wxWidgets/pull/950
This commit is contained in:
committed by
Vadim Zeitlin
parent
480047ee9a
commit
b70ed2d8c8
@@ -133,7 +133,7 @@ wxEND_EVENT_TABLE()
|
||||
#define FAMILY_CTRLS GENERIC_CTRLS
|
||||
#endif
|
||||
|
||||
IMPLEMENT_WIDGETS_PAGE(DirPickerWidgetsPage, wxT("DirPicker"),
|
||||
IMPLEMENT_WIDGETS_PAGE(DirPickerWidgetsPage, "DirPicker",
|
||||
PICKER_CTRLS | FAMILY_CTRLS);
|
||||
|
||||
DirPickerWidgetsPage::DirPickerWidgetsPage(WidgetsBookCtrl *book,
|
||||
@@ -147,10 +147,10 @@ void DirPickerWidgetsPage::CreateContent()
|
||||
// left pane
|
||||
wxSizer *boxleft = new wxBoxSizer(wxVERTICAL);
|
||||
|
||||
wxStaticBoxSizer *dirbox = new wxStaticBoxSizer(wxVERTICAL, this, wxT("&DirPicker style"));
|
||||
m_chkDirTextCtrl = CreateCheckBoxAndAddToSizer(dirbox, wxT("With textctrl"));
|
||||
m_chkDirMustExist = CreateCheckBoxAndAddToSizer(dirbox, wxT("Dir must exist"));
|
||||
m_chkDirChangeDir = CreateCheckBoxAndAddToSizer(dirbox, wxT("Change working dir"));
|
||||
wxStaticBoxSizer *dirbox = new wxStaticBoxSizer(wxVERTICAL, this, "&DirPicker style");
|
||||
m_chkDirTextCtrl = CreateCheckBoxAndAddToSizer(dirbox, "With textctrl");
|
||||
m_chkDirMustExist = CreateCheckBoxAndAddToSizer(dirbox, "Dir must exist");
|
||||
m_chkDirChangeDir = CreateCheckBoxAndAddToSizer(dirbox, "Change working dir");
|
||||
m_chkSmall = CreateCheckBoxAndAddToSizer(dirbox, "&Small version");
|
||||
boxleft->Add(dirbox, 0, wxALL|wxGROW, 5);
|
||||
|
||||
@@ -164,7 +164,7 @@ void DirPickerWidgetsPage::CreateContent()
|
||||
|
||||
boxleft->AddSpacer(10);
|
||||
|
||||
boxleft->Add(new wxButton(this, PickerPage_Reset, wxT("&Reset")),
|
||||
boxleft->Add(new wxButton(this, PickerPage_Reset, "&Reset"),
|
||||
0, wxALIGN_CENTRE_HORIZONTAL | wxALL, 15);
|
||||
|
||||
Reset(); // set checkboxes state
|
||||
@@ -206,7 +206,7 @@ void DirPickerWidgetsPage::CreatePicker()
|
||||
style |= wxDIRP_SMALL;
|
||||
|
||||
m_dirPicker = new wxDirPickerCtrl(this, PickerPage_Dir,
|
||||
wxGetHomeDir(), wxT("Hello!"),
|
||||
wxGetHomeDir(), "Hello!",
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
style);
|
||||
}
|
||||
@@ -246,7 +246,7 @@ void DirPickerWidgetsPage::OnButtonReset(wxCommandEvent& WXUNUSED(event))
|
||||
|
||||
void DirPickerWidgetsPage::OnDirChange(wxFileDirPickerEvent& event)
|
||||
{
|
||||
wxLogMessage(wxT("The directory changed to '%s' ! The current working directory is '%s'"),
|
||||
wxLogMessage("The directory changed to '%s' ! The current working directory is '%s'",
|
||||
event.GetPath().c_str(), wxGetCwd().c_str());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user