Merge branch 'pr1312-no-unsafe-wxstring-conv'

Add a way to optionally disallow all implicit conversions between
wxString and "const char*".

See https://github.com/wxWidgets/wxWidgets/pull/1312

See #18113.
This commit is contained in:
Vadim Zeitlin
2020-07-20 15:47:17 +02:00
380 changed files with 4734 additions and 1249 deletions

View File

@@ -375,6 +375,11 @@ more details.
set to 1 for compatibility reasons as @c -DwxNO_UNSAFE_WXSTRING_CONV set to 1 for compatibility reasons as @c -DwxNO_UNSAFE_WXSTRING_CONV
can be used only compiling the application code, without rebuilding the can be used only compiling the application code, without rebuilding the
library. Support for this option appeared in wxWidgets 3.1.1.} library. Support for this option appeared in wxWidgets 3.1.1.}
@itemdef{wxNO_IMPLICIT_WXSTRING_ENCODING,
this symbol is not defined by wxWidgets itself, but can be defined by
the applications using the library to disable implicit
conversions from and to <tt>const char*</tt> in wxString class.
Support for this option appeared in wxWidgets 3.1.4.}
@itemdef{WXMAKINGDLL_XXX, @itemdef{WXMAKINGDLL_XXX,
used internally and defined when building the used internally and defined when building the
library @c XXX as a DLL; when a monolithic wxWidgets build is used only a library @c XXX as a DLL; when a monolithic wxWidgets build is used only a

View File

@@ -236,12 +236,40 @@ arguments should take <tt>const wxString&</tt> (this makes assignment to the
strings inside the function faster) and all functions returning strings strings inside the function faster) and all functions returning strings
should return wxString - this makes it safe to return local variables. should return wxString - this makes it safe to return local variables.
Finally note that wxString uses the current locale encoding to convert any C string Note that wxString uses by default the current locale encoding to convert any C string
literal to Unicode. The same is done for converting to and from @c std::string literal to Unicode. The same is done for converting to and from @c std::string
and for the return value of c_str(). and for the return value of c_str().
For this conversion, the @a wxConvLibc class instance is used. For this conversion, the @a wxConvLibc class instance is used.
See wxCSConv and wxMBConv. See wxCSConv and wxMBConv.
It is also possible to disable any automatic conversions from C
strings to Unicode. This can be useful when the @a wxConvLibc encoding
is not appropriate for the current software and platform. The macro @c
wxNO_IMPLICIT_WXSTRING_ENCODING disables all implicit conversions, and
forces the code to explicitly indicate the encoding of all C strings.
Finally note that encodings, either implicitly or explicitly selected,
may not be able to represent all the string's characters. The result
in this case is undefined: the string may be empty, or the
unrepresentable characters may be missing or wrong.
@code
wxString s;
// s = "world"; does not compile with wxNO_IMPLICIT_WXSTRING_ENCODING
s = wxString::FromAscii("world"); // Always compiles
s = wxASCII_STR("world"); // shorthand for the above
s = wxString::FromUTF8("world"); // Always compiles
s = wxString("world", wxConvLibc); // Always compiles, explicit encoding
s = wxASCII_STR("Grüße"); // Always compiles but encoding fails
const char *c;
// c = s.c_str(); does not compile with wxNO_IMPLICIT_WXSTRING_ENCODING
// c = s.mb_str(); does not compile with wxNO_IMPLICIT_WXSTRING_ENCODING
c = s.ToAscii(); // Always compiles, encoding may fail
c = s.ToUTF8(); // Always compiles, encoding never fails
c = s.utf8_str(); // Alias for the above
c = s.mb_str(wxConvLibc); // Always compiles, explicit encoding
@endcode
@subsection overview_string_iterating Iterating wxString Characters @subsection overview_string_iterating Iterating wxString Characters

View File

@@ -66,7 +66,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxAddRemoveCtrlNameStr) const wxString& name = wxASCII_STR(wxAddRemoveCtrlNameStr))
{ {
Init(); Init();
@@ -78,7 +78,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxAddRemoveCtrlNameStr); const wxString& name = wxASCII_STR(wxAddRemoveCtrlNameStr));
virtual ~wxAddRemoveCtrl(); virtual ~wxAddRemoveCtrl();

View File

@@ -171,7 +171,7 @@ protected:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxAC_DEFAULT_STYLE, long style = wxAC_DEFAULT_STYLE,
const wxString& name = wxAnimationCtrlNameStr) const wxString& name = wxASCII_STR(wxAnimationCtrlNameStr))
: wxGenericAnimationCtrl(parent, id, anim, pos, size, style, name) : wxGenericAnimationCtrl(parent, id, anim, pos, size, style, name)
{} {}

View File

@@ -504,8 +504,10 @@ extern WXDLLIMPEXP_BASE bool wxAnyConvertString(const wxString& value,
wxAnyValueBuffer& dst); wxAnyValueBuffer& dst);
WX_ANY_DEFINE_CONVERTIBLE_TYPE_BASE(wxString, wxString, wxAnyConvertString) WX_ANY_DEFINE_CONVERTIBLE_TYPE_BASE(wxString, wxString, wxAnyConvertString)
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
WX_ANY_DEFINE_CONVERTIBLE_TYPE(const char*, ConstCharPtr, WX_ANY_DEFINE_CONVERTIBLE_TYPE(const char*, ConstCharPtr,
wxAnyConvertString, wxString) wxAnyConvertString, wxString)
#endif
WX_ANY_DEFINE_CONVERTIBLE_TYPE(const wchar_t*, ConstWchar_tPtr, WX_ANY_DEFINE_CONVERTIBLE_TYPE(const wchar_t*, ConstWchar_tPtr,
wxAnyConvertString, wxString) wxAnyConvertString, wxString)
@@ -757,11 +759,13 @@ public:
} }
// These two constructors are needed to deal with string literals // These two constructors are needed to deal with string literals
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
wxAny(const char* value) wxAny(const char* value)
{ {
m_type = wxAnyValueTypeImpl<const char*>::sm_instance.get(); m_type = wxAnyValueTypeImpl<const char*>::sm_instance.get();
wxAnyValueTypeImpl<const char*>::SetValue(value, m_buffer); wxAnyValueTypeImpl<const char*>::SetValue(value, m_buffer);
} }
#endif
wxAny(const wchar_t* value) wxAny(const wchar_t* value)
{ {
m_type = wxAnyValueTypeImpl<const wchar_t*>::sm_instance.get(); m_type = wxAnyValueTypeImpl<const wchar_t*>::sm_instance.get();
@@ -865,11 +869,13 @@ public:
#endif #endif
// These two operators are needed to deal with string literals // These two operators are needed to deal with string literals
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
wxAny& operator=(const char* value) wxAny& operator=(const char* value)
{ {
Assign(value); Assign(value);
return *this; return *this;
} }
#endif
wxAny& operator=(const wchar_t* value) wxAny& operator=(const wchar_t* value)
{ {
Assign(value); Assign(value);
@@ -888,8 +894,10 @@ public:
return value == value2; return value == value2;
} }
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
bool operator==(const char* value) const bool operator==(const char* value) const
{ return (*this) == wxString(value); } { return (*this) == wxString(value); }
#endif // wxNO_IMPLICIT_WXSTRING_ENCODING
bool operator==(const wchar_t* value) const bool operator==(const wchar_t* value) const
{ return (*this) == wxString(value); } { return (*this) == wxString(value); }
@@ -1017,6 +1025,13 @@ public:
#endif #endif
private: private:
#ifdef wxNO_IMPLICIT_WXSTRING_ENCODING
wxAny(const char*); // Disabled
wxAny& operator=(const char *&value); // Disabled
wxAny& operator=(const char value[]); // Disabled
wxAny& operator==(const char *value); // Disabled
#endif
// Assignment functions // Assignment functions
void AssignAny(const wxAny& any) void AssignAny(const wxAny& any)
{ {

View File

@@ -65,6 +65,7 @@ public:
bool operator!() const { return !((bool)*this); } bool operator!() const { return !((bool)*this); }
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
// and these are the conversions operator which allow to assign the result // and these are the conversions operator which allow to assign the result
// of FuncReturningAnyStrPtr() to either char* or wxChar* (i.e. wchar_t*) // of FuncReturningAnyStrPtr() to either char* or wxChar* (i.e. wchar_t*)
operator const char *() const operator const char *() const
@@ -94,6 +95,7 @@ public:
return p; return p;
} }
#endif // wxNO_IMPLICIT_WXSTRING_ENCODING
operator const wchar_t *() const operator const wchar_t *() const
{ {

View File

@@ -27,10 +27,10 @@ class wxArtProviderModule;
typedef wxString wxArtClient; typedef wxString wxArtClient;
typedef wxString wxArtID; typedef wxString wxArtID;
#define wxART_MAKE_CLIENT_ID_FROM_STR(id) ((id) + "_C") #define wxART_MAKE_CLIENT_ID_FROM_STR(id) ((id) + wxASCII_STR("_C"))
#define wxART_MAKE_CLIENT_ID(id) (#id "_C") #define wxART_MAKE_CLIENT_ID(id) wxASCII_STR(#id "_C")
#define wxART_MAKE_ART_ID_FROM_STR(id) (id) #define wxART_MAKE_ART_ID_FROM_STR(id) (id)
#define wxART_MAKE_ART_ID(id) (#id) #define wxART_MAKE_ART_ID(id) wxASCII_STR(#id)
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Art clients // Art clients

View File

@@ -46,7 +46,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
const wxString& name = wxFrameNameStr); const wxString& name = wxASCII_STR(wxFrameNameStr));
~wxAuiMDIParentFrame(); ~wxAuiMDIParentFrame();
@@ -56,7 +56,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
const wxString& name = wxFrameNameStr ); const wxString& name = wxASCII_STR(wxFrameNameStr) );
void SetArtProvider(wxAuiTabArt* provider); void SetArtProvider(wxAuiTabArt* provider);
wxAuiTabArt* GetArtProvider(); wxAuiTabArt* GetArtProvider();
@@ -131,7 +131,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr); const wxString& name = wxASCII_STR(wxFrameNameStr));
virtual ~wxAuiMDIChildFrame(); virtual ~wxAuiMDIChildFrame();
bool Create(wxAuiMDIParentFrame *parent, bool Create(wxAuiMDIParentFrame *parent,
@@ -140,7 +140,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr); const wxString& name = wxASCII_STR(wxFrameNameStr));
#if wxUSE_MENUS #if wxUSE_MENUS
virtual void SetMenuBar(wxMenuBar *menuBar) wxOVERRIDE; virtual void SetMenuBar(wxMenuBar *menuBar) wxOVERRIDE;

View File

@@ -54,7 +54,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxBannerWindowNameStr) const wxString& name = wxASCII_STR(wxBannerWindowNameStr))
{ {
Init(); Init();
@@ -68,7 +68,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxBannerWindowNameStr); const wxString& name = wxASCII_STR(wxBannerWindowNameStr));
// Provide an existing bitmap to show. For wxLEFT orientation the bitmap is // Provide an existing bitmap to show. For wxLEFT orientation the bitmap is

View File

@@ -42,7 +42,7 @@ inline wxString wxBase64Encode(const void *src, size_t srcLen)
wxCharBuffer dst(dstLen); wxCharBuffer dst(dstLen);
wxBase64Encode(dst.data(), dstLen, src, srcLen); wxBase64Encode(dst.data(), dstLen, src, srcLen);
return dst; return wxASCII_STR(dst);
} }
inline wxString wxBase64Encode(const wxMemoryBuffer& buf) inline wxString wxBase64Encode(const wxMemoryBuffer& buf)

View File

@@ -90,7 +90,7 @@ namespace Catch
{ {
#if wxUSE_UNICODE #if wxUSE_UNICODE
if ( !iswprint(*i) ) if ( !iswprint(*i) )
s += wxString::Format("\\u%04X", *i).ToStdString(); s += wxString::Format(wxASCII_STR("\\u%04X"), *i).ToAscii();
else else
#endif // wxUSE_UNICODE #endif // wxUSE_UNICODE
s += *i; s += *i;
@@ -278,10 +278,10 @@ inline std::string wxGetCurrentTestName()
// Use this macro to assert with the given formatted message (it should contain // Use this macro to assert with the given formatted message (it should contain
// the format string and arguments in a separate pair of parentheses) // the format string and arguments in a separate pair of parentheses)
#define WX_ASSERT_MESSAGE(msg, cond) \ #define WX_ASSERT_MESSAGE(msg, cond) \
CPPUNIT_ASSERT_MESSAGE(std::string(wxString::Format msg .mb_str()), (cond)) CPPUNIT_ASSERT_MESSAGE(std::string(wxString::Format msg .mb_str(wxConvLibc)), (cond))
#define WX_ASSERT_EQUAL_MESSAGE(msg, expected, actual) \ #define WX_ASSERT_EQUAL_MESSAGE(msg, expected, actual) \
CPPUNIT_ASSERT_EQUAL_MESSAGE(std::string(wxString::Format msg .mb_str()), \ CPPUNIT_ASSERT_EQUAL_MESSAGE(std::string(wxString::Format msg .mb_str(wxConvLibc)), \
(expected), (actual)) (expected), (actual))
#endif // _WX_CATCH_CPPUNIT_H_ #endif // _WX_CATCH_CPPUNIT_H_

View File

@@ -108,7 +108,7 @@ public:
const wxColour& col = *wxBLACK, const wxPoint& pos = wxDefaultPosition, const wxColour& col = *wxBLACK, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = wxCLRP_DEFAULT_STYLE, const wxSize& size = wxDefaultSize, long style = wxCLRP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxColourPickerCtrlNameStr) const wxString& name = wxASCII_STR(wxColourPickerCtrlNameStr))
{ Create(parent, id, col, pos, size, style, validator, name); } { Create(parent, id, col, pos, size, style, validator, name); }
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
@@ -117,7 +117,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCLRP_DEFAULT_STYLE, long style = wxCLRP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxColourPickerCtrlNameStr); const wxString& name = wxASCII_STR(wxColourPickerCtrlNameStr));
public: // public API public: // public API

View File

@@ -35,7 +35,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxBORDER_NONE, long style = wxBORDER_NONE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxCollapsibleHeaderCtrlNameStr) const wxString& name = wxASCII_STR(wxCollapsibleHeaderCtrlNameStr))
{ {
Create(parent, id, label, pos, size, style, validator, name); Create(parent, id, label, pos, size, style, validator, name);
} }
@@ -47,7 +47,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxBORDER_NONE, long style = wxBORDER_NONE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxCollapsibleHeaderCtrlNameStr) const wxString& name = wxASCII_STR(wxCollapsibleHeaderCtrlNameStr))
{ {
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) ) if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
return false; return false;
@@ -91,7 +91,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxBORDER_NONE, long style = wxBORDER_NONE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxCollapsibleHeaderCtrlNameStr) const wxString& name = wxASCII_STR(wxCollapsibleHeaderCtrlNameStr))
{ {
Create(parent, id, label, pos, size, style, validator, name); Create(parent, id, label, pos, size, style, validator, name);
} }

View File

@@ -20,6 +20,12 @@ class WXDLLIMPEXP_FWD_CORE wxColour;
// //
// It avoids the need to repeat these lines across all colour.h files, since // It avoids the need to repeat these lines across all colour.h files, since
// Set() is a virtual function and thus cannot be called by wxColourBase ctors // Set() is a virtual function and thus cannot be called by wxColourBase ctors
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
#define wxWXCOLOUR_CTOR_FROM_CHAR \
wxColour(const char *colourName) { Init(); Set(colourName); }
#else // wxNO_IMPLICIT_WXSTRING_ENCODING
#define wxWXCOLOUR_CTOR_FROM_CHAR
#endif
#define DEFINE_STD_WXCOLOUR_CONSTRUCTORS \ #define DEFINE_STD_WXCOLOUR_CONSTRUCTORS \
wxColour() { Init(); } \ wxColour() { Init(); } \
wxColour(ChannelType red, \ wxColour(ChannelType red, \
@@ -29,7 +35,7 @@ class WXDLLIMPEXP_FWD_CORE wxColour;
{ Init(); Set(red, green, blue, alpha); } \ { Init(); Set(red, green, blue, alpha); } \
wxColour(unsigned long colRGB) { Init(); Set(colRGB ); } \ wxColour(unsigned long colRGB) { Init(); Set(colRGB ); } \
wxColour(const wxString& colourName) { Init(); Set(colourName); } \ wxColour(const wxString& colourName) { Init(); Set(colourName); } \
wxColour(const char *colourName) { Init(); Set(colourName); } \ wxWXCOLOUR_CTOR_FROM_CHAR \
wxColour(const wchar_t *colourName) { Init(); Set(colourName); } wxColour(const wchar_t *colourName) { Init(); Set(colourName); }

View File

@@ -40,7 +40,7 @@ public:
long style = 0, long style = 0,
const wxValidator& validator = const wxValidator& validator =
wxDefaultValidator, wxDefaultValidator,
const wxString& name = wxButtonNameStr) const wxString& name = wxASCII_STR(wxButtonNameStr))
: wxButton(parent, : wxButton(parent,
id, id,
mainLabel + '\n' + note, mainLabel + '\n' + note,
@@ -103,7 +103,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr) const wxString& name = wxASCII_STR(wxButtonNameStr))
: wxCommandLinkButtonBase() : wxCommandLinkButtonBase()
{ {
Create(parent, id, mainLabel, note, pos, size, style, validator, name); Create(parent, id, mainLabel, note, pos, size, style, validator, name);
@@ -117,7 +117,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr); const wxString& name = wxASCII_STR(wxButtonNameStr));
virtual void SetMainLabelAndNote(const wxString& mainLabel, virtual void SetMainLabelAndNote(const wxString& mainLabel,
const wxString& note) wxOVERRIDE const wxString& note) wxOVERRIDE
@@ -147,7 +147,7 @@ private:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr) const wxString& name = wxASCII_STR(wxButtonNameStr))
: wxGenericCommandLinkButton(parent, : wxGenericCommandLinkButton(parent,
id, id,
mainLabel, mainLabel,

View File

@@ -225,8 +225,10 @@ public:
// we have to provide a separate version for C strings as otherwise the // we have to provide a separate version for C strings as otherwise the
// template Read() would be used // template Read() would be used
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
wxString Read(const wxString& key, const char* defVal) const wxString Read(const wxString& key, const char* defVal) const
{ return Read(key, wxString(defVal)); } { return Read(key, wxString(defVal)); }
#endif
wxString Read(const wxString& key, const wchar_t* defVal) const wxString Read(const wxString& key, const wchar_t* defVal) const
{ return Read(key, wxString(defVal)); } { return Read(key, wxString(defVal)); }
@@ -268,10 +270,12 @@ public:
// we have to provide a separate version for C strings as otherwise they // we have to provide a separate version for C strings as otherwise they
// would be converted to bool and not to wxString as expected! // would be converted to bool and not to wxString as expected!
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
bool Write(const wxString& key, const char *value) bool Write(const wxString& key, const char *value)
{ return Write(key, wxString(value)); } { return Write(key, wxString(value)); }
bool Write(const wxString& key, const unsigned char *value) bool Write(const wxString& key, const unsigned char *value)
{ return Write(key, wxString(value)); } { return Write(key, wxString(value)); }
#endif
bool Write(const wxString& key, const wchar_t *value) bool Write(const wxString& key, const wchar_t *value)
{ return Write(key, wxString(value)); } { return Write(key, wxString(value)); }

View File

@@ -42,7 +42,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxControlNameStr); const wxString& name = wxASCII_STR(wxControlNameStr));
// get the control alignment (left/right/centre, top/bottom/centre) // get the control alignment (left/right/centre, top/bottom/centre)
int GetAlignment() const { return m_windowStyle & wxALIGN_MASK; } int GetAlignment() const { return m_windowStyle & wxALIGN_MASK; }

View File

@@ -955,7 +955,7 @@ public:
bool ParseFormat(const wxString& date, bool ParseFormat(const wxString& date,
wxString::const_iterator *end) wxString::const_iterator *end)
{ {
return ParseFormat(date, wxDefaultDateTimeFormat, wxDefaultDateTime, end); return ParseFormat(date, wxASCII_STR(wxDefaultDateTimeFormat), wxDefaultDateTime, end);
} }
// parse a string containing date, time or both in ISO 8601 format // parse a string containing date, time or both in ISO 8601 format
@@ -1000,7 +1000,7 @@ public:
// argument corresponds to the preferred date and time representation // argument corresponds to the preferred date and time representation
// for the current locale) and returns the string containing the // for the current locale) and returns the string containing the
// resulting text representation // resulting text representation
wxString Format(const wxString& format = wxDefaultDateTimeFormat, wxString Format(const wxString& format = wxASCII_STR(wxDefaultDateTimeFormat),
const TimeZone& tz = Local) const; const TimeZone& tz = Local) const;
// preferred date representation for the current locale // preferred date representation for the current locale
wxString FormatDate() const { return Format(wxS("%x")); } wxString FormatDate() const { return Format(wxS("%x")); }
@@ -1035,7 +1035,7 @@ public:
} }
wxAnyStrPtr ParseFormat(const wxString& date, wxAnyStrPtr ParseFormat(const wxString& date,
const wxString& format = wxDefaultDateTimeFormat, const wxString& format = wxASCII_STR(wxDefaultDateTimeFormat),
const wxDateTime& dateDef = wxDefaultDateTime) const wxDateTime& dateDef = wxDefaultDateTime)
{ {
wxString::const_iterator end; wxString::const_iterator end;
@@ -1084,14 +1084,14 @@ public:
const wchar_t* ParseRfc822Date(const wchar_t* date); const wchar_t* ParseRfc822Date(const wchar_t* date);
void ParseFormat(const wxCStrData& date, void ParseFormat(const wxCStrData& date,
const wxString& format = wxDefaultDateTimeFormat, const wxString& format = wxASCII_STR(wxDefaultDateTimeFormat),
const wxDateTime& dateDef = wxDefaultDateTime) const wxDateTime& dateDef = wxDefaultDateTime)
{ ParseFormat(wxString(date), format, dateDef); } { ParseFormat(wxString(date), format, dateDef); }
const char* ParseFormat(const char* date, const char* ParseFormat(const char* date,
const wxString& format = wxDefaultDateTimeFormat, const wxString& format = wxASCII_STR(wxDefaultDateTimeFormat),
const wxDateTime& dateDef = wxDefaultDateTime); const wxDateTime& dateDef = wxDefaultDateTime);
const wchar_t* ParseFormat(const wchar_t* date, const wchar_t* ParseFormat(const wchar_t* date,
const wxString& format = wxDefaultDateTimeFormat, const wxString& format = wxASCII_STR(wxDefaultDateTimeFormat),
const wxDateTime& dateDef = wxDefaultDateTime); const wxDateTime& dateDef = wxDefaultDateTime);
void ParseDateTime(const wxCStrData& datetime) void ParseDateTime(const wxCStrData& datetime)
@@ -1337,7 +1337,7 @@ public:
// resulting text representation. Notice that only some of format // resulting text representation. Notice that only some of format
// specifiers valid for wxDateTime are valid for wxTimeSpan: hours, // specifiers valid for wxDateTime are valid for wxTimeSpan: hours,
// minutes and seconds make sense, but not "PM/AM" string for example. // minutes and seconds make sense, but not "PM/AM" string for example.
wxString Format(const wxString& format = wxDefaultTimeSpanFormat) const; wxString Format(const wxString& format = wxASCII_STR(wxDefaultTimeSpanFormat)) const;
// implementation // implementation
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------

View File

@@ -38,7 +38,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxPanelNameStr) const wxString& name = wxASCII_STR(wxPanelNameStr))
{ {
Init(); Init();
@@ -50,7 +50,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxPanelNameStr); const wxString& name = wxASCII_STR(wxPanelNameStr));
virtual ~wxNonOwnedWindow(); virtual ~wxNonOwnedWindow();

View File

@@ -25,7 +25,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
{ {
Init(); Init();
@@ -38,7 +38,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr); const wxString& name = wxASCII_STR(wxFrameNameStr));
// implement base class pure virtuals // implement base class pure virtuals
virtual void Maximize(bool maximize = true); virtual void Maximize(bool maximize = true);

View File

@@ -39,7 +39,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxPanelNameStr) const wxString& name = wxASCII_STR(wxPanelNameStr))
{ {
Init(); Init();
Create(parent, id, pos, size, style, name); Create(parent, id, pos, size, style, name);
@@ -52,7 +52,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxPanelNameStr); const wxString& name = wxASCII_STR(wxPanelNameStr));
// implement base class (pure) virtual methods // implement base class (pure) virtual methods
// ------------------------------------------- // -------------------------------------------

View File

@@ -56,12 +56,12 @@ class WXDLLIMPEXP_CORE wxDirDialogBase : public wxDialog
public: public:
wxDirDialogBase() {} wxDirDialogBase() {}
wxDirDialogBase(wxWindow *parent, wxDirDialogBase(wxWindow *parent,
const wxString& title = wxDirSelectorPromptStr, const wxString& title = wxASCII_STR(wxDirSelectorPromptStr),
const wxString& defaultPath = wxEmptyString, const wxString& defaultPath = wxEmptyString,
long style = wxDD_DEFAULT_STYLE, long style = wxDD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize, const wxSize& sz = wxDefaultSize,
const wxString& name = wxDirDialogNameStr) const wxString& name = wxASCII_STR(wxDirDialogNameStr))
{ {
Create(parent, title, defaultPath, style, pos, sz, name); Create(parent, title, defaultPath, style, pos, sz, name);
} }
@@ -70,12 +70,12 @@ public:
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
const wxString& title = wxDirSelectorPromptStr, const wxString& title = wxASCII_STR(wxDirSelectorPromptStr),
const wxString& defaultPath = wxEmptyString, const wxString& defaultPath = wxEmptyString,
long style = wxDD_DEFAULT_STYLE, long style = wxDD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize, const wxSize& sz = wxDefaultSize,
const wxString& name = wxDirDialogNameStr) const wxString& name = wxASCII_STR(wxDirDialogNameStr))
{ {
if (!wxDialog::Create(parent, wxID_ANY, title, pos, sz, style, name)) if (!wxDialog::Create(parent, wxID_ANY, title, pos, sz, style, name))
return false; return false;
@@ -136,7 +136,7 @@ protected:
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
WXDLLIMPEXP_CORE wxString WXDLLIMPEXP_CORE wxString
wxDirSelector(const wxString& message = wxDirSelectorPromptStr, wxDirSelector(const wxString& message = wxASCII_STR(wxDirSelectorPromptStr),
const wxString& defaultPath = wxEmptyString, const wxString& defaultPath = wxEmptyString,
long style = wxDD_DEFAULT_STYLE, long style = wxDD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,

View File

@@ -41,7 +41,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
: wxDocMDIParentFrameBase(manager, : wxDocMDIParentFrameBase(manager,
parent, id, title, pos, size, style, name) parent, id, title, pos, size, style, name)
{ {
@@ -72,7 +72,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
: wxDocMDIChildFrameBase(doc, view, : wxDocMDIChildFrameBase(doc, view,
parent, id, title, pos, size, style, name) parent, id, title, pos, size, style, name)
{ {

View File

@@ -691,7 +691,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
{ {
Create(doc, view, parent, id, title, pos, size, style, name); Create(doc, view, parent, id, title, pos, size, style, name);
} }
@@ -704,7 +704,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
{ {
if ( !wxDocChildFrameAnyBase::Create(doc, view, this) ) if ( !wxDocChildFrameAnyBase::Create(doc, view, this) )
return false; return false;
@@ -767,7 +767,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
: wxDocChildFrameBase(doc, view, : wxDocChildFrameBase(doc, view,
parent, id, title, pos, size, style, name) parent, id, title, pos, size, style, name)
{ {
@@ -781,7 +781,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
{ {
return wxDocChildFrameBase::Create return wxDocChildFrameBase::Create
( (
@@ -845,7 +845,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
: wxDocParentFrameAnyBase(this) : wxDocParentFrameAnyBase(this)
{ {
Create(manager, frame, id, title, pos, size, style, name); Create(manager, frame, id, title, pos, size, style, name);
@@ -858,7 +858,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
{ {
m_docManager = manager; m_docManager = manager;
@@ -920,7 +920,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
: wxDocParentFrameBase(manager, : wxDocParentFrameBase(manager,
parent, id, title, pos, size, style, name) parent, id, title, pos, size, style, name)
{ {
@@ -933,7 +933,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
{ {
return wxDocParentFrameBase::Create(manager, return wxDocParentFrameBase::Create(manager,
parent, id, title, parent, id, title,

View File

@@ -300,7 +300,7 @@ class WXDLLIMPEXP_CORE wxDataViewCustomRendererBase
public: public:
// Constructor must specify the usual renderer parameters which we simply // Constructor must specify the usual renderer parameters which we simply
// pass to the base class // pass to the base class
wxDataViewCustomRendererBase(const wxString& varianttype = "string", wxDataViewCustomRendererBase(const wxString& varianttype = wxASCII_STR("string"),
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT, wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
int align = wxDVR_DEFAULT_ALIGNMENT) int align = wxDVR_DEFAULT_ALIGNMENT)
: wxDataViewCustomRendererRealBase(varianttype, mode, align) : wxDataViewCustomRendererRealBase(varianttype, mode, align)

View File

@@ -41,7 +41,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxEL_DEFAULT_STYLE, long style = wxEL_DEFAULT_STYLE,
const wxString& name = wxEditableListBoxNameStr) const wxString& name = wxASCII_STR(wxEditableListBoxNameStr))
{ {
Init(); Init();
Create(parent, id, label, pos, size, style, name); Create(parent, id, label, pos, size, style, name);
@@ -52,7 +52,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxEL_DEFAULT_STYLE, long style = wxEL_DEFAULT_STYLE,
const wxString& name = wxEditableListBoxNameStr); const wxString& name = wxASCII_STR(wxEditableListBoxNameStr));
void SetStrings(const wxArrayString& strings); void SetStrings(const wxArrayString& strings);
void GetStrings(wxArrayString& strings) const; void GetStrings(wxArrayString& strings) const;

View File

@@ -68,14 +68,14 @@ public:
wxFileDialogBase () { Init(); } wxFileDialogBase () { Init(); }
wxFileDialogBase(wxWindow *parent, wxFileDialogBase(wxWindow *parent,
const wxString& message = wxFileSelectorPromptStr, const wxString& message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString& defaultDir = wxEmptyString, const wxString& defaultDir = wxEmptyString,
const wxString& defaultFile = wxEmptyString, const wxString& defaultFile = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr, const wxString& wildCard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
long style = wxFD_DEFAULT_STYLE, long style = wxFD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize, const wxSize& sz = wxDefaultSize,
const wxString& name = wxFileDialogNameStr) const wxString& name = wxASCII_STR(wxFileDialogNameStr))
{ {
Init(); Init();
Create(parent, message, defaultDir, defaultFile, wildCard, style, pos, sz, name); Create(parent, message, defaultDir, defaultFile, wildCard, style, pos, sz, name);
@@ -85,14 +85,14 @@ public:
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
const wxString& message = wxFileSelectorPromptStr, const wxString& message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString& defaultDir = wxEmptyString, const wxString& defaultDir = wxEmptyString,
const wxString& defaultFile = wxEmptyString, const wxString& defaultFile = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr, const wxString& wildCard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
long style = wxFD_DEFAULT_STYLE, long style = wxFD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize, const wxSize& sz = wxDefaultSize,
const wxString& name = wxFileDialogNameStr); const wxString& name = wxASCII_STR(wxFileDialogNameStr));
bool HasFdFlag(int flag) const { return HasFlag(flag); } bool HasFdFlag(int flag) const { return HasFlag(flag); }
@@ -197,22 +197,22 @@ private:
// File selector - backward compatibility // File selector - backward compatibility
WXDLLIMPEXP_CORE wxString WXDLLIMPEXP_CORE wxString
wxFileSelector(const wxString& message = wxFileSelectorPromptStr, wxFileSelector(const wxString& message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString& default_path = wxEmptyString, const wxString& default_path = wxEmptyString,
const wxString& default_filename = wxEmptyString, const wxString& default_filename = wxEmptyString,
const wxString& default_extension = wxEmptyString, const wxString& default_extension = wxEmptyString,
const wxString& wildcard = wxFileSelectorDefaultWildcardStr, const wxString& wildcard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
int flags = 0, int flags = 0,
wxWindow *parent = NULL, wxWindow *parent = NULL,
int x = wxDefaultCoord, int y = wxDefaultCoord); int x = wxDefaultCoord, int y = wxDefaultCoord);
// An extended version of wxFileSelector // An extended version of wxFileSelector
WXDLLIMPEXP_CORE wxString WXDLLIMPEXP_CORE wxString
wxFileSelectorEx(const wxString& message = wxFileSelectorPromptStr, wxFileSelectorEx(const wxString& message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString& default_path = wxEmptyString, const wxString& default_path = wxEmptyString,
const wxString& default_filename = wxEmptyString, const wxString& default_filename = wxEmptyString,
int *indexDefaultExtension = NULL, int *indexDefaultExtension = NULL,
const wxString& wildcard = wxFileSelectorDefaultWildcardStr, const wxString& wildcard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
int flags = 0, int flags = 0,
wxWindow *parent = NULL, wxWindow *parent = NULL,
int x = wxDefaultCoord, int y = wxDefaultCoord); int x = wxDefaultCoord, int y = wxDefaultCoord);

View File

@@ -406,7 +406,7 @@ public:
// fn.ReplaceEnvVariable("OPENWINHOME"); // fn.ReplaceEnvVariable("OPENWINHOME");
// // now fn.GetFullPath() == "$OPENWINHOME/lib/someFile" // // now fn.GetFullPath() == "$OPENWINHOME/lib/someFile"
bool ReplaceEnvVariable(const wxString& envname, bool ReplaceEnvVariable(const wxString& envname,
const wxString& replacementFmtString = "$%s", const wxString& replacementFmtString = wxS("$%s"),
wxPathFormat format = wxPATH_NATIVE); wxPathFormat format = wxPATH_NATIVE);
// replaces, if present in the path, the home directory for the given user // replaces, if present in the path, the home directory for the given user
@@ -575,12 +575,12 @@ public:
// returns the size in a human readable form // returns the size in a human readable form
wxString wxString
GetHumanReadableSize(const wxString& nullsize = wxGetTranslation("Not available"), GetHumanReadableSize(const wxString& nullsize = wxGetTranslation(wxASCII_STR("Not available")),
int precision = 1, int precision = 1,
wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL) const; wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL) const;
static wxString static wxString
GetHumanReadableSize(const wxULongLong& sz, GetHumanReadableSize(const wxULongLong& sz,
const wxString& nullsize = wxGetTranslation("Not available"), const wxString& nullsize = wxGetTranslation(wxASCII_STR("Not available")),
int precision = 1, int precision = 1,
wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL); wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL);
#endif // wxUSE_LONGLONG #endif // wxUSE_LONGLONG

View File

@@ -235,13 +235,13 @@ public:
wxFilePickerCtrl(wxWindow *parent, wxFilePickerCtrl(wxWindow *parent,
wxWindowID id, wxWindowID id,
const wxString& path = wxEmptyString, const wxString& path = wxEmptyString,
const wxString& message = wxFileSelectorPromptStr, const wxString& message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString& wildcard = wxFileSelectorDefaultWildcardStr, const wxString& wildcard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxFLP_DEFAULT_STYLE, long style = wxFLP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFilePickerCtrlNameStr) const wxString& name = wxASCII_STR(wxFilePickerCtrlNameStr))
{ {
Create(parent, id, path, message, wildcard, pos, size, style, Create(parent, id, path, message, wildcard, pos, size, style,
validator, name); validator, name);
@@ -250,13 +250,13 @@ public:
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id,
const wxString& path = wxEmptyString, const wxString& path = wxEmptyString,
const wxString& message = wxFileSelectorPromptStr, const wxString& message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString& wildcard = wxFileSelectorDefaultWildcardStr, const wxString& wildcard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxFLP_DEFAULT_STYLE, long style = wxFLP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFilePickerCtrlNameStr); const wxString& name = wxASCII_STR(wxFilePickerCtrlNameStr));
void SetFileName(const wxFileName &filename) void SetFileName(const wxFileName &filename)
{ SetPath(filename.GetFullPath()); } { SetPath(filename.GetFullPath()); }
@@ -339,24 +339,24 @@ public:
wxDirPickerCtrl(wxWindow *parent, wxWindowID id, wxDirPickerCtrl(wxWindow *parent, wxWindowID id,
const wxString& path = wxEmptyString, const wxString& path = wxEmptyString,
const wxString& message = wxDirSelectorPromptStr, const wxString& message = wxASCII_STR(wxDirSelectorPromptStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDIRP_DEFAULT_STYLE, long style = wxDIRP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxDirPickerCtrlNameStr) const wxString& name = wxASCII_STR(wxDirPickerCtrlNameStr))
{ {
Create(parent, id, path, message, pos, size, style, validator, name); Create(parent, id, path, message, pos, size, style, validator, name);
} }
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
const wxString& path = wxEmptyString, const wxString& path = wxEmptyString,
const wxString& message = wxDirSelectorPromptStr, const wxString& message = wxASCII_STR(wxDirSelectorPromptStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDIRP_DEFAULT_STYLE, long style = wxDIRP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxDirPickerCtrlNameStr); const wxString& name = wxASCII_STR(wxDirPickerCtrlNameStr));
void SetDirName(const wxFileName &dirname) void SetDirName(const wxFileName &dirname)
{ SetPath(dirname.GetPath()); } { SetPath(dirname.GetPath()); }

View File

@@ -117,7 +117,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxFNTP_DEFAULT_STYLE, long style = wxFNTP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFontPickerCtrlNameStr) const wxString& name = wxASCII_STR(wxFontPickerCtrlNameStr))
: m_nMinPointSize(wxFNTP_MINPOINT_SIZE), m_nMaxPointSize(wxFNTP_MAXPOINT_SIZE) : m_nMinPointSize(wxFNTP_MINPOINT_SIZE), m_nMaxPointSize(wxFNTP_MAXPOINT_SIZE)
{ {
Create(parent, id, initial, pos, size, style, validator, name); Create(parent, id, initial, pos, size, style, validator, name);
@@ -130,7 +130,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxFNTP_DEFAULT_STYLE, long style = wxFNTP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFontPickerCtrlNameStr); const wxString& name = wxASCII_STR(wxFontPickerCtrlNameStr));
public: // public API public: // public API

View File

@@ -66,7 +66,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr); const wxString& name = wxASCII_STR(wxFrameNameStr));
// frame state // frame state
// ----------- // -----------
@@ -109,7 +109,7 @@ public:
virtual wxStatusBar* CreateStatusBar(int number = 1, virtual wxStatusBar* CreateStatusBar(int number = 1,
long style = wxSTB_DEFAULT_STYLE, long style = wxSTB_DEFAULT_STYLE,
wxWindowID winid = 0, wxWindowID winid = 0,
const wxString& name = wxStatusLineNameStr); const wxString& name = wxASCII_STR(wxStatusLineNameStr));
// return a new status bar // return a new status bar
virtual wxStatusBar *OnCreateStatusBar(int number, virtual wxStatusBar *OnCreateStatusBar(int number,
long style, long style,
@@ -139,7 +139,7 @@ public:
// create main toolbar bycalling OnCreateToolBar() // create main toolbar bycalling OnCreateToolBar()
virtual wxToolBar* CreateToolBar(long style = -1, virtual wxToolBar* CreateToolBar(long style = -1,
wxWindowID winid = wxID_ANY, wxWindowID winid = wxID_ANY,
const wxString& name = wxToolBarNameStr); const wxString& name = wxASCII_STR(wxToolBarNameStr));
// return a new toolbar // return a new toolbar
virtual wxToolBar *OnCreateToolBar(long style, virtual wxToolBar *OnCreateToolBar(long style,
wxWindowID winid, wxWindowID winid,

View File

@@ -373,7 +373,7 @@ protected:
wxFileName path_copy = wxFileName(path); wxFileName path_copy = wxFileName(path);
if ( !path_copy.Normalize() ) if ( !path_copy.Normalize() )
{ {
wxFAIL_MSG(wxString::Format("Unable to normalize path '%s'", wxFAIL_MSG(wxString::Format(wxASCII_STR("Unable to normalize path '%s'"),
path.GetFullPath())); path.GetFullPath()));
return wxEmptyString; return wxEmptyString;
} }

View File

@@ -66,7 +66,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxGA_HORIZONTAL, long style = wxGA_HORIZONTAL,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxGaugeNameStr); const wxString& name = wxASCII_STR(wxGaugeNameStr));
// determinate mode API // determinate mode API

View File

@@ -28,7 +28,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxAC_DEFAULT_STYLE, long style = wxAC_DEFAULT_STYLE,
const wxString& name = wxAnimationCtrlNameStr) const wxString& name = wxASCII_STR(wxAnimationCtrlNameStr))
{ {
Init(); Init();
@@ -42,7 +42,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxAC_DEFAULT_STYLE, long style = wxAC_DEFAULT_STYLE,
const wxString& name = wxAnimationCtrlNameStr); const wxString& name = wxASCII_STR(wxAnimationCtrlNameStr));
~wxGenericAnimationCtrl(); ~wxGenericAnimationCtrl();

View File

@@ -41,7 +41,7 @@ public:
const wxString choices[] = NULL, const wxString choices[] = NULL,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxBitmapComboBoxNameStr) const wxString& name = wxASCII_STR(wxBitmapComboBoxNameStr))
: wxOwnerDrawnComboBox(), : wxOwnerDrawnComboBox(),
wxBitmapComboBoxBase() wxBitmapComboBoxBase()
{ {
@@ -59,7 +59,7 @@ public:
const wxArrayString& choices, const wxArrayString& choices,
long style, long style,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxBitmapComboBoxNameStr); const wxString& name = wxASCII_STR(wxBitmapComboBoxNameStr));
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id,
@@ -70,7 +70,7 @@ public:
const wxString choices[], const wxString choices[],
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxBitmapComboBoxNameStr); const wxString& name = wxASCII_STR(wxBitmapComboBoxNameStr));
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id,
@@ -80,7 +80,7 @@ public:
const wxArrayString& choices, const wxArrayString& choices,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxBitmapComboBoxNameStr); const wxString& name = wxASCII_STR(wxBitmapComboBoxNameStr));
virtual ~wxBitmapComboBox(); virtual ~wxBitmapComboBox();

View File

@@ -31,7 +31,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxToolBarNameStr) const wxString& name = wxASCII_STR(wxToolBarNameStr))
{ {
Init(); Init();
@@ -43,7 +43,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxToolBarNameStr ); const wxString& name = wxASCII_STR(wxToolBarNameStr) );
virtual ~wxButtonToolBar(); virtual ~wxButtonToolBar();

View File

@@ -34,7 +34,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCAL_SHOW_HOLIDAYS, long style = wxCAL_SHOW_HOLIDAYS,
const wxString& name = wxCalendarNameStr); const wxString& name = wxASCII_STR(wxCalendarNameStr));
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id,
@@ -42,7 +42,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCAL_SHOW_HOLIDAYS, long style = wxCAL_SHOW_HOLIDAYS,
const wxString& name = wxCalendarNameStr); const wxString& name = wxASCII_STR(wxCalendarNameStr));
virtual ~wxGenericCalendarCtrl(); virtual ~wxGenericCalendarCtrl();

View File

@@ -33,7 +33,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCLRBTN_DEFAULT_STYLE, long style = wxCLRBTN_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxColourPickerWidgetNameStr) const wxString& name = wxASCII_STR(wxColourPickerWidgetNameStr))
{ {
Create(parent, id, col, pos, size, style, validator, name); Create(parent, id, col, pos, size, style, validator, name);
} }
@@ -59,7 +59,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCLRBTN_DEFAULT_STYLE, long style = wxCLRBTN_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxColourPickerWidgetNameStr); const wxString& name = wxASCII_STR(wxColourPickerWidgetNameStr));
void OnButtonClick(wxCommandEvent &); void OnButtonClick(wxCommandEvent &);

View File

@@ -23,7 +23,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxBORDER_NONE, long style = wxBORDER_NONE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxCollapsibleHeaderCtrlNameStr) const wxString& name = wxASCII_STR(wxCollapsibleHeaderCtrlNameStr))
{ {
Init(); Init();
@@ -37,7 +37,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxBORDER_NONE, long style = wxBORDER_NONE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxCollapsibleHeaderCtrlNameStr); const wxString& name = wxASCII_STR(wxCollapsibleHeaderCtrlNameStr));
virtual void SetCollapsed(bool collapsed = true) wxOVERRIDE; virtual void SetCollapsed(bool collapsed = true) wxOVERRIDE;

View File

@@ -33,7 +33,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCP_DEFAULT_STYLE, long style = wxCP_DEFAULT_STYLE,
const wxValidator& val = wxDefaultValidator, const wxValidator& val = wxDefaultValidator,
const wxString& name = wxCollapsiblePaneNameStr) const wxString& name = wxASCII_STR(wxCollapsiblePaneNameStr))
{ {
Init(); Init();
@@ -49,7 +49,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCP_DEFAULT_STYLE, long style = wxCP_DEFAULT_STYLE,
const wxValidator& val = wxDefaultValidator, const wxValidator& val = wxDefaultValidator,
const wxString& name = wxCollapsiblePaneNameStr); const wxString& name = wxASCII_STR(wxCollapsiblePaneNameStr));
// public wxCollapsiblePane API // public wxCollapsiblePane API
virtual void Collapse(bool collapse = true) wxOVERRIDE; virtual void Collapse(bool collapse = true) wxOVERRIDE;

