Globally replace _T() with wxT().
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -61,16 +61,16 @@ enum
|
||||
|
||||
static const wxString stdPaths[] =
|
||||
{
|
||||
_T("&none"),
|
||||
_T("&config"),
|
||||
_T("&data"),
|
||||
_T("&documents"),
|
||||
_T("&local data"),
|
||||
_T("&plugins"),
|
||||
_T("&resources"),
|
||||
_T("&user config"),
|
||||
_T("&user data"),
|
||||
_T("&user local data")
|
||||
wxT("&none"),
|
||||
wxT("&config"),
|
||||
wxT("&data"),
|
||||
wxT("&documents"),
|
||||
wxT("&local data"),
|
||||
wxT("&plugins"),
|
||||
wxT("&resources"),
|
||||
wxT("&user config"),
|
||||
wxT("&user data"),
|
||||
wxT("&user local data")
|
||||
};
|
||||
|
||||
enum
|
||||
@@ -182,30 +182,30 @@ void DirCtrlWidgetsPage::CreateContent()
|
||||
0, wxALL | wxALIGN_RIGHT , 5 );
|
||||
|
||||
wxSizer *sizerUseFlags =
|
||||
new wxStaticBoxSizer(wxVERTICAL, this, _T("&Flags"));
|
||||
m_chkDirOnly = CreateCheckBoxAndAddToSizer(sizerUseFlags, _T("wxDIRCTRL_DIR_ONLY"));
|
||||
m_chk3D = CreateCheckBoxAndAddToSizer(sizerUseFlags, _T("wxDIRCTRL_3D_INTERNAL"));
|
||||
m_chkFirst = CreateCheckBoxAndAddToSizer(sizerUseFlags, _T("wxDIRCTRL_SELECT_FIRST"));
|
||||
m_chkLabels = CreateCheckBoxAndAddToSizer(sizerUseFlags, _T("wxDIRCTRL_EDIT_LABELS"));
|
||||
m_chkMulti = CreateCheckBoxAndAddToSizer(sizerUseFlags, _T("wxDIRCTRL_MULTIPLE"));
|
||||
new wxStaticBoxSizer(wxVERTICAL, this, wxT("&Flags"));
|
||||
m_chkDirOnly = CreateCheckBoxAndAddToSizer(sizerUseFlags, wxT("wxDIRCTRL_DIR_ONLY"));
|
||||
m_chk3D = CreateCheckBoxAndAddToSizer(sizerUseFlags, wxT("wxDIRCTRL_3D_INTERNAL"));
|
||||
m_chkFirst = CreateCheckBoxAndAddToSizer(sizerUseFlags, wxT("wxDIRCTRL_SELECT_FIRST"));
|
||||
m_chkLabels = CreateCheckBoxAndAddToSizer(sizerUseFlags, wxT("wxDIRCTRL_EDIT_LABELS"));
|
||||
m_chkMulti = CreateCheckBoxAndAddToSizer(sizerUseFlags, wxT("wxDIRCTRL_MULTIPLE"));
|
||||
sizerLeft->Add(sizerUseFlags, wxSizerFlags().Expand().Border());
|
||||
|
||||
wxSizer *sizerFilters =
|
||||
new wxStaticBoxSizer(wxVERTICAL, this, _T("&Filters"));
|
||||
new wxStaticBoxSizer(wxVERTICAL, this, wxT("&Filters"));
|
||||
m_fltr[0] = CreateCheckBoxAndAddToSizer(sizerFilters, wxString::Format(wxT("all files (%s)|%s"),
|
||||
wxFileSelectorDefaultWildcardStr, wxFileSelectorDefaultWildcardStr));
|
||||
m_fltr[1] = CreateCheckBoxAndAddToSizer(sizerFilters, wxT("C++ files (*.cpp; *.h)|*.cpp;*.h"));
|
||||
m_fltr[2] = CreateCheckBoxAndAddToSizer(sizerFilters, wxT("PNG images (*.png)|*.png"));
|
||||
sizerLeft->Add(sizerFilters, wxSizerFlags().Expand().Border());
|
||||
|
||||
wxButton *btn = new wxButton(this, DirCtrlPage_Reset, _T("&Reset"));
|
||||
wxButton *btn = new wxButton(this, DirCtrlPage_Reset, wxT("&Reset"));
|
||||
sizerLeft->Add(btn, 0, wxALIGN_CENTRE_HORIZONTAL | wxALL, 15);
|
||||
|
||||
// keep consistency between enum and labels of radiobox
|
||||
wxCOMPILE_TIME_ASSERT( stdPathMax == WXSIZEOF(stdPaths), EnumForRadioBoxMismatch);
|
||||
|
||||
// middle pane
|
||||
m_radioStdPath = new wxRadioBox(this, wxID_ANY, _T("Standard path"),
|
||||
m_radioStdPath = new wxRadioBox(this, wxID_ANY, wxT("Standard path"),
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
WXSIZEOF(stdPaths), stdPaths, 1);
|
||||
|
||||
@@ -300,7 +300,7 @@ void DirCtrlWidgetsPage::OnRadioBox(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
wxString path;
|
||||
|
||||
wxTheApp->SetAppName(_T("widgets"));
|
||||
wxTheApp->SetAppName(wxT("widgets"));
|
||||
wxStandardPathsBase& stdp = wxStandardPaths::Get();
|
||||
|
||||
switch ( m_radioStdPath->GetSelection() )
|
||||
@@ -351,7 +351,7 @@ void DirCtrlWidgetsPage::OnRadioBox(wxCommandEvent& WXUNUSED(event))
|
||||
m_dirCtrl->SetPath(path);
|
||||
if(!m_dirCtrl->GetPath().IsSameAs(path))
|
||||
{
|
||||
wxLogMessage(_T("Selected standard path and path from control do not match!"));
|
||||
wxLogMessage(wxT("Selected standard path and path from control do not match!"));
|
||||
m_radioStdPath->SetSelection(stdPathUnknown);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user