Use wxT macro with string literals in propgrid sample.

This fix is to unify string literals in the sample.
This commit is contained in:
Artur Wieczorek
2015-05-10 20:06:46 +02:00
parent d4440703b2
commit cc799c10ac
4 changed files with 122 additions and 122 deletions

View File

@@ -69,7 +69,7 @@ wxFontDataProperty::wxFontDataProperty( const wxString& label, const wxString& n
m_value_wxFontData << fontData;
// Add extra children.
AddPrivateChild( new wxColourProperty(_("Colour"), wxPG_LABEL,
AddPrivateChild( new wxColourProperty(wxT("Colour"), wxPG_LABEL,
fontData.GetColour() ) );
}
@@ -77,9 +77,9 @@ wxFontDataProperty::~wxFontDataProperty () { }
void wxFontDataProperty::OnSetValue()
{
if ( m_value.GetType() != "wxFontData" )
if ( m_value.GetType() != wxT("wxFontData") )
{
if ( m_value.GetType() == "wxFont" )
if ( m_value.GetType() == wxT("wxFont") )
{
wxFont font;
font << m_value;
@@ -277,7 +277,7 @@ wxVariant wxPointProperty::ChildChanged( wxVariant& thisValue,
// -----------------------------------------------------------------------
WX_PG_IMPLEMENT_ARRAYSTRING_PROPERTY_WITH_VALIDATOR(wxDirsProperty, ',',
"Browse")
wxT("Browse"))
#if wxUSE_VALIDATORS
@@ -292,7 +292,7 @@ wxValidator* wxDirsProperty::DoGetValidator() const
bool wxDirsProperty::OnCustomStringEdit( wxWindow* parent, wxString& value )
{
wxDirDialog dlg(parent,
_("Select a directory to be added to the list:"),
wxT("Select a directory to be added to the list:"),
value,
0);
@@ -657,7 +657,7 @@ wxValidator* wxArrayDoubleProperty::DoGetValidator() const
wxArrayString incChars(numValidator.GetIncludes());
// Accept also a delimiter and space character
incChars.Add(m_delimiter);
incChars.Add(" ");
incChars.Add(wxT(" "));
validator->SetIncludes(incChars);
@@ -670,9 +670,9 @@ wxValidator* wxArrayDoubleProperty::DoGetValidator() const
bool wxArrayDoubleProperty::ValidateValue(wxVariant& value,
wxPGValidationInfo& validationInfo) const
{
if (!value.IsType("wxArrayDouble"))
if (!value.IsType(wxT("wxArrayDouble")))
{
validationInfo.SetFailureMessage(_("At least one element is not a valid floating-point number."));
validationInfo.SetFailureMessage(wxT("At least one element is not a valid floating-point number."));
return false;
}