View File

@@ -48,7 +48,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr) const wxString& name = wxASCII_STR(wxComboBoxNameStr))
{ {
Init(); Init();
@@ -62,7 +62,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr); const wxString& name = wxASCII_STR(wxComboBoxNameStr));
virtual ~wxGenericComboCtrl(); virtual ~wxGenericComboCtrl();
@@ -131,7 +131,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr) const wxString& name = wxASCII_STR(wxComboBoxNameStr))
: wxGenericComboCtrl() : wxGenericComboCtrl()
{ {
(void)Create(parent, id, value, pos, size, style, validator, name); (void)Create(parent, id, value, pos, size, style, validator, name);

View File

@@ -202,7 +202,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxDataViewCtrlNameStr ) const wxString& name = wxASCII_STR(wxDataViewCtrlNameStr) )
: wxScrollHelper(this) : wxScrollHelper(this)
{ {
Create(parent, id, pos, size, style, validator, name); Create(parent, id, pos, size, style, validator, name);
@@ -216,7 +216,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxDataViewCtrlNameStr); const wxString& name = wxASCII_STR(wxDataViewCtrlNameStr));
virtual bool AssociateModel( wxDataViewModel *model ) wxOVERRIDE; virtual bool AssociateModel( wxDataViewModel *model ) wxOVERRIDE;

View File

