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:
@@ -44,7 +44,7 @@ AutoCaptureMechanism::AutoCaptureMechanism(wxNotebook *notebook,
|
||||
}
|
||||
|
||||
/* static */
|
||||
wxString AutoCaptureMechanism::default_dir = _T("screenshots");
|
||||
wxString AutoCaptureMechanism::default_dir = wxT("screenshots");
|
||||
|
||||
/* static */
|
||||
wxString AutoCaptureMechanism::GetDefaultDirectoryAbsPath()
|
||||
@@ -72,7 +72,7 @@ bool AutoCaptureMechanism::Capture(wxBitmap* bitmap, int x, int y,
|
||||
// Somehow wxScreenDC.Blit() doesn't work under Mac for now. Here is a trick.
|
||||
#ifdef __WXMAC__
|
||||
|
||||
// wxExecute(_T("screencapture -x ") + tempfile, wxEXEC_SYNC);
|
||||
// wxExecute(wxT("screencapture -x ") + tempfile, wxEXEC_SYNC);
|
||||
|
||||
char captureCommand[80] =""; // a reasonable max size is 80
|
||||
sprintf(captureCommand, "sleep %d;%s", delay, "screencapture -x /tmp/wx_screen_capture.png");
|
||||
@@ -83,7 +83,7 @@ bool AutoCaptureMechanism::Capture(wxBitmap* bitmap, int x, int y,
|
||||
wxBitmap fullscreen;
|
||||
do
|
||||
{
|
||||
fullscreen = wxBitmap(_T("/tmp/wx_screen_capture.png"), wxBITMAP_TYPE_PNG);
|
||||
fullscreen = wxBitmap(wxT("/tmp/wx_screen_capture.png"), wxBITMAP_TYPE_PNG);
|
||||
}
|
||||
while(!fullscreen.IsOk());
|
||||
|
||||
@@ -199,7 +199,7 @@ bool AutoCaptureMechanism::Capture(wxBitmap* bitmap, Control& ctrl)
|
||||
{
|
||||
// no manual specification for the control name
|
||||
// or name adjustment is disabled globally
|
||||
if (ctrl.name == _T("") || m_flag & AJ_DisableNameAdjust)
|
||||
if (ctrl.name == wxT("") || m_flag & AJ_DisableNameAdjust)
|
||||
{
|
||||
// Get its name from wxRTTI
|
||||
ctrl.name = ctrl.ctrl->GetClassInfo()->GetClassName();
|
||||
@@ -234,7 +234,7 @@ bool AutoCaptureMechanism::Capture(wxBitmap* bitmap, Control& ctrl)
|
||||
|
||||
// cut off "wx" and change the name into lowercase.
|
||||
// e.g. wxButton will have a name of "button" at the end
|
||||
ctrl.name.StartsWith(_T("wx"), &(ctrl.name));
|
||||
ctrl.name.StartsWith(wxT("wx"), &(ctrl.name));
|
||||
ctrl.name.MakeLower();
|
||||
|
||||
// take the screenshot
|
||||
@@ -307,16 +307,16 @@ wxRect AutoCaptureMechanism::GetRect(wxWindow* ctrl, int flag)
|
||||
wxStaticText* l[4];
|
||||
|
||||
for (int i = 0; i < 4; ++i)
|
||||
l[i] = new wxStaticText(parent, wxID_ANY, _T(" "));
|
||||
l[i] = new wxStaticText(parent, wxID_ANY, wxT(" "));
|
||||
|
||||
m_grid->Add(l[0]);
|
||||
m_grid->Add(new wxStaticText(parent, wxID_ANY, _T(" ")));
|
||||
m_grid->Add(new wxStaticText(parent, wxID_ANY, wxT(" ")));
|
||||
m_grid->Add(l[1]);
|
||||
m_grid->Add(new wxStaticText(parent, wxID_ANY, _T(" ")));
|
||||
m_grid->Add(new wxStaticText(parent, wxID_ANY, wxT(" ")));
|
||||
m_grid->Add(ctrl, 1, wxEXPAND);
|
||||
m_grid->Add(new wxStaticText(parent, wxID_ANY, _T(" ")));
|
||||
m_grid->Add(new wxStaticText(parent, wxID_ANY, wxT(" ")));
|
||||
m_grid->Add(l[2]);
|
||||
m_grid->Add(new wxStaticText(parent, wxID_ANY, _T(" ")));
|
||||
m_grid->Add(new wxStaticText(parent, wxID_ANY, wxT(" ")));
|
||||
m_grid->Add(l[3]);
|
||||
|
||||
sizer->Add(m_grid);
|
||||
|
Reference in New Issue
Block a user