@@ -83,26 +83,26 @@ class WXDLLIMPEXP_CORE wxGenericDirCtrl: public wxControl
public: public:
wxGenericDirCtrl(); wxGenericDirCtrl();
wxGenericDirCtrl(wxWindow *parent, wxWindowID id = wxID_ANY, wxGenericDirCtrl(wxWindow *parent, wxWindowID id = wxID_ANY,
const wxString &dir = wxDirDialogDefaultFolderStr, const wxString &dir = wxASCII_STR(wxDirDialogDefaultFolderStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDIRCTRL_DEFAULT_STYLE, long style = wxDIRCTRL_DEFAULT_STYLE,
const wxString& filter = wxEmptyString, const wxString& filter = wxEmptyString,
int defaultFilter = 0, int defaultFilter = 0,
const wxString& name = wxTreeCtrlNameStr ) const wxString& name = wxASCII_STR(wxTreeCtrlNameStr) )
{ {
Init(); Init();
Create(parent, id, dir, pos, size, style, filter, defaultFilter, name); Create(parent, id, dir, pos, size, style, filter, defaultFilter, name);
} }
bool Create(wxWindow *parent, wxWindowID id = wxID_ANY, bool Create(wxWindow *parent, wxWindowID id = wxID_ANY,
const wxString &dir = wxDirDialogDefaultFolderStr, const wxString &dir = wxASCII_STR(wxDirDialogDefaultFolderStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDIRCTRL_DEFAULT_STYLE, long style = wxDIRCTRL_DEFAULT_STYLE,
const wxString& filter = wxEmptyString, const wxString& filter = wxEmptyString,
int defaultFilter = 0, int defaultFilter = 0,
const wxString& name = wxTreeCtrlNameStr ); const wxString& name = wxASCII_STR(wxTreeCtrlNameStr) );
virtual void Init(); virtual void Init();

View File

@@ -38,20 +38,20 @@ public:
wxGenericDirDialog() : wxDirDialogBase() { } wxGenericDirDialog() : wxDirDialogBase() { }
wxGenericDirDialog(wxWindow* parent, wxGenericDirDialog(wxWindow* parent,
const wxString& title = wxDirSelectorPromptStr, const wxString& title = wxASCII_STR(wxDirSelectorPromptStr),
const wxString& defaultPath = wxEmptyString, const wxString& defaultPath = wxEmptyString,
long style = wxDD_DEFAULT_STYLE, long style = wxDD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize,//Size(450, 550), const wxSize& sz = wxDefaultSize,//Size(450, 550),
const wxString& name = wxDirDialogNameStr); const wxString& name = wxASCII_STR(wxDirDialogNameStr));
bool Create(wxWindow* parent, bool Create(wxWindow* parent,
const wxString& title = wxDirSelectorPromptStr, const wxString& title = wxASCII_STR(wxDirSelectorPromptStr),
const wxString& defaultPath = wxEmptyString, const wxString& defaultPath = wxEmptyString,
long style = wxDD_DEFAULT_STYLE, long style = wxDD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize,//Size(450, 550), const wxSize& sz = wxDefaultSize,//Size(450, 550),
const wxString& name = wxDirDialogNameStr); const wxString& name = wxASCII_STR(wxDirDialogNameStr));
//// Accessors //// Accessors
void SetPath(const wxString& path) wxOVERRIDE; void SetPath(const wxString& path) wxOVERRIDE;

View File

@@ -195,11 +195,11 @@ public:
wxWindowID id, wxWindowID id,
const wxString& defaultDirectory = wxEmptyString, const wxString& defaultDirectory = wxEmptyString,
const wxString& defaultFilename = wxEmptyString, const wxString& defaultFilename = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr, const wxString& wildCard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
long style = wxFC_DEFAULT_STYLE, long style = wxFC_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
const wxString& name = wxFileCtrlNameStr ) const wxString& name = wxASCII_STR(wxFileCtrlNameStr) )
{ {
m_ignoreChanges = false; m_ignoreChanges = false;
Create(parent, id, defaultDirectory, defaultFilename, wildCard, Create(parent, id, defaultDirectory, defaultFilename, wildCard,
@@ -212,11 +212,11 @@ public:
wxWindowID id, wxWindowID id,
const wxString& defaultDirectory = wxEmptyString, const wxString& defaultDirectory = wxEmptyString,
const wxString& defaultFileName = wxEmptyString, const wxString& defaultFileName = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr, const wxString& wildCard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
long style = wxFC_DEFAULT_STYLE, long style = wxFC_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
const wxString& name = wxFileCtrlNameStr ); const wxString& name = wxASCII_STR(wxFileCtrlNameStr) );
virtual void SetWildcard( const wxString& wildCard ) wxOVERRIDE; virtual void SetWildcard( const wxString& wildCard ) wxOVERRIDE;
virtual void SetFilterIndex( int filterindex ) wxOVERRIDE; virtual void SetFilterIndex( int filterindex ) wxOVERRIDE;

View File

@@ -37,25 +37,25 @@ public:
wxGenericFileDialog() : wxFileDialogBase() { Init(); } wxGenericFileDialog() : wxFileDialogBase() { Init(); }
wxGenericFileDialog(wxWindow *parent, wxGenericFileDialog(wxWindow *parent,
const wxString& message = wxFileSelectorPromptStr, const wxString& message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString& defaultDir = wxEmptyString, const wxString& defaultDir = wxEmptyString,
const wxString& defaultFile = wxEmptyString, const wxString& defaultFile = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr, const wxString& wildCard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
long style = wxFD_DEFAULT_STYLE, long style = wxFD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize, const wxSize& sz = wxDefaultSize,
const wxString& name = wxFileDialogNameStr, const wxString& name = wxASCII_STR(wxFileDialogNameStr),
bool bypassGenericImpl = false ); bool bypassGenericImpl = false );
bool Create( wxWindow *parent, bool Create( wxWindow *parent,
const wxString& message = wxFileSelectorPromptStr, const wxString& message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString& defaultDir = wxEmptyString, const wxString& defaultDir = wxEmptyString,
const wxString& defaultFile = wxEmptyString, const wxString& defaultFile = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr, const wxString& wildCard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
long style = wxFD_DEFAULT_STYLE, long style = wxFD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize, const wxSize& sz = wxDefaultSize,
const wxString& name = wxFileDialogNameStr, const wxString& name = wxASCII_STR(wxFileDialogNameStr),
bool bypassGenericImpl = false ); bool bypassGenericImpl = false );
virtual ~wxGenericFileDialog(); virtual ~wxGenericFileDialog();
@@ -143,10 +143,10 @@ public:
wxFileDialog() {} wxFileDialog() {}
wxFileDialog(wxWindow *parent, wxFileDialog(wxWindow *parent,
const wxString& message = wxFileSelectorPromptStr, const wxString& message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString& defaultDir = wxEmptyString, const wxString& defaultDir = wxEmptyString,
const wxString& defaultFile = wxEmptyString, const wxString& defaultFile = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr, const wxString& wildCard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
long style = 0, long style = 0,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize) const wxSize& size = wxDefaultSize)

View File

@@ -31,15 +31,15 @@ public:
wxGenericFileDirButton() { Init(); } wxGenericFileDirButton() { Init(); }
wxGenericFileDirButton(wxWindow *parent, wxGenericFileDirButton(wxWindow *parent,
wxWindowID id, wxWindowID id,
const wxString& label = wxFilePickerWidgetLabel, const wxString& label = wxASCII_STR(wxFilePickerWidgetLabel),
const wxString& path = wxEmptyString, const wxString& path = wxEmptyString,
const wxString &message = wxFileSelectorPromptStr, const wxString &message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString &wildcard = wxFileSelectorDefaultWildcardStr, const wxString &wildcard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFilePickerWidgetNameStr) const wxString& name = wxASCII_STR(wxFilePickerWidgetNameStr))
{ {
Init(); Init();
Create(parent, id, label, path, message, wildcard, Create(parent, id, label, path, message, wildcard,
@@ -62,15 +62,15 @@ public: // overridable
public: public:
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
const wxString& label = wxFilePickerWidgetLabel, const wxString& label = wxASCII_STR(wxFilePickerWidgetLabel),
const wxString& path = wxEmptyString, const wxString& path = wxEmptyString,
const wxString &message = wxFileSelectorPromptStr, const wxString &message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString &wildcard = wxFileSelectorDefaultWildcardStr, const wxString &wildcard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFilePickerWidgetNameStr); const wxString& name = wxASCII_STR(wxFilePickerWidgetNameStr));
// event handler for the click // event handler for the click
void OnButtonClick(wxCommandEvent &); void OnButtonClick(wxCommandEvent &);
@@ -104,15 +104,15 @@ public:
wxGenericFileButton() {} wxGenericFileButton() {}
wxGenericFileButton(wxWindow *parent, wxGenericFileButton(wxWindow *parent,
wxWindowID id, wxWindowID id,
const wxString& label = wxFilePickerWidgetLabel, const wxString& label = wxASCII_STR(wxFilePickerWidgetLabel),
const wxString& path = wxEmptyString, const wxString& path = wxEmptyString,
const wxString &message = wxFileSelectorPromptStr, const wxString &message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString &wildcard = wxFileSelectorDefaultWildcardStr, const wxString &wildcard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxFILEBTN_DEFAULT_STYLE, long style = wxFILEBTN_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFilePickerWidgetNameStr) const wxString& name = wxASCII_STR(wxFilePickerWidgetNameStr))
{ {
Create(parent, id, label, path, message, wildcard, Create(parent, id, label, path, message, wildcard,
pos, size, style, validator, name); pos, size, style, validator, name);
@@ -172,14 +172,14 @@ public:
wxGenericDirButton() {} wxGenericDirButton() {}
wxGenericDirButton(wxWindow *parent, wxGenericDirButton(wxWindow *parent,
wxWindowID id, wxWindowID id,
const wxString& label = wxDirPickerWidgetLabel, const wxString& label = wxASCII_STR(wxDirPickerWidgetLabel),
const wxString& path = wxEmptyString, const wxString& path = wxEmptyString,
const wxString &message = wxDirSelectorPromptStr, const wxString &message = wxASCII_STR(wxDirSelectorPromptStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDIRBTN_DEFAULT_STYLE, long style = wxDIRBTN_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxDirPickerWidgetNameStr) const wxString& name = wxASCII_STR(wxDirPickerWidgetNameStr))
{ {
Create(parent, id, label, path, message, wxEmptyString, Create(parent, id, label, path, message, wxEmptyString,
pos, size, style, validator, name); pos, size, style, validator, name);

View File

@@ -30,7 +30,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxFONTBTN_DEFAULT_STYLE, long style = wxFONTBTN_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFontPickerWidgetNameStr) const wxString& name = wxASCII_STR(wxFontPickerWidgetNameStr))
{ {
Create(parent, id, initial, pos, size, style, validator, name); Create(parent, id, initial, pos, size, style, validator, name);
} }
@@ -62,7 +62,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxFONTBTN_DEFAULT_STYLE, long style = wxFONTBTN_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFontPickerWidgetNameStr); const wxString& name = wxASCII_STR(wxFontPickerWidgetNameStr));
void OnButtonClick(wxCommandEvent &); void OnButtonClick(wxCommandEvent &);

View File

@@ -1480,7 +1480,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxWANTS_CHARS, long style = wxWANTS_CHARS,
const wxString& name = wxGridNameStr) const wxString& name = wxASCII_STR(wxGridNameStr))
{ {
Init(); Init();
@@ -1492,7 +1492,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxWANTS_CHARS, long style = wxWANTS_CHARS,
const wxString& name = wxGridNameStr); const wxString& name = wxASCII_STR(wxGridNameStr));
virtual ~wxGrid(); virtual ~wxGrid();
@@ -2354,7 +2354,7 @@ public:
wxGrid( wxWindow *parent, wxGrid( wxWindow *parent,
int x, int y, int w = wxDefaultCoord, int h = wxDefaultCoord, int x, int y, int w = wxDefaultCoord, int h = wxDefaultCoord,
long style = wxWANTS_CHARS, long style = wxWANTS_CHARS,
const wxString& name = wxPanelNameStr ) const wxString& name = wxASCII_STR(wxPanelNameStr) )
{ {
Init(); Init();
Create(parent, wxID_ANY, wxPoint(x, y), wxSize(w, h), style, name); Create(parent, wxID_ANY, wxPoint(x, y), wxSize(w, h), style, name);

View File

@@ -217,8 +217,8 @@ protected:
class WXDLLIMPEXP_ADV wxGridCellDateTimeRenderer : public wxGridCellDateRenderer class WXDLLIMPEXP_ADV wxGridCellDateTimeRenderer : public wxGridCellDateRenderer
{ {
public: public:
wxGridCellDateTimeRenderer(const wxString& outformat = wxDefaultDateTimeFormat, wxGridCellDateTimeRenderer(const wxString& outformat = wxASCII_STR(wxDefaultDateTimeFormat),
const wxString& informat = wxDefaultDateTimeFormat); const wxString& informat = wxASCII_STR(wxDefaultDateTimeFormat));
wxGridCellDateTimeRenderer(const wxGridCellDateTimeRenderer& other) wxGridCellDateTimeRenderer(const wxGridCellDateTimeRenderer& other)
: wxGridCellDateRenderer(other), : wxGridCellDateRenderer(other),

View File

@@ -31,7 +31,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxHD_DEFAULT_STYLE, long style = wxHD_DEFAULT_STYLE,
const wxString& name = wxHeaderCtrlNameStr) const wxString& name = wxASCII_STR(wxHeaderCtrlNameStr))
{ {
Init(); Init();
@@ -43,7 +43,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxHD_DEFAULT_STYLE, long style = wxHD_DEFAULT_STYLE,
const wxString& name = wxHeaderCtrlNameStr); const wxString& name = wxASCII_STR(wxHeaderCtrlNameStr));
virtual ~wxHeaderCtrl(); virtual ~wxHeaderCtrl();

View File

@@ -28,7 +28,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxHL_DEFAULT_STYLE, long style = wxHL_DEFAULT_STYLE,
const wxString& name = wxHyperlinkCtrlNameStr) const wxString& name = wxASCII_STR(wxHyperlinkCtrlNameStr))
{ {
Init(); Init();
(void) Create(parent, id, label, url, pos, size, style, name); (void) Create(parent, id, label, url, pos, size, style, name);
@@ -41,7 +41,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxHL_DEFAULT_STYLE, long style = wxHL_DEFAULT_STYLE,
const wxString& name = wxHyperlinkCtrlNameStr); const wxString& name = wxASCII_STR(wxHyperlinkCtrlNameStr));
// get/set // get/set

View File

@@ -46,7 +46,7 @@ public:
const wxSize &size = wxDefaultSize, const wxSize &size = wxDefaultSize,
long style = wxLC_ICON, long style = wxLC_ICON,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString &name = wxListCtrlNameStr) const wxString &name = wxASCII_STR(wxListCtrlNameStr))
: wxScrollHelper(this) : wxScrollHelper(this)
{ {
Create(parent, winid, pos, size, style, validator, name); Create(parent, winid, pos, size, style, validator, name);
@@ -62,7 +62,7 @@ public:
const wxSize &size = wxDefaultSize, const wxSize &size = wxDefaultSize,
long style = wxLC_ICON, long style = wxLC_ICON,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString &name = wxListCtrlNameStr); const wxString &name = wxASCII_STR(wxListCtrlNameStr));
bool GetColumn( int col, wxListItem& item ) const wxOVERRIDE; bool GetColumn( int col, wxListItem& item ) const wxOVERRIDE;
bool SetColumn( int col, const wxListItem& item ) wxOVERRIDE; bool SetColumn( int col, const wxListItem& item ) wxOVERRIDE;
@@ -258,7 +258,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxLC_ICON, long style = wxLC_ICON,
const wxValidator &validator = wxDefaultValidator, const wxValidator &validator = wxDefaultValidator,
const wxString &name = wxListCtrlNameStr) const wxString &name = wxASCII_STR(wxListCtrlNameStr))
: wxGenericListCtrl(parent, winid, pos, size, style, validator, name) : wxGenericListCtrl(parent, winid, pos, size, style, validator, name)
{ {
} }

View File

@@ -48,7 +48,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
{ {
Init(); Init();
@@ -61,7 +61,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
const wxString& name = wxFrameNameStr); const wxString& name = wxASCII_STR(wxFrameNameStr));
virtual ~wxGenericMDIParentFrame(); virtual ~wxGenericMDIParentFrame();
@@ -142,7 +142,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
{ {
Init(); Init();
@@ -155,7 +155,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr); const wxString& name = wxASCII_STR(wxFrameNameStr));
virtual ~wxGenericMDIChildFrame(); virtual ~wxGenericMDIChildFrame();

View File

@@ -18,7 +18,7 @@ class WXDLLIMPEXP_CORE wxGenericMessageDialog : public wxMessageDialogBase
public: public:
wxGenericMessageDialog(wxWindow *parent, wxGenericMessageDialog(wxWindow *parent,
const wxString& message, const wxString& message,
const wxString& caption = wxMessageBoxCaptionStr, const wxString& caption = wxASCII_STR(wxMessageBoxCaptionStr),
long style = wxOK|wxCENTRE, long style = wxOK|wxCENTRE,
const wxPoint& pos = wxDefaultPosition); const wxPoint& pos = wxDefaultPosition);

View File

@@ -42,14 +42,14 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxNotebookNameStr); const wxString& name = wxASCII_STR(wxNotebookNameStr));
// Create() function // Create() function
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxNotebookNameStr); const wxString& name = wxASCII_STR(wxNotebookNameStr));
// dtor // dtor
virtual ~wxNotebook(); virtual ~wxNotebook();

View File

@@ -24,7 +24,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL | wxNO_BORDER, long style = wxTAB_TRAVERSAL | wxNO_BORDER,
const wxString& name = wxPanelNameStr) const wxString& name = wxASCII_STR(wxPanelNameStr))
{ {
Create(parent, winid, pos, size, style, name); Create(parent, winid, pos, size, style, name);
} }
@@ -34,7 +34,7 @@ public:
wxPanel(wxWindow *parent, wxPanel(wxWindow *parent,
int x, int y, int width, int height, int x, int y, int width, int height,
long style = wxTAB_TRAVERSAL | wxNO_BORDER, long style = wxTAB_TRAVERSAL | wxNO_BORDER,
const wxString& name = wxPanelNameStr) const wxString& name = wxASCII_STR(wxPanelNameStr))
{ {
Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name); Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
} }

View File

@@ -311,7 +311,7 @@ class WXDLLIMPEXP_ADV wxGridSubwindow : public wxWindow
public: public:
wxGridSubwindow(wxGrid *owner, wxGridSubwindow(wxGrid *owner,
int additionalStyle = 0, int additionalStyle = 0,
const wxString& name = wxPanelNameStr) const wxString& name = wxASCII_STR(wxPanelNameStr))
: wxWindow(owner, wxID_ANY, : wxWindow(owner, wxID_ANY,
wxDefaultPosition, wxDefaultSize, wxDefaultPosition, wxDefaultSize,
wxBORDER_NONE | additionalStyle, wxBORDER_NONE | additionalStyle,

View File

@@ -83,7 +83,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize, const wxSize& sz = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE, long style = wxDEFAULT_DIALOG_STYLE,
const wxString& name = wxDialogNameStr) const wxString& name = wxASCII_STR(wxDialogNameStr))
{ {
Init(); Init();
Create(parent, id, title, pos, sz, style, name); Create(parent, id, title, pos, sz, style, name);
@@ -94,7 +94,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize, const wxSize& sz = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE, long style = wxDEFAULT_DIALOG_STYLE,
const wxString& name = wxDialogNameStr); const wxString& name = wxASCII_STR(wxDialogNameStr));
//// Accessors //// Accessors

View File

@@ -20,7 +20,7 @@ class WXDLLIMPEXP_CORE wxGenericRichMessageDialog
public: public:
wxGenericRichMessageDialog(wxWindow *parent, wxGenericRichMessageDialog(wxWindow *parent,
const wxString& message, const wxString& message,
const wxString& caption = wxMessageBoxCaptionStr, const wxString& caption = wxASCII_STR(wxMessageBoxCaptionStr),
long style = wxOK | wxCENTRE) long style = wxOK | wxCENTRE)
: wxRichMessageDialogBase( parent, message, caption, style ), : wxRichMessageDialogBase( parent, message, caption, style ),
m_checkBox(NULL), m_checkBox(NULL),

View File

@@ -424,7 +424,7 @@ private:
void Init() void Init()
{ {
m_digits = 0; m_digits = 0;
m_format = "%0.0f"; m_format = wxASCII_STR("%0.0f");
} }
wxString m_format; wxString m_format;

View File

@@ -34,7 +34,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxSearchCtrlNameStr); const wxString& name = wxASCII_STR(wxSearchCtrlNameStr));
virtual ~wxSearchCtrl(); virtual ~wxSearchCtrl();
@@ -44,7 +44,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxSearchCtrlNameStr); const wxString& name = wxASCII_STR(wxSearchCtrlNameStr));
#if wxUSE_MENUS #if wxUSE_MENUS
// get/set search button menu // get/set search button menu

View File

@@ -22,7 +22,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxStaticBitmapNameStr) const wxString& name = wxASCII_STR(wxStaticBitmapNameStr))
{ {
Create(parent, id, bitmap, pos, size, style, name); Create(parent, id, bitmap, pos, size, style, name);
} }
@@ -33,7 +33,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxStaticBitmapNameStr); const wxString& name = wxASCII_STR(wxStaticBitmapNameStr));
virtual void SetBitmap(const wxBitmap& bitmap) wxOVERRIDE virtual void SetBitmap(const wxBitmap& bitmap) wxOVERRIDE
{ {

View File

@@ -29,7 +29,7 @@ public:
const wxPoint &pos = wxDefaultPosition, const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize, const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL, long style = wxLI_HORIZONTAL,
const wxString &name = wxStaticLineNameStr ) const wxString &name = wxASCII_STR(wxStaticLineNameStr) )
{ {
Create(parent, id, pos, size, style, name); Create(parent, id, pos, size, style, name);
} }
@@ -41,7 +41,7 @@ public:
const wxPoint &pos = wxDefaultPosition, const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize, const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL, long style = wxLI_HORIZONTAL,
const wxString &name = wxStaticLineNameStr ); const wxString &name = wxASCII_STR(wxStaticLineNameStr) );
// it's necessary to override this wxWindow function because we // it's necessary to override this wxWindow function because we
// will want to return the main widget for m_statbox // will want to return the main widget for m_statbox

View File

@@ -29,7 +29,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxStaticTextNameStr) const wxString& name = wxASCII_STR(wxStaticTextNameStr))
{ {
Init(); Init();
@@ -42,7 +42,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxStaticTextNameStr); const wxString& name = wxASCII_STR(wxStaticTextNameStr));
virtual ~wxGenericStaticText(); virtual ~wxGenericStaticText();

View File

@@ -30,7 +30,7 @@ public:
wxStatusBarGeneric(wxWindow *parent, wxStatusBarGeneric(wxWindow *parent,
wxWindowID winid = wxID_ANY, wxWindowID winid = wxID_ANY,
long style = wxSTB_DEFAULT_STYLE, long style = wxSTB_DEFAULT_STYLE,
const wxString& name = wxStatusBarNameStr) const wxString& name = wxASCII_STR(wxStatusBarNameStr))
{ {
Init(); Init();
@@ -41,7 +41,7 @@ public:
bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY, bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY,
long style = wxSTB_DEFAULT_STYLE, long style = wxSTB_DEFAULT_STYLE,
const wxString& name = wxStatusBarNameStr); const wxString& name = wxASCII_STR(wxStatusBarNameStr));
// implement base class methods // implement base class methods
virtual void SetStatusWidths(int n, const int widths_field[]) wxOVERRIDE; virtual void SetStatusWidths(int n, const int widths_field[]) wxOVERRIDE;

View File

@@ -276,7 +276,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long windowStyle = wxDEFAULT_DIALOG_STYLE, long windowStyle = wxDEFAULT_DIALOG_STYLE,
const wxString& name = wxDialogNameStr); const wxString& name = wxASCII_STR(wxDialogNameStr));
virtual ~wxTabbedDialog(); virtual ~wxTabbedDialog();
wxTabView *GetTabView() const { return m_tabView; } wxTabView *GetTabView() const { return m_tabView; }
@@ -307,7 +307,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long windowStyle = 0, long windowStyle = 0,
const wxString& name = wxPanelNameStr); const wxString& name = wxASCII_STR(wxPanelNameStr));
virtual ~wxTabbedPanel(); virtual ~wxTabbedPanel();
wxTabView *GetTabView() const { return m_tabView; } wxTabView *GetTabView() const { return m_tabView; }

View File

@@ -44,7 +44,7 @@ public:
wxTextEntryDialog(wxWindow *parent, wxTextEntryDialog(wxWindow *parent,
const wxString& message, const wxString& message,
const wxString& caption = wxGetTextFromUserPromptStr, const wxString& caption = wxASCII_STR(wxGetTextFromUserPromptStr),
const wxString& value = wxEmptyString, const wxString& value = wxEmptyString,
long style = wxTextEntryDialogStyle, long style = wxTextEntryDialogStyle,
const wxPoint& pos = wxDefaultPosition) const wxPoint& pos = wxDefaultPosition)
@@ -54,7 +54,7 @@ public:
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
const wxString& message, const wxString& message,
const wxString& caption = wxGetTextFromUserPromptStr, const wxString& caption = wxASCII_STR(wxGetTextFromUserPromptStr),
const wxString& value = wxEmptyString, const wxString& value = wxEmptyString,
long style = wxTextEntryDialogStyle, long style = wxTextEntryDialogStyle,
const wxPoint& pos = wxDefaultPosition); const wxPoint& pos = wxDefaultPosition);
@@ -102,7 +102,7 @@ public:
wxPasswordEntryDialog() { } wxPasswordEntryDialog() { }
wxPasswordEntryDialog(wxWindow *parent, wxPasswordEntryDialog(wxWindow *parent,
const wxString& message, const wxString& message,
const wxString& caption = wxGetPasswordFromUserPromptStr, const wxString& caption = wxASCII_STR(wxGetPasswordFromUserPromptStr),
const wxString& value = wxEmptyString, const wxString& value = wxEmptyString,
long style = wxTextEntryDialogStyle, long style = wxTextEntryDialogStyle,
const wxPoint& pos = wxDefaultPosition) const wxPoint& pos = wxDefaultPosition)
@@ -112,7 +112,7 @@ public:
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
const wxString& message, const wxString& message,
const wxString& caption = wxGetPasswordFromUserPromptStr, const wxString& caption = wxASCII_STR(wxGetPasswordFromUserPromptStr),
const wxString& value = wxEmptyString, const wxString& value = wxEmptyString,
long style = wxTextEntryDialogStyle, long style = wxTextEntryDialogStyle,
const wxPoint& pos = wxDefaultPosition); const wxPoint& pos = wxDefaultPosition);
@@ -129,7 +129,7 @@ private:
WXDLLIMPEXP_CORE wxString WXDLLIMPEXP_CORE wxString
wxGetTextFromUser(const wxString& message, wxGetTextFromUser(const wxString& message,
const wxString& caption = wxGetTextFromUserPromptStr, const wxString& caption = wxASCII_STR(wxGetTextFromUserPromptStr),
const wxString& default_value = wxEmptyString, const wxString& default_value = wxEmptyString,
wxWindow *parent = NULL, wxWindow *parent = NULL,
wxCoord x = wxDefaultCoord, wxCoord x = wxDefaultCoord,
@@ -138,7 +138,7 @@ WXDLLIMPEXP_CORE wxString
WXDLLIMPEXP_CORE wxString WXDLLIMPEXP_CORE wxString
wxGetPasswordFromUser(const wxString& message, wxGetPasswordFromUser(const wxString& message,
const wxString& caption = wxGetPasswordFromUserPromptStr, const wxString& caption = wxASCII_STR(wxGetPasswordFromUserPromptStr),
const wxString& default_value = wxEmptyString, const wxString& default_value = wxEmptyString,
wxWindow *parent = NULL, wxWindow *parent = NULL,
wxCoord x = wxDefaultCoord, wxCoord x = wxDefaultCoord,

View File

@@ -48,7 +48,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxTR_DEFAULT_STYLE, long style = wxTR_DEFAULT_STYLE,
const wxValidator &validator = wxDefaultValidator, const wxValidator &validator = wxDefaultValidator,
const wxString& name = wxTreeCtrlNameStr) const wxString& name = wxASCII_STR(wxTreeCtrlNameStr))
: wxTreeCtrlBase(), : wxTreeCtrlBase(),
wxScrollHelper(this) wxScrollHelper(this)
{ {
@@ -63,7 +63,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxTR_DEFAULT_STYLE, long style = wxTR_DEFAULT_STYLE,
const wxValidator &validator = wxDefaultValidator, const wxValidator &validator = wxDefaultValidator,
const wxString& name = wxTreeCtrlNameStr); const wxString& name = wxASCII_STR(wxTreeCtrlNameStr));
// implement base class pure virtuals // implement base class pure virtuals
// ---------------------------------- // ----------------------------------
@@ -390,7 +390,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxTR_DEFAULT_STYLE, long style = wxTR_DEFAULT_STYLE,
const wxValidator &validator = wxDefaultValidator, const wxValidator &validator = wxDefaultValidator,
const wxString& name = wxTreeCtrlNameStr) const wxString& name = wxASCII_STR(wxTreeCtrlNameStr))
: wxGenericTreeCtrl(parent, id, pos, size, style, validator, name) : wxGenericTreeCtrl(parent, id, pos, size, style, validator, name)
{ {
} }

View File

@@ -31,7 +31,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxAC_DEFAULT_STYLE, long style = wxAC_DEFAULT_STYLE,
const wxString& name = wxAnimationCtrlNameStr) const wxString& name = wxASCII_STR(wxAnimationCtrlNameStr))
{ {
Init(); Init();
@@ -43,7 +43,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxAC_DEFAULT_STYLE, long style = wxAC_DEFAULT_STYLE,
const wxString& name = wxAnimationCtrlNameStr); const wxString& name = wxASCII_STR(wxAnimationCtrlNameStr));
~wxAnimationCtrl(); ~wxAnimationCtrl();

View File

@@ -25,7 +25,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr) const wxString& name = wxASCII_STR(wxButtonNameStr))
{ {
Create(parent, id, bitmap, pos, size, style, validator, name); Create(parent, id, bitmap, pos, size, style, validator, name);
} }
@@ -37,7 +37,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr); const wxString& name = wxASCII_STR(wxButtonNameStr));
private: private:
wxDECLARE_DYNAMIC_CLASS(wxBitmapButton); wxDECLARE_DYNAMIC_CLASS(wxBitmapButton);

View File

@@ -37,7 +37,7 @@ public:
const wxString choices[] = NULL, const wxString choices[] = NULL,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxBitmapComboBoxNameStr) const wxString& name = wxASCII_STR(wxBitmapComboBoxNameStr))
: wxComboBox(), : wxComboBox(),
wxBitmapComboBoxBase() wxBitmapComboBoxBase()
{ {
@@ -55,7 +55,7 @@ public:
const wxArrayString& choices, const wxArrayString& choices,
long style, long style,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxBitmapComboBoxNameStr); const wxString& name = wxASCII_STR(wxBitmapComboBoxNameStr));
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id,
@@ -66,7 +66,7 @@ public:
const wxString choices[], const wxString choices[],
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxBitmapComboBoxNameStr); const wxString& name = wxASCII_STR(wxBitmapComboBoxNameStr));
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id,
@@ -76,7 +76,7 @@ public:
const wxArrayString& choices, const wxArrayString& choices,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxBitmapComboBoxNameStr); const wxString& name = wxASCII_STR(wxBitmapComboBoxNameStr));
virtual ~wxBitmapComboBox(); virtual ~wxBitmapComboBox();

View File

@@ -22,7 +22,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr) const wxString& name = wxASCII_STR(wxButtonNameStr))
{ {
Create(parent, id, label, pos, size, style, validator, name); Create(parent, id, label, pos, size, style, validator, name);
} }
@@ -32,7 +32,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr); const wxString& name = wxASCII_STR(wxButtonNameStr));
virtual wxWindow *SetDefault() wxOVERRIDE; virtual wxWindow *SetDefault() wxOVERRIDE;
virtual void SetLabel( const wxString &label ) wxOVERRIDE; virtual void SetLabel( const wxString &label ) wxOVERRIDE;

View File

@@ -19,7 +19,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCAL_SHOW_HOLIDAYS, long style = wxCAL_SHOW_HOLIDAYS,
const wxString& name = wxCalendarNameStr) const wxString& name = wxASCII_STR(wxCalendarNameStr))
{ {
Create(parent, id, date, pos, size, style, name); Create(parent, id, date, pos, size, style, name);
} }
@@ -30,7 +30,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCAL_SHOW_HOLIDAYS, long style = wxCAL_SHOW_HOLIDAYS,
const wxString& name = wxCalendarNameStr); const wxString& name = wxASCII_STR(wxCalendarNameStr));
virtual ~wxGtkCalendarCtrl() {} virtual ~wxGtkCalendarCtrl() {}

View File

@@ -22,7 +22,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxCheckBoxNameStr) const wxString& name = wxASCII_STR(wxCheckBoxNameStr))
{ {
Create(parent, id, label, pos, size, style, validator, name); Create(parent, id, label, pos, size, style, validator, name);
} }
@@ -33,7 +33,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxCheckBoxNameStr ); const wxString& name = wxASCII_STR(wxCheckBoxNameStr) );
void SetValue( bool state ) wxOVERRIDE; void SetValue( bool state ) wxOVERRIDE;
bool GetValue() const wxOVERRIDE; bool GetValue() const wxOVERRIDE;

View File

@@ -25,14 +25,14 @@ public:
const wxString *choices = NULL, const wxString *choices = NULL,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr); const wxString& name = wxASCII_STR(wxListBoxNameStr));
wxCheckListBox(wxWindow *parent, wxWindowID id, wxCheckListBox(wxWindow *parent, wxWindowID id,
const wxPoint& pos, const wxPoint& pos,
const wxSize& size, const wxSize& size,
const wxArrayString& choices, const wxArrayString& choices,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr); const wxString& name = wxASCII_STR(wxListBoxNameStr));
virtual bool IsChecked(unsigned int index) const wxOVERRIDE; virtual bool IsChecked(unsigned int index) const wxOVERRIDE;
virtual void Check(unsigned int index, bool check = true) wxOVERRIDE; virtual void Check(unsigned int index, bool check = true) wxOVERRIDE;

View File

@@ -31,7 +31,7 @@ public:
int n = 0, const wxString choices[] = (const wxString *) NULL, int n = 0, const wxString choices[] = (const wxString *) NULL,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxChoiceNameStr ) const wxString& name = wxASCII_STR(wxChoiceNameStr) )
{ {
Init(); Init();
Create(parent, id, pos, size, n, choices, style, validator, name); Create(parent, id, pos, size, n, choices, style, validator, name);
@@ -42,7 +42,7 @@ public:
const wxArrayString& choices, const wxArrayString& choices,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxChoiceNameStr ) const wxString& name = wxASCII_STR(wxChoiceNameStr) )
{ {
Init(); Init();
Create(parent, id, pos, size, choices, style, validator, name); Create(parent, id, pos, size, choices, style, validator, name);
@@ -54,14 +54,14 @@ public:
int n = 0, const wxString choices[] = NULL, int n = 0, const wxString choices[] = NULL,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxChoiceNameStr ); const wxString& name = wxASCII_STR(wxChoiceNameStr) );
bool Create( wxWindow *parent, wxWindowID id, bool Create( wxWindow *parent, wxWindowID id,
const wxPoint& pos, const wxPoint& pos,
const wxSize& size, const wxSize& size,
const wxArrayString& choices, const wxArrayString& choices,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxChoiceNameStr ); const wxString& name = wxASCII_STR(wxChoiceNameStr) );
int GetSelection() const wxOVERRIDE; int GetSelection() const wxOVERRIDE;
void SetSelection(int n) wxOVERRIDE; void SetSelection(int n) wxOVERRIDE;

View File

@@ -29,7 +29,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCLRBTN_DEFAULT_STYLE, long style = wxCLRBTN_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxColourPickerWidgetNameStr) const wxString& name = wxASCII_STR(wxColourPickerWidgetNameStr))
: m_topParent(NULL) : m_topParent(NULL)
{ {
Create(parent, id, initial, pos, size, style, validator, name); Create(parent, id, initial, pos, size, style, validator, name);
@@ -42,7 +42,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCLRBTN_DEFAULT_STYLE, long style = wxCLRBTN_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxColourPickerWidgetNameStr); const wxString& name = wxASCII_STR(wxColourPickerWidgetNameStr));
virtual ~wxColourButton(); virtual ~wxColourButton();

View File

@@ -27,7 +27,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCP_DEFAULT_STYLE, long style = wxCP_DEFAULT_STYLE,
const wxValidator& val = wxDefaultValidator, const wxValidator& val = wxDefaultValidator,
const wxString& name = wxCollapsiblePaneNameStr) const wxString& name = wxASCII_STR(wxCollapsiblePaneNameStr))
{ {
Init(); Init();
@@ -41,7 +41,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCP_DEFAULT_STYLE, long style = wxCP_DEFAULT_STYLE,
const wxValidator& val = wxDefaultValidator, const wxValidator& val = wxDefaultValidator,
const wxString& name = wxCollapsiblePaneNameStr); const wxString& name = wxASCII_STR(wxCollapsiblePaneNameStr));
virtual void Collapse(bool collapse = true) wxOVERRIDE; virtual void Collapse(bool collapse = true) wxOVERRIDE;
virtual bool IsCollapsed() const wxOVERRIDE; virtual bool IsCollapsed() const wxOVERRIDE;

View File

@@ -35,7 +35,7 @@ public:
int n = 0, const wxString choices[] = NULL, int n = 0, const wxString choices[] = NULL,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr) const wxString& name = wxASCII_STR(wxComboBoxNameStr))
: wxChoice(), wxTextEntry() : wxChoice(), wxTextEntry()
{ {
Init(); Init();
@@ -49,7 +49,7 @@ public:
const wxArrayString& choices, const wxArrayString& choices,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr) const wxString& name = wxASCII_STR(wxComboBoxNameStr))
: wxChoice(), wxTextEntry() : wxChoice(), wxTextEntry()
{ {
Init(); Init();
@@ -64,7 +64,7 @@ public:
int n = 0, const wxString choices[] = (const wxString *) NULL, int n = 0, const wxString choices[] = (const wxString *) NULL,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr); const wxString& name = wxASCII_STR(wxComboBoxNameStr));
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
const wxString& value, const wxString& value,
const wxPoint& pos, const wxPoint& pos,
@@ -72,7 +72,7 @@ public:
const wxArrayString& choices, const wxArrayString& choices,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr); const wxString& name = wxASCII_STR(wxComboBoxNameStr));
// Set/GetSelection() from wxTextEntry and wxChoice // Set/GetSelection() from wxTextEntry and wxChoice

View File

@@ -26,7 +26,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxControlNameStr) const wxString& name = wxASCII_STR(wxControlNameStr))
{ {
Create(parent, id, pos, size, style, validator, name); Create(parent, id, pos, size, style, validator, name);
} }
@@ -35,7 +35,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxControlNameStr); const wxString& name = wxASCII_STR(wxControlNameStr));
virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE; virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE;
#ifdef __WXGTK3__ #ifdef __WXGTK3__

View File

@@ -24,7 +24,9 @@ public:
// we have to provide all the overloads to allow using strings instead of // we have to provide all the overloads to allow using strings instead of
// data formats (as a lot of existing code does) // data formats (as a lot of existing code does)
wxDataFormat( const wxString& id ) { InitFromString(id); } wxDataFormat( const wxString& id ) { InitFromString(id); }
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
wxDataFormat( const char *id ) { InitFromString(id); } wxDataFormat( const char *id ) { InitFromString(id); }
#endif
wxDataFormat( const wchar_t *id ) { InitFromString(id); } wxDataFormat( const wchar_t *id ) { InitFromString(id); }
wxDataFormat( const wxCStrData& id ) { InitFromString(id); } wxDataFormat( const wxCStrData& id ) { InitFromString(id); }

View File

@@ -112,7 +112,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxDataViewCtrlNameStr ) const wxString& name = wxASCII_STR(wxDataViewCtrlNameStr) )
{ {
Init(); Init();
@@ -123,7 +123,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxDataViewCtrlNameStr); const wxString& name = wxASCII_STR(wxDataViewCtrlNameStr));
virtual ~wxDataViewCtrl(); virtual ~wxDataViewCtrl();

View File

@@ -25,13 +25,13 @@ public:
const wxPoint &pos = wxDefaultPosition, const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize, const wxSize &size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE, long style = wxDEFAULT_DIALOG_STYLE,
const wxString &name = wxDialogNameStr ); const wxString &name = wxASCII_STR(wxDialogNameStr) );
bool Create( wxWindow *parent, wxWindowID id, bool Create( wxWindow *parent, wxWindowID id,
const wxString &title, const wxString &title,
const wxPoint &pos = wxDefaultPosition, const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize, const wxSize &size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE, long style = wxDEFAULT_DIALOG_STYLE,
const wxString &name = wxDialogNameStr ); const wxString &name = wxASCII_STR(wxDialogNameStr) );
virtual ~wxDialog(); virtual ~wxDialog();
virtual bool Show( bool show = true ) wxOVERRIDE; virtual bool Show( bool show = true ) wxOVERRIDE;

View File

@@ -19,19 +19,19 @@ public:
wxDirDialog() { } wxDirDialog() { }
wxDirDialog(wxWindow *parent, wxDirDialog(wxWindow *parent,
const wxString& message = wxDirSelectorPromptStr, const wxString& message = wxASCII_STR(wxDirSelectorPromptStr),
const wxString& defaultPath = wxEmptyString, const wxString& defaultPath = wxEmptyString,
long style = wxDD_DEFAULT_STYLE, long style = wxDD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
const wxString& name = wxDirDialogNameStr); const wxString& name = wxASCII_STR(wxDirDialogNameStr));
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
const wxString& message = wxDirSelectorPromptStr, const wxString& message = wxASCII_STR(wxDirSelectorPromptStr),
const wxString& defaultPath = wxEmptyString, const wxString& defaultPath = wxEmptyString,
long style = wxDD_DEFAULT_STYLE, long style = wxDD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
const wxString& name = wxDirDialogNameStr); const wxString& name = wxASCII_STR(wxDirDialogNameStr));
virtual ~wxDirDialog() { } virtual ~wxDirDialog() { }

View File

@@ -77,11 +77,11 @@ public:
wxWindowID id, wxWindowID id,
const wxString& defaultDirectory = wxEmptyString, const wxString& defaultDirectory = wxEmptyString,
const wxString& defaultFilename = wxEmptyString, const wxString& defaultFilename = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr, const wxString& wildCard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
long style = wxFC_DEFAULT_STYLE, long style = wxFC_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
const wxString& name = wxFileCtrlNameStr ) const wxString& name = wxASCII_STR(wxFileCtrlNameStr) )
{ {
Init(); Init();
Create( parent, id, defaultDirectory, defaultFilename, wildCard, style, pos, size, name ); Create( parent, id, defaultDirectory, defaultFilename, wildCard, style, pos, size, name );
@@ -93,11 +93,11 @@ public:
wxWindowID id, wxWindowID id,
const wxString& defaultDirectory = wxEmptyString, const wxString& defaultDirectory = wxEmptyString,
const wxString& defaultFileName = wxEmptyString, const wxString& defaultFileName = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr, const wxString& wildCard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
long style = wxFC_DEFAULT_STYLE, long style = wxFC_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
const wxString& name = wxFileCtrlNameStr ); const wxString& name = wxASCII_STR(wxFileCtrlNameStr) );
virtual void SetWildcard( const wxString& wildCard ) wxOVERRIDE; virtual void SetWildcard( const wxString& wildCard ) wxOVERRIDE;
virtual void SetFilterIndex( int filterIndex ) wxOVERRIDE; virtual void SetFilterIndex( int filterIndex ) wxOVERRIDE;

View File

@@ -21,23 +21,23 @@ public:
wxFileDialog() { } wxFileDialog() { }
wxFileDialog(wxWindow *parent, wxFileDialog(wxWindow *parent,
const wxString& message = wxFileSelectorPromptStr, const wxString& message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString& defaultDir = wxEmptyString, const wxString& defaultDir = wxEmptyString,
const wxString& defaultFile = wxEmptyString, const wxString& defaultFile = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr, const wxString& wildCard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
long style = wxFD_DEFAULT_STYLE, long style = wxFD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize, const wxSize& sz = wxDefaultSize,
const wxString& name = wxFileDialogNameStr); const wxString& name = wxASCII_STR(wxFileDialogNameStr));
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
const wxString& message = wxFileSelectorPromptStr, const wxString& message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString& defaultDir = wxEmptyString, const wxString& defaultDir = wxEmptyString,
const wxString& defaultFile = wxEmptyString, const wxString& defaultFile = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr, const wxString& wildCard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
long style = wxFD_DEFAULT_STYLE, long style = wxFD_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& sz = wxDefaultSize, const wxSize& sz = wxDefaultSize,
const wxString& name = wxFileDialogNameStr); const wxString& name = wxASCII_STR(wxFileDialogNameStr));
virtual ~wxFileDialog(); virtual ~wxFileDialog();
virtual wxString GetPath() const wxOVERRIDE; virtual wxString GetPath() const wxOVERRIDE;

View File

@@ -56,15 +56,15 @@ public:
wxFileButton() { Init(); } wxFileButton() { Init(); }
wxFileButton(wxWindow *parent, wxFileButton(wxWindow *parent,
wxWindowID id, wxWindowID id,
const wxString& label = wxFilePickerWidgetLabel, const wxString& label = wxASCII_STR(wxFilePickerWidgetLabel),
const wxString &path = wxEmptyString, const wxString &path = wxEmptyString,
const wxString &message = wxFileSelectorPromptStr, const wxString &message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString &wildcard = wxFileSelectorDefaultWildcardStr, const wxString &wildcard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxFILEBTN_DEFAULT_STYLE, long style = wxFILEBTN_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFilePickerWidgetNameStr) const wxString& name = wxASCII_STR(wxFilePickerWidgetNameStr))
{ {
Init(); Init();
m_pickerStyle = style; m_pickerStyle = style;
@@ -79,15 +79,15 @@ public: // overrides
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id,
const wxString& label = wxFilePickerWidgetLabel, const wxString& label = wxASCII_STR(wxFilePickerWidgetLabel),
const wxString &path = wxEmptyString, const wxString &path = wxEmptyString,
const wxString &message = wxFileSelectorPromptStr, const wxString &message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString &wildcard = wxFileSelectorDefaultWildcardStr, const wxString &wildcard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFilePickerWidgetNameStr); const wxString& name = wxASCII_STR(wxFilePickerWidgetNameStr));
// event handler for the click // event handler for the click
void OnDialogOK(wxCommandEvent &); void OnDialogOK(wxCommandEvent &);
@@ -121,14 +121,14 @@ public:
wxDirButton() { Init(); } wxDirButton() { Init(); }
wxDirButton(wxWindow *parent, wxDirButton(wxWindow *parent,
wxWindowID id, wxWindowID id,
const wxString& label = wxFilePickerWidgetLabel, const wxString& label = wxASCII_STR(wxFilePickerWidgetLabel),
const wxString &path = wxEmptyString, const wxString &path = wxEmptyString,
const wxString &message = wxFileSelectorPromptStr, const wxString &message = wxASCII_STR(wxFileSelectorPromptStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDIRBTN_DEFAULT_STYLE, long style = wxDIRBTN_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFilePickerWidgetNameStr) const wxString& name = wxASCII_STR(wxFilePickerWidgetNameStr))
{ {
Init(); Init();
@@ -145,15 +145,15 @@ public: // overrides
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id,
const wxString& label = wxFilePickerWidgetLabel, const wxString& label = wxASCII_STR(wxFilePickerWidgetLabel),
const wxString &path = wxEmptyString, const wxString &path = wxEmptyString,
const wxString &message = wxFileSelectorPromptStr, const wxString &message = wxASCII_STR(wxFileSelectorPromptStr),
const wxString &wildcard = wxFileSelectorDefaultWildcardStr, const wxString &wildcard = wxASCII_STR(wxFileSelectorDefaultWildcardStr),
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFilePickerWidgetNameStr); const wxString& name = wxASCII_STR(wxFilePickerWidgetNameStr));
// GtkFileChooserButton does not support GTK_FILE_CHOOSER_CREATE_FOLDER // GtkFileChooserButton does not support GTK_FILE_CHOOSER_CREATE_FOLDER

View File

@@ -29,7 +29,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxFONTBTN_DEFAULT_STYLE, long style = wxFONTBTN_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFontPickerWidgetNameStr) const wxString& name = wxASCII_STR(wxFontPickerWidgetNameStr))
{ {
Init(); Init();
@@ -43,7 +43,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxFONTBTN_DEFAULT_STYLE, long style = wxFONTBTN_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxFontPickerWidgetNameStr); const wxString& name = wxASCII_STR(wxFontPickerWidgetNameStr));
virtual wxColour GetSelectedColour() const wxOVERRIDE virtual wxColour GetSelectedColour() const wxOVERRIDE
{ return m_selectedColour; } { return m_selectedColour; }

View File

@@ -24,7 +24,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
{ {
Init(); Init();
@@ -37,7 +37,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr); const wxString& name = wxASCII_STR(wxFrameNameStr));
#if wxUSE_STATUSBAR #if wxUSE_STATUSBAR
void SetStatusBar(wxStatusBar *statbar) wxOVERRIDE; void SetStatusBar(wxStatusBar *statbar) wxOVERRIDE;

View File

@@ -25,7 +25,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxGA_HORIZONTAL, long style = wxGA_HORIZONTAL,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxGaugeNameStr ) const wxString& name = wxASCII_STR(wxGaugeNameStr) )
{ {
Init(); Init();
@@ -38,7 +38,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxGA_HORIZONTAL, long style = wxGA_HORIZONTAL,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxGaugeNameStr ); const wxString& name = wxASCII_STR(wxGaugeNameStr) );
// implement base class virtual methods // implement base class virtual methods
void SetRange(int range) wxOVERRIDE; void SetRange(int range) wxOVERRIDE;

View File

@@ -28,7 +28,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxHL_DEFAULT_STYLE, long style = wxHL_DEFAULT_STYLE,
const wxString& name = wxHyperlinkCtrlNameStr); const wxString& name = wxASCII_STR(wxHyperlinkCtrlNameStr));
virtual ~wxHyperlinkCtrl(); virtual ~wxHyperlinkCtrl();
@@ -39,7 +39,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxHL_DEFAULT_STYLE, long style = wxHL_DEFAULT_STYLE,
const wxString& name = wxHyperlinkCtrlNameStr); const wxString& name = wxASCII_STR(wxHyperlinkCtrlNameStr));
// get/set // get/set

View File

@@ -30,7 +30,7 @@ public:
int n = 0, const wxString choices[] = (const wxString *) NULL, int n = 0, const wxString choices[] = (const wxString *) NULL,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr ) const wxString& name = wxASCII_STR(wxListBoxNameStr) )
{ {
Init(); Init();
Create(parent, id, pos, size, n, choices, style, validator, name); Create(parent, id, pos, size, n, choices, style, validator, name);
@@ -41,7 +41,7 @@ public:
const wxArrayString& choices, const wxArrayString& choices,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr ) const wxString& name = wxASCII_STR(wxListBoxNameStr) )
{ {
Init(); Init();
Create(parent, id, pos, size, choices, style, validator, name); Create(parent, id, pos, size, choices, style, validator, name);
@@ -54,14 +54,14 @@ public:
int n = 0, const wxString choices[] = (const wxString *) NULL, int n = 0, const wxString choices[] = (const wxString *) NULL,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr); const wxString& name = wxASCII_STR(wxListBoxNameStr));
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
const wxPoint& pos, const wxPoint& pos,
const wxSize& size, const wxSize& size,
const wxArrayString& choices, const wxArrayString& choices,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr); const wxString& name = wxASCII_STR(wxListBoxNameStr));
virtual unsigned int GetCount() const wxOVERRIDE; virtual unsigned int GetCount() const wxOVERRIDE;
virtual wxString GetString(unsigned int n) const wxOVERRIDE; virtual wxString GetString(unsigned int n) const wxOVERRIDE;

View File

@@ -32,7 +32,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
{ {
Init(); Init();
@@ -45,7 +45,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
const wxString& name = wxFrameNameStr); const wxString& name = wxASCII_STR(wxFrameNameStr));
// we don't store the active child in m_currentChild unlike the base class // we don't store the active child in m_currentChild unlike the base class
// version so override this method to find it dynamically // version so override this method to find it dynamically
@@ -89,7 +89,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
{ {
Init(); Init();
@@ -102,7 +102,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr); const wxString& name = wxASCII_STR(wxFrameNameStr));
virtual ~wxMDIChildFrame(); virtual ~wxMDIChildFrame();

View File

@@ -28,7 +28,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCAPTION | wxRESIZE_BORDER, long style = wxCAPTION | wxRESIZE_BORDER,
const wxString& name = wxFrameNameStr) const wxString& name = wxASCII_STR(wxFrameNameStr))
{ {
Create(parent, id, title, pos, size, style, name); Create(parent, id, title, pos, size, style, name);
} }
@@ -40,7 +40,7 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCAPTION | wxRESIZE_BORDER, long style = wxCAPTION | wxRESIZE_BORDER,
const wxString& name = wxFrameNameStr); const wxString& name = wxASCII_STR(wxFrameNameStr));
virtual void SetTitle( const wxString &title ) wxOVERRIDE; virtual void SetTitle( const wxString &title ) wxOVERRIDE;

View File

@@ -15,7 +15,7 @@ class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase
{ {
public: public:
wxMessageDialog(wxWindow *parent, const wxString& message, wxMessageDialog(wxWindow *parent, const wxString& message,
const wxString& caption = wxMessageBoxCaptionStr, const wxString& caption = wxASCII_STR(wxMessageBoxCaptionStr),
long style = wxOK|wxCENTRE, long style = wxOK|wxCENTRE,
const wxPoint& pos = wxDefaultPosition); const wxPoint& pos = wxDefaultPosition);

View File

@@ -34,14 +34,14 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxNotebookNameStr); const wxString& name = wxASCII_STR(wxNotebookNameStr));
// Create() function // Create() function
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxNotebookNameStr); const wxString& name = wxASCII_STR(wxNotebookNameStr));
// dtor // dtor
virtual ~wxNotebook(); virtual ~wxNotebook();

View File

@@ -68,7 +68,7 @@ private:
// GTK UI guidelines recommend using "symbolic" versions of the icons // GTK UI guidelines recommend using "symbolic" versions of the icons
// for these buttons, so try them first but fall back to the normal // for these buttons, so try them first but fall back to the normal
// ones if symbolic theme is not installed. // ones if symbolic theme is not installed.
wxBitmap bmp = wxArtProvider::GetBitmap(name + "-symbolic", wxART_MENU); wxBitmap bmp = wxArtProvider::GetBitmap(name + wxASCII_STR("-symbolic"), wxART_MENU);
if ( !bmp.IsOk() ) if ( !bmp.IsOk() )
bmp = wxArtProvider::GetBitmap(name, wxART_MENU); bmp = wxArtProvider::GetBitmap(name, wxART_MENU);
return bmp; return bmp;

View File

@@ -38,7 +38,7 @@ public:
int majorDim = 0, int majorDim = 0,
long style = wxRA_SPECIFY_COLS, long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator, const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr) const wxString& name = wxASCII_STR(wxRadioBoxNameStr))
{ {
Create( parent, id, title, pos, size, n, choices, majorDim, style, val, name ); Create( parent, id, title, pos, size, n, choices, majorDim, style, val, name );
} }
@@ -52,7 +52,7 @@ public:
int majorDim = 0, int majorDim = 0,
long style = wxRA_SPECIFY_COLS, long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator, const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr) const wxString& name = wxASCII_STR(wxRadioBoxNameStr))
{ {
Create( parent, id, title, pos, size, choices, majorDim, style, val, name ); Create( parent, id, title, pos, size, choices, majorDim, style, val, name );
} }
@@ -67,7 +67,7 @@ public:
int majorDim = 0, int majorDim = 0,
long style = wxRA_SPECIFY_COLS, long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator, const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr); const wxString& name = wxASCII_STR(wxRadioBoxNameStr));
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id,
const wxString& title, const wxString& title,
@@ -77,7 +77,7 @@ public:
int majorDim = 0, int majorDim = 0,
long style = wxRA_SPECIFY_COLS, long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator, const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr); const wxString& name = wxASCII_STR(wxRadioBoxNameStr));
virtual ~wxRadioBox(); virtual ~wxRadioBox();

View File

@@ -24,7 +24,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxRadioButtonNameStr ) const wxString& name = wxASCII_STR(wxRadioButtonNameStr) )
{ {
Create( parent, id, label, pos, size, style, validator, name ); Create( parent, id, label, pos, size, style, validator, name );
} }
@@ -36,7 +36,7 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxRadioButtonNameStr ); const wxString& name = wxASCII_STR(wxRadioButtonNameStr) );
virtual void SetLabel(const wxString& label) wxOVERRIDE; virtual void SetLabel(const wxString& label) wxOVERRIDE;
virtual void SetValue(bool val); virtual void SetValue(bool val);

Some files were not shown because too many files have changed in this diff Show More