Don't use _T() in public headers used under Unix.
Avoid conflict with the Sun CC standard headers (see #10660). Also update the change log to mention _T() changes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -103,6 +103,10 @@ handler if you do wish to allow the item to be toggled.
|
||||
All:
|
||||
|
||||
- Fixed crashes due to invalid input in PNG and TIFF image loaders (Tielei Wang).
|
||||
- Fix compilation of wxWidgets headers with recent Sun CC (Brian Cameron).
|
||||
NB: If your code uses _T() macro you must either replace it with wxT() to
|
||||
use Sun CC or define wxNEEDS__T before including wx headers and avoid
|
||||
including many standard headers (again, only with this compiler).
|
||||
- Added several functions forward compatible with wxWidgets 3.0 (troelsk):
|
||||
wxDC::SetDeviceClippingRegion(), wxShowEvent::IsShown(),
|
||||
wxIconizeEvent::IsIconized(), wxFileName::StripExtension(),
|
||||
|
@@ -152,7 +152,7 @@ public:
|
||||
wxString& Item(size_t nIndex) const
|
||||
{
|
||||
wxASSERT_MSG( nIndex < m_nCount,
|
||||
_T("wxArrayString: index out of bounds") );
|
||||
wxT("wxArrayString: index out of bounds") );
|
||||
|
||||
return *(wxString *)&(m_pItems[nIndex]);
|
||||
}
|
||||
@@ -163,7 +163,7 @@ public:
|
||||
wxString& Last() const
|
||||
{
|
||||
wxASSERT_MSG( !IsEmpty(),
|
||||
_T("wxArrayString: index out of bounds") );
|
||||
wxT("wxArrayString: index out of bounds") );
|
||||
return Item(Count() - 1);
|
||||
}
|
||||
|
||||
|
@@ -27,10 +27,10 @@ class wxArtProviderModule;
|
||||
typedef wxString wxArtClient;
|
||||
typedef wxString wxArtID;
|
||||
|
||||
#define wxART_MAKE_CLIENT_ID_FROM_STR(id) (id + _T("_C"))
|
||||
#define wxART_MAKE_CLIENT_ID(id) _T(#id) _T("_C")
|
||||
#define wxART_MAKE_CLIENT_ID_FROM_STR(id) (id + wxT("_C"))
|
||||
#define wxART_MAKE_CLIENT_ID(id) wxT(#id) wxT("_C")
|
||||
#define wxART_MAKE_ART_ID_FROM_STR(id) (id)
|
||||
#define wxART_MAKE_ART_ID(id) _T(#id)
|
||||
#define wxART_MAKE_ART_ID(id) wxT(#id)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Art clients
|
||||
|
@@ -286,7 +286,7 @@ public:
|
||||
// Other ways to append to the buffer
|
||||
void AppendByte(char data)
|
||||
{
|
||||
wxCHECK_RET( m_bufdata->m_data, _T("invalid wxMemoryBuffer") );
|
||||
wxCHECK_RET( m_bufdata->m_data, wxT("invalid wxMemoryBuffer") );
|
||||
|
||||
m_bufdata->ResizeIfNeeded(m_bufdata->m_len + 1);
|
||||
*(((char*)m_bufdata->m_data) + m_bufdata->m_len) = data;
|
||||
|
@@ -26,7 +26,7 @@ class WXDLLEXPORT wxDirDialog: public wxDirDialogBase
|
||||
public:
|
||||
wxDirDialog(wxWindow *parent,
|
||||
const wxString& message = wxDirSelectorPromptStr,
|
||||
const wxString& defaultPath = _T(""),
|
||||
const wxString& defaultPath = wxT(""),
|
||||
long style = wxDD_DEFAULT_STYLE,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
|
@@ -30,13 +30,13 @@ class WXDLLIMPEXP_FWD_BASE wxArrayString;
|
||||
|
||||
/// separates group and entry names (probably shouldn't be changed)
|
||||
#ifndef wxCONFIG_PATH_SEPARATOR
|
||||
#define wxCONFIG_PATH_SEPARATOR _T('/')
|
||||
#define wxCONFIG_PATH_SEPARATOR wxT('/')
|
||||
#endif
|
||||
|
||||
/// introduces immutable entries
|
||||
// (i.e. the ones which can't be changed from the local config file)
|
||||
#ifndef wxCONFIG_IMMUTABLE_PREFIX
|
||||
#define wxCONFIG_IMMUTABLE_PREFIX _T('!')
|
||||
#define wxCONFIG_IMMUTABLE_PREFIX wxT('!')
|
||||
#endif
|
||||
|
||||
#if wxUSE_CONFIG
|
||||
|
@@ -69,7 +69,7 @@
|
||||
if (Condition) \
|
||||
{ anyTest; } \
|
||||
else \
|
||||
wxLogInfo(wxString::Format(_T("skipping: %s.%s\n reason: %s equals false\n"), \
|
||||
wxLogInfo(wxString::Format(wxT("skipping: %s.%s\n reason: %s equals false\n"), \
|
||||
wxString(suiteName, wxConvUTF8).c_str(), \
|
||||
wxString(#testMethod, wxConvUTF8).c_str(), \
|
||||
wxString(#Condition, wxConvUTF8).c_str()))
|
||||
|
@@ -134,7 +134,7 @@ public:
|
||||
const wxPoint& pt,
|
||||
wxHelpEvent::Origin origin)
|
||||
{
|
||||
wxCHECK_MSG( window, false, _T("window must not be NULL") );
|
||||
wxCHECK_MSG( window, false, wxT("window must not be NULL") );
|
||||
|
||||
m_helptextAtPoint = pt;
|
||||
m_helptextOrigin = origin;
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include "wx/control.h" // the base class
|
||||
#include "wx/datetime.h"
|
||||
|
||||
#define wxDatePickerCtrlNameStr _T("datectrl")
|
||||
#define wxDatePickerCtrlNameStr wxT("datectrl")
|
||||
|
||||
// wxDatePickerCtrl styles
|
||||
enum
|
||||
|
@@ -951,37 +951,37 @@ public:
|
||||
|
||||
inline bool operator<(const wxDateTime& dt) const
|
||||
{
|
||||
wxASSERT_MSG( IsValid() && dt.IsValid(), _T("invalid wxDateTime") );
|
||||
wxASSERT_MSG( IsValid() && dt.IsValid(), wxT("invalid wxDateTime") );
|
||||
return GetValue() < dt.GetValue();
|
||||
}
|
||||
|
||||
inline bool operator<=(const wxDateTime& dt) const
|
||||
{
|
||||
wxASSERT_MSG( IsValid() && dt.IsValid(), _T("invalid wxDateTime") );
|
||||
wxASSERT_MSG( IsValid() && dt.IsValid(), wxT("invalid wxDateTime") );
|
||||
return GetValue() <= dt.GetValue();
|
||||
}
|
||||
|
||||
inline bool operator>(const wxDateTime& dt) const
|
||||
{
|
||||
wxASSERT_MSG( IsValid() && dt.IsValid(), _T("invalid wxDateTime") );
|
||||
wxASSERT_MSG( IsValid() && dt.IsValid(), wxT("invalid wxDateTime") );
|
||||
return GetValue() > dt.GetValue();
|
||||
}
|
||||
|
||||
inline bool operator>=(const wxDateTime& dt) const
|
||||
{
|
||||
wxASSERT_MSG( IsValid() && dt.IsValid(), _T("invalid wxDateTime") );
|
||||
wxASSERT_MSG( IsValid() && dt.IsValid(), wxT("invalid wxDateTime") );
|
||||
return GetValue() >= dt.GetValue();
|
||||
}
|
||||
|
||||
inline bool operator==(const wxDateTime& dt) const
|
||||
{
|
||||
wxASSERT_MSG( IsValid() && dt.IsValid(), _T("invalid wxDateTime") );
|
||||
wxASSERT_MSG( IsValid() && dt.IsValid(), wxT("invalid wxDateTime") );
|
||||
return GetValue() == dt.GetValue();
|
||||
}
|
||||
|
||||
inline bool operator!=(const wxDateTime& dt) const
|
||||
{
|
||||
wxASSERT_MSG( IsValid() && dt.IsValid(), _T("invalid wxDateTime") );
|
||||
wxASSERT_MSG( IsValid() && dt.IsValid(), wxT("invalid wxDateTime") );
|
||||
return GetValue() != dt.GetValue();
|
||||
}
|
||||
|
||||
@@ -1075,15 +1075,15 @@ public:
|
||||
wxString Format(const wxChar *format = wxDefaultDateTimeFormat,
|
||||
const TimeZone& tz = Local) const;
|
||||
// preferred date representation for the current locale
|
||||
wxString FormatDate() const { return Format(_T("%x")); }
|
||||
wxString FormatDate() const { return Format(wxT("%x")); }
|
||||
// preferred time representation for the current locale
|
||||
wxString FormatTime() const { return Format(_T("%X")); }
|
||||
wxString FormatTime() const { return Format(wxT("%X")); }
|
||||
// returns the string representing the date in ISO 8601 format
|
||||
// (YYYY-MM-DD)
|
||||
wxString FormatISODate() const { return Format(_T("%Y-%m-%d")); }
|
||||
wxString FormatISODate() const { return Format(wxT("%Y-%m-%d")); }
|
||||
// returns the string representing the time in ISO 8601 format
|
||||
// (HH:MM:SS)
|
||||
wxString FormatISOTime() const { return Format(_T("%H:%M:%S")); }
|
||||
wxString FormatISOTime() const { return Format(wxT("%H:%M:%S")); }
|
||||
|
||||
// implementation
|
||||
// ------------------------------------------------------------------------
|
||||
@@ -1647,7 +1647,7 @@ inline wxDateTime::wxDateTime(double jdn)
|
||||
|
||||
inline wxDateTime& wxDateTime::Set(const Tm& tm)
|
||||
{
|
||||
wxASSERT_MSG( tm.IsValid(), _T("invalid broken down date/time") );
|
||||
wxASSERT_MSG( tm.IsValid(), wxT("invalid broken down date/time") );
|
||||
|
||||
return Set(tm.mday, (Month)tm.mon, tm.year,
|
||||
tm.hour, tm.min, tm.sec, tm.msec);
|
||||
@@ -1678,14 +1678,14 @@ inline wxDateTime::wxDateTime(wxDateTime_t day,
|
||||
|
||||
inline wxLongLong wxDateTime::GetValue() const
|
||||
{
|
||||
wxASSERT_MSG( IsValid(), _T("invalid wxDateTime"));
|
||||
wxASSERT_MSG( IsValid(), wxT("invalid wxDateTime"));
|
||||
|
||||
return m_time;
|
||||
}
|
||||
|
||||
inline time_t wxDateTime::GetTicks() const
|
||||
{
|
||||
wxASSERT_MSG( IsValid(), _T("invalid wxDateTime"));
|
||||
wxASSERT_MSG( IsValid(), wxT("invalid wxDateTime"));
|
||||
if ( !IsInStdRange() )
|
||||
{
|
||||
return (time_t)-1;
|
||||
@@ -1753,21 +1753,21 @@ inline wxDateTime wxDateTime::GetYearDay(wxDateTime_t yday) const
|
||||
|
||||
inline bool wxDateTime::IsEqualTo(const wxDateTime& datetime) const
|
||||
{
|
||||
wxASSERT_MSG( IsValid() && datetime.IsValid(), _T("invalid wxDateTime"));
|
||||
wxASSERT_MSG( IsValid() && datetime.IsValid(), wxT("invalid wxDateTime"));
|
||||
|
||||
return m_time == datetime.m_time;
|
||||
}
|
||||
|
||||
inline bool wxDateTime::IsEarlierThan(const wxDateTime& datetime) const
|
||||
{
|
||||
wxASSERT_MSG( IsValid() && datetime.IsValid(), _T("invalid wxDateTime"));
|
||||
wxASSERT_MSG( IsValid() && datetime.IsValid(), wxT("invalid wxDateTime"));
|
||||
|
||||
return m_time < datetime.m_time;
|
||||
}
|
||||
|
||||
inline bool wxDateTime::IsLaterThan(const wxDateTime& datetime) const
|
||||
{
|
||||
wxASSERT_MSG( IsValid() && datetime.IsValid(), _T("invalid wxDateTime"));
|
||||
wxASSERT_MSG( IsValid() && datetime.IsValid(), wxT("invalid wxDateTime"));
|
||||
|
||||
return m_time > datetime.m_time;
|
||||
}
|
||||
@@ -1824,14 +1824,14 @@ inline bool wxDateTime::IsEqualUpTo(const wxDateTime& dt,
|
||||
|
||||
inline wxDateTime wxDateTime::Add(const wxTimeSpan& diff) const
|
||||
{
|
||||
wxASSERT_MSG( IsValid(), _T("invalid wxDateTime"));
|
||||
wxASSERT_MSG( IsValid(), wxT("invalid wxDateTime"));
|
||||
|
||||
return wxDateTime(m_time + diff.GetValue());
|
||||
}
|
||||
|
||||
inline wxDateTime& wxDateTime::Add(const wxTimeSpan& diff)
|
||||
{
|
||||
wxASSERT_MSG( IsValid(), _T("invalid wxDateTime"));
|
||||
wxASSERT_MSG( IsValid(), wxT("invalid wxDateTime"));
|
||||
|
||||
m_time += diff.GetValue();
|
||||
|
||||
@@ -1845,14 +1845,14 @@ inline wxDateTime& wxDateTime::operator+=(const wxTimeSpan& diff)
|
||||
|
||||
inline wxDateTime wxDateTime::Subtract(const wxTimeSpan& diff) const
|
||||
{
|
||||
wxASSERT_MSG( IsValid(), _T("invalid wxDateTime"));
|
||||
wxASSERT_MSG( IsValid(), wxT("invalid wxDateTime"));
|
||||
|
||||
return wxDateTime(m_time - diff.GetValue());
|
||||
}
|
||||
|
||||
inline wxDateTime& wxDateTime::Subtract(const wxTimeSpan& diff)
|
||||
{
|
||||
wxASSERT_MSG( IsValid(), _T("invalid wxDateTime"));
|
||||
wxASSERT_MSG( IsValid(), wxT("invalid wxDateTime"));
|
||||
|
||||
m_time -= diff.GetValue();
|
||||
|
||||
@@ -1866,7 +1866,7 @@ inline wxDateTime& wxDateTime::operator-=(const wxTimeSpan& diff)
|
||||
|
||||
inline wxTimeSpan wxDateTime::Subtract(const wxDateTime& datetime) const
|
||||
{
|
||||
wxASSERT_MSG( IsValid() && datetime.IsValid(), _T("invalid wxDateTime"));
|
||||
wxASSERT_MSG( IsValid() && datetime.IsValid(), wxT("invalid wxDateTime"));
|
||||
|
||||
return wxTimeSpan(GetValue() - datetime.GetValue());
|
||||
}
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include "wx/grid.h"
|
||||
#include "wx/dbkeyg.h"
|
||||
|
||||
#define wxGRID_VALUE_DBAUTO _T("dbauto")
|
||||
#define wxGRID_VALUE_DBAUTO wxT("dbauto")
|
||||
|
||||
WX_DECLARE_USER_EXPORTED_OBJARRAY(GenericKey,keyarray,WXDLLIMPEXP_DBGRID);
|
||||
|
||||
@@ -119,12 +119,12 @@ public:
|
||||
|
||||
virtual int GetNumberRows()
|
||||
{
|
||||
wxLogDebug(_T(" GetNumberRows() = %i"),m_rowtotal);
|
||||
wxLogDebug(wxT(" GetNumberRows() = %i"),m_rowtotal);
|
||||
return m_rowtotal;
|
||||
}
|
||||
virtual int GetNumberCols()
|
||||
{
|
||||
wxLogDebug(_T(" GetNumberCols() = %i"),m_nocols);
|
||||
wxLogDebug(wxT(" GetNumberCols() = %i"),m_nocols);
|
||||
return m_nocols;
|
||||
}
|
||||
virtual bool IsEmptyCell(int row, int col) ;
|
||||
|
@@ -305,7 +305,7 @@ public:
|
||||
HSTMT *NewCursor(bool setCursor = false, bool bindColumns = true) { return GetNewCursor(setCursor,bindColumns); }
|
||||
#endif
|
||||
|
||||
ULONG Count(const wxString &args=_T("*"));
|
||||
ULONG Count(const wxString &args=wxT("*"));
|
||||
int DB_STATUS(void) { return(pDb->DB_STATUS); }
|
||||
|
||||
bool IsColNull(UWORD colNumber) const;
|
||||
|
@@ -100,8 +100,8 @@ public:
|
||||
// blitting to) is destroyed.
|
||||
void UnMask()
|
||||
{
|
||||
wxCHECK_RET( m_dc, _T("no underlying wxDC?") );
|
||||
wxASSERT_MSG( m_buffer && m_buffer->IsOk(), _T("invalid backing store") );
|
||||
wxCHECK_RET( m_dc, wxT("no underlying wxDC?") );
|
||||
wxASSERT_MSG( m_buffer && m_buffer->IsOk(), wxT("invalid backing store") );
|
||||
|
||||
wxCoord x = 0,
|
||||
y = 0;
|
||||
@@ -122,7 +122,7 @@ private:
|
||||
// common part of Init()s
|
||||
void InitCommon(wxDC *dc, int style)
|
||||
{
|
||||
wxASSERT_MSG( !m_dc, _T("wxBufferedDC already initialised") );
|
||||
wxASSERT_MSG( !m_dc, wxT("wxBufferedDC already initialised") );
|
||||
|
||||
m_dc = dc;
|
||||
m_style = style;
|
||||
|
@@ -135,7 +135,7 @@ protected:
|
||||
wxCoord x2, wxCoord y2,
|
||||
wxCoord xc, wxCoord yc)
|
||||
{
|
||||
wxFAIL_MSG( _T("this is probably wrong") );
|
||||
wxFAIL_MSG( wxT("this is probably wrong") );
|
||||
|
||||
m_dc.DoDrawArc(GetX(x1, y1), GetY(x1, y1),
|
||||
GetX(x2, y2), GetY(x2, y2),
|
||||
@@ -152,7 +152,7 @@ protected:
|
||||
virtual void DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
|
||||
double sa, double ea)
|
||||
{
|
||||
wxFAIL_MSG( _T("this is probably wrong") );
|
||||
wxFAIL_MSG( wxT("this is probably wrong") );
|
||||
|
||||
m_dc.DoDrawEllipticArc(GetX(x, y), GetY(x, y),
|
||||
GetX(w, h), GetY(w, h),
|
||||
@@ -256,7 +256,7 @@ protected:
|
||||
|
||||
virtual void DoSetClippingRegionAsRegion(const wxRegion& WXUNUSED(region))
|
||||
{
|
||||
wxFAIL_MSG( _T("not implemented") );
|
||||
wxFAIL_MSG( wxT("not implemented") );
|
||||
}
|
||||
|
||||
virtual void DoSetClippingRegion(wxCoord x, wxCoord y,
|
||||
|
@@ -123,13 +123,13 @@
|
||||
if ( cond ) \
|
||||
{} \
|
||||
else \
|
||||
wxOnAssert(__TFILE__, __LINE__, __WXFUNCTION__, _T(#cond), msg)
|
||||
wxOnAssert(__TFILE__, __LINE__, __WXFUNCTION__, wxT(#cond), msg)
|
||||
#else
|
||||
#define wxASSERT_MSG(cond, msg) \
|
||||
if ( cond ) \
|
||||
; \
|
||||
else \
|
||||
wxOnAssert(__TFILE__, __LINE__, __WXFUNCTION__, _T(#cond), msg)
|
||||
wxOnAssert(__TFILE__, __LINE__, __WXFUNCTION__, wxT(#cond), msg)
|
||||
#endif
|
||||
|
||||
/* special form of assert: always triggers it (in debug mode) */
|
||||
@@ -140,7 +140,7 @@
|
||||
|
||||
/* FAIL with some message and a condition */
|
||||
#define wxFAIL_COND_MSG(cond, msg) \
|
||||
wxOnAssert(__TFILE__, __LINE__, __WXFUNCTION__, _T(cond), msg)
|
||||
wxOnAssert(__TFILE__, __LINE__, __WXFUNCTION__, wxT(cond), msg)
|
||||
|
||||
/* An assert helper used to avoid warning when testing constant expressions, */
|
||||
/* i.e. wxASSERT( sizeof(int) == 4 ) can generate a compiler warning about */
|
||||
|
@@ -161,7 +161,7 @@ public:
|
||||
wxDebugReportUpload(const wxString& url,
|
||||
const wxString& input,
|
||||
const wxString& action,
|
||||
const wxString& curl = _T("curl"));
|
||||
const wxString& curl = wxT("curl"));
|
||||
|
||||
protected:
|
||||
virtual bool DoProcess();
|
||||
|
@@ -915,28 +915,28 @@ inline void *wxUIntToPtr(wxUIntPtr p)
|
||||
#if (defined(__VISUALC__) && defined(__WIN32__))
|
||||
#define wxLongLong_t __int64
|
||||
#define wxLongLongSuffix i64
|
||||
#define wxLongLongFmtSpec _T("I64")
|
||||
#define wxLongLongFmtSpec wxT("I64")
|
||||
#elif defined(__BORLANDC__) && defined(__WIN32__) && (__BORLANDC__ >= 0x520)
|
||||
#define wxLongLong_t __int64
|
||||
#define wxLongLongSuffix i64
|
||||
#define wxLongLongFmtSpec _T("L")
|
||||
#define wxLongLongFmtSpec wxT("L")
|
||||
#elif (defined(__WATCOMC__) && (defined(__WIN32__) || defined(__DOS__) || defined(__OS2__)))
|
||||
#define wxLongLong_t __int64
|
||||
#define wxLongLongSuffix i64
|
||||
#define wxLongLongFmtSpec _T("L")
|
||||
#define wxLongLongFmtSpec wxT("L")
|
||||
#elif defined(__DIGITALMARS__)
|
||||
#define wxLongLong_t __int64
|
||||
#define wxLongLongSuffix LL
|
||||
#define wxLongLongFmtSpec _T("ll")
|
||||
#define wxLongLongFmtSpec wxT("ll")
|
||||
#elif defined(__MINGW32__)
|
||||
#define wxLongLong_t long long
|
||||
#define wxLongLongSuffix ll
|
||||
#define wxLongLongFmtSpec _T("I64")
|
||||
#define wxLongLongFmtSpec wxT("I64")
|
||||
#elif defined(__MWERKS__)
|
||||
#if __option(longlong)
|
||||
#define wxLongLong_t long long
|
||||
#define wxLongLongSuffix ll
|
||||
#define wxLongLongFmtSpec _T("ll")
|
||||
#define wxLongLongFmtSpec wxT("ll")
|
||||
#else
|
||||
#error "The 64 bit integer support in CodeWarrior has been disabled."
|
||||
#error "See the documentation on the 'longlong' pragma."
|
||||
@@ -944,7 +944,7 @@ inline void *wxUIntToPtr(wxUIntPtr p)
|
||||
#elif defined(__WXPALMOS__)
|
||||
#define wxLongLong_t int64_t
|
||||
#define wxLongLongSuffix ll
|
||||
#define wxLongLongFmtSpec _T("ll")
|
||||
#define wxLongLongFmtSpec wxT("ll")
|
||||
#elif defined(__VISAGECPP__) && __IBMCPP__ >= 400
|
||||
#define wxLongLong_t long long
|
||||
#elif (defined(SIZEOF_LONG_LONG) && SIZEOF_LONG_LONG >= 8) || \
|
||||
@@ -954,11 +954,11 @@ inline void *wxUIntToPtr(wxUIntPtr p)
|
||||
(defined(__DJGPP__) && __DJGPP__ >= 2)
|
||||
#define wxLongLong_t long long
|
||||
#define wxLongLongSuffix ll
|
||||
#define wxLongLongFmtSpec _T("ll")
|
||||
#define wxLongLongFmtSpec wxT("ll")
|
||||
#elif defined(SIZEOF_LONG) && (SIZEOF_LONG == 8)
|
||||
#define wxLongLong_t long
|
||||
#define wxLongLongSuffix l
|
||||
#define wxLongLongFmtSpec _T("l")
|
||||
#define wxLongLongFmtSpec wxT("l")
|
||||
#define wxLongLongIsLong
|
||||
#endif
|
||||
|
||||
@@ -2445,9 +2445,9 @@ typedef void* WXDisplay;
|
||||
* since they are unlikely to be needed in a public header.
|
||||
*/
|
||||
#if defined(__LP64__) && __LP64__
|
||||
typedef double CGFloat;
|
||||
typedef double CGFloat;
|
||||
#else
|
||||
typedef float CGFloat;
|
||||
typedef float CGFloat;
|
||||
#endif
|
||||
|
||||
#if (defined(__LP64__) && __LP64__) || (defined(NS_BUILD_32_LIKE_64) && NS_BUILD_32_LIKE_64)
|
||||
|
@@ -116,7 +116,7 @@ enum wxPluginCategory
|
||||
// type only once, as the first parameter, and creating a variable of this type
|
||||
// called "pfn<name>" initialized with the "name" from the "dynlib"
|
||||
#define wxDYNLIB_FUNCTION(type, name, dynlib) \
|
||||
type pfn ## name = (type)(dynlib).GetSymbol(_T(#name))
|
||||
type pfn ## name = (type)(dynlib).GetSymbol(wxT(#name))
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxDynamicLibraryDetails: contains details about a loaded wxDynamicLibrary
|
||||
|
@@ -71,7 +71,7 @@ public:
|
||||
void RefObj() { ++m_objcount; }
|
||||
void UnrefObj()
|
||||
{
|
||||
wxASSERT_MSG( m_objcount > 0, _T("Too many objects deleted??") );
|
||||
wxASSERT_MSG( m_objcount > 0, wxT("Too many objects deleted??") );
|
||||
--m_objcount;
|
||||
}
|
||||
|
||||
|
@@ -451,7 +451,7 @@ public:
|
||||
wxPropagateOnce(wxEvent& event) : m_event(event)
|
||||
{
|
||||
wxASSERT_MSG( m_event.m_propagationLevel > 0,
|
||||
_T("shouldn't be used unless ShouldPropagate()!") );
|
||||
wxT("shouldn't be used unless ShouldPropagate()!") );
|
||||
|
||||
m_event.m_propagationLevel--;
|
||||
}
|
||||
@@ -1398,7 +1398,7 @@ public:
|
||||
// m_loggingOff flag is only used by wxEVT_[QUERY_]END_SESSION, it
|
||||
// doesn't make sense for wxEVT_CLOSE_WINDOW
|
||||
wxASSERT_MSG( m_eventType != wxEVT_CLOSE_WINDOW,
|
||||
_T("this flag is for end session events only") );
|
||||
wxT("this flag is for end session events only") );
|
||||
|
||||
return m_loggingOff;
|
||||
}
|
||||
|
@@ -37,13 +37,13 @@ public:
|
||||
// def ctor
|
||||
wxFFile() { m_fp = NULL; }
|
||||
// open specified file (may fail, use IsOpened())
|
||||
wxFFile(const wxChar *filename, const wxChar *mode = _T("r"));
|
||||
wxFFile(const wxChar *filename, const wxChar *mode = wxT("r"));
|
||||
// attach to (already opened) file
|
||||
wxFFile(FILE *lfp) { m_fp = lfp; }
|
||||
|
||||
// open/close
|
||||
// open a file (existing or not - the mode controls what happens)
|
||||
bool Open(const wxChar *filename, const wxChar *mode = _T("r"));
|
||||
bool Open(const wxChar *filename, const wxChar *mode = wxT("r"));
|
||||
// closes the opened file (this is a NOP if not opened)
|
||||
bool Close();
|
||||
|
||||
|
@@ -406,7 +406,7 @@ enum wxFileKind
|
||||
#define wxHAS_LARGE_FFILES
|
||||
#endif
|
||||
#else
|
||||
#define wxFileOffsetFmtSpec _T("")
|
||||
#define wxFileOffsetFmtSpec wxT("")
|
||||
#endif
|
||||
// functions
|
||||
#define wxClose close
|
||||
|
@@ -494,10 +494,10 @@ public:
|
||||
static wxULongLong GetSize(const wxString &file);
|
||||
|
||||
// returns the size in a human readable form
|
||||
wxString GetHumanReadableSize(const wxString &nullsize = wxGetTranslation(_T("Not available")),
|
||||
wxString GetHumanReadableSize(const wxString &nullsize = wxGetTranslation(wxT("Not available")),
|
||||
int precision = 1) const;
|
||||
static wxString GetHumanReadableSize(const wxULongLong &sz,
|
||||
const wxString &nullsize = wxGetTranslation(_T("Not available")),
|
||||
const wxString &nullsize = wxGetTranslation(wxT("Not available")),
|
||||
int precision = 1);
|
||||
|
||||
|
||||
|
@@ -19,7 +19,7 @@ class WXDLLIMPEXP_FWD_CORE wxComboBox;
|
||||
class WXDLLIMPEXP_FWD_CORE wxStaticText;
|
||||
class WXDLLIMPEXP_FWD_CORE wxSpinCtrl;
|
||||
|
||||
#define wxCalendarNameStr _T("CalendarCtrl")
|
||||
#define wxCalendarNameStr wxT("CalendarCtrl")
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxCalendarCtrl: a control allowing the user to pick a date interactively
|
||||
@@ -124,14 +124,14 @@ public:
|
||||
|
||||
wxCalendarDateAttr *GetAttr(size_t day) const
|
||||
{
|
||||
wxCHECK_MSG( day > 0 && day < 32, NULL, _T("invalid day") );
|
||||
wxCHECK_MSG( day > 0 && day < 32, NULL, wxT("invalid day") );
|
||||
|
||||
return m_attrs[day - 1];
|
||||
}
|
||||
|
||||
void SetAttr(size_t day, wxCalendarDateAttr *attr)
|
||||
{
|
||||
wxCHECK_RET( day > 0 && day < 32, _T("invalid day") );
|
||||
wxCHECK_RET( day > 0 && day < 32, wxT("invalid day") );
|
||||
|
||||
delete m_attrs[day - 1];
|
||||
m_attrs[day - 1] = attr;
|
||||
|
@@ -26,8 +26,8 @@
|
||||
// all actions of single line text controls are supported
|
||||
|
||||
// popup/dismiss the choice window
|
||||
#define wxACTION_COMBOBOX_POPUP _T("popup")
|
||||
#define wxACTION_COMBOBOX_DISMISS _T("dismiss")
|
||||
#define wxACTION_COMBOBOX_POPUP wxT("popup")
|
||||
#define wxACTION_COMBOBOX_DISMISS wxT("dismiss")
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -42,11 +42,11 @@ extern WXDLLIMPEXP_DATA_ADV(const wxChar) wxGridNameStr[];
|
||||
#define WXGRID_DEFAULT_SCROLLBAR_WIDTH 16
|
||||
|
||||
// type names for grid table values
|
||||
#define wxGRID_VALUE_STRING _T("string")
|
||||
#define wxGRID_VALUE_BOOL _T("bool")
|
||||
#define wxGRID_VALUE_NUMBER _T("long")
|
||||
#define wxGRID_VALUE_FLOAT _T("double")
|
||||
#define wxGRID_VALUE_CHOICE _T("choice")
|
||||
#define wxGRID_VALUE_STRING wxT("string")
|
||||
#define wxGRID_VALUE_BOOL wxT("bool")
|
||||
#define wxGRID_VALUE_NUMBER wxT("long")
|
||||
#define wxGRID_VALUE_FLOAT wxT("double")
|
||||
#define wxGRID_VALUE_CHOICE wxT("choice")
|
||||
|
||||
#define wxGRID_VALUE_TEXT wxGRID_VALUE_STRING
|
||||
#define wxGRID_VALUE_LONG wxGRID_VALUE_NUMBER
|
||||
@@ -472,7 +472,7 @@ protected:
|
||||
|
||||
// string representation of m_valueOld
|
||||
wxString GetString() const
|
||||
{ return wxString::Format(_T("%ld"), m_valueOld); }
|
||||
{ return wxString::Format(wxT("%ld"), m_valueOld); }
|
||||
|
||||
private:
|
||||
int m_min,
|
||||
@@ -552,7 +552,7 @@ public:
|
||||
|
||||
// set the string values returned by GetValue() for the true and false
|
||||
// states, respectively
|
||||
static void UseStringValues(const wxString& valueTrue = _T("1"),
|
||||
static void UseStringValues(const wxString& valueTrue = wxT("1"),
|
||||
const wxString& valueFalse = wxEmptyString);
|
||||
|
||||
// return true if the given string is equal to the string representation of
|
||||
|
@@ -16,8 +16,8 @@
|
||||
|
||||
#if wxUSE_GRID
|
||||
|
||||
#define wxGRID_VALUE_CHOICEINT _T("choiceint")
|
||||
#define wxGRID_VALUE_DATETIME _T("datetime")
|
||||
#define wxGRID_VALUE_CHOICEINT wxT("choiceint")
|
||||
#define wxGRID_VALUE_DATETIME wxT("datetime")
|
||||
|
||||
#if wxUSE_DATETIME
|
||||
|
||||
|
@@ -41,7 +41,7 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxSP_ARROW_KEYS,
|
||||
int min = 0, int max = 100, int initial = 0,
|
||||
const wxString& name = _T("wxSpinCtrl"))
|
||||
const wxString& name = wxT("wxSpinCtrl"))
|
||||
{
|
||||
Init();
|
||||
Create(parent, id, value, pos, size, style, min, max, initial, name);
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxSP_ARROW_KEYS,
|
||||
int min = 0, int max = 100, int initial = 0,
|
||||
const wxString& name = _T("wxSpinCtrl"));
|
||||
const wxString& name = wxT("wxSpinCtrl"));
|
||||
|
||||
virtual ~wxSpinCtrl();
|
||||
|
||||
@@ -125,7 +125,7 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxSP_ARROW_KEYS,
|
||||
int min = 0, int max = 100, int initial = 0,
|
||||
const wxString& name = _T("wxSpinCtrl"))
|
||||
const wxString& name = wxT("wxSpinCtrl"))
|
||||
{
|
||||
Create(parent, id, value, pos, size, style, min, max, initial, name);
|
||||
}
|
||||
@@ -137,7 +137,7 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxSP_ARROW_KEYS,
|
||||
int min = 0, int max = 100, int initial = 0,
|
||||
const wxString& name = _T("wxSpinCtrl"))
|
||||
const wxString& name = wxT("wxSpinCtrl"))
|
||||
{
|
||||
SetRange(min, max);
|
||||
|
||||
|
@@ -91,7 +91,7 @@ public:
|
||||
void SetSplitMode(int mode)
|
||||
{
|
||||
wxASSERT_MSG( mode == wxSPLIT_VERTICAL || mode == wxSPLIT_HORIZONTAL,
|
||||
_T("invalid split mode") );
|
||||
wxT("invalid split mode") );
|
||||
|
||||
m_splitMode = (wxSplitMode)mode;
|
||||
}
|
||||
|
@@ -44,7 +44,7 @@ enum
|
||||
WX_GL_MIN_ACCUM_ALPHA /* use alpha buffer with most bits (> MIN_ACCUM_ALPHA bits) */
|
||||
};
|
||||
|
||||
#define wxGLCanvasName _T("GLCanvas")
|
||||
#define wxGLCanvasName wxT("GLCanvas")
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
#include "wx/msw/glcanvas.h"
|
||||
|
@@ -18,10 +18,10 @@
|
||||
// there is no "right" choice of the checkbox indicators, so allow the user to
|
||||
// define them himself if he wants
|
||||
#ifndef wxCHECKLBOX_CHECKED
|
||||
#define wxCHECKLBOX_CHECKED _T('x')
|
||||
#define wxCHECKLBOX_UNCHECKED _T(' ')
|
||||
#define wxCHECKLBOX_CHECKED wxT('x')
|
||||
#define wxCHECKLBOX_UNCHECKED wxT(' ')
|
||||
|
||||
#define wxCHECKLBOX_STRING _T("[ ] ")
|
||||
#define wxCHECKLBOX_STRING wxT("[ ] ")
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -26,7 +26,7 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxSP_ARROW_KEYS,
|
||||
int min = 0, int max = 100, int initial = 0,
|
||||
const wxString& name = _T("wxSpinCtrl"))
|
||||
const wxString& name = wxT("wxSpinCtrl"))
|
||||
{
|
||||
Create(parent, id, value, pos, size, style, min, max, initial, name);
|
||||
}
|
||||
@@ -38,7 +38,7 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxSP_ARROW_KEYS,
|
||||
int min = 0, int max = 100, int initial = 0,
|
||||
const wxString& name = _T("wxSpinCtrl"));
|
||||
const wxString& name = wxT("wxSpinCtrl"));
|
||||
|
||||
void SetValue(const wxString& text);
|
||||
void SetSelection(long from, long to);
|
||||
|
@@ -18,10 +18,10 @@
|
||||
// there is no "right" choice of the checkbox indicators, so allow the user to
|
||||
// define them himself if he wants
|
||||
#ifndef wxCHECKLBOX_CHECKED
|
||||
#define wxCHECKLBOX_CHECKED _T('x')
|
||||
#define wxCHECKLBOX_UNCHECKED _T(' ')
|
||||
#define wxCHECKLBOX_CHECKED wxT('x')
|
||||
#define wxCHECKLBOX_UNCHECKED wxT(' ')
|
||||
|
||||
#define wxCHECKLBOX_STRING _T("[ ] ")
|
||||
#define wxCHECKLBOX_STRING wxT("[ ] ")
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -32,7 +32,7 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxSP_ARROW_KEYS,
|
||||
int min = 0, int max = 100, int initial = 0,
|
||||
const wxString& name = _T("wxSpinCtrl"))
|
||||
const wxString& name = wxT("wxSpinCtrl"))
|
||||
{
|
||||
Create(parent, id, value, pos, size, style, min, max, initial, name);
|
||||
}
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxSP_ARROW_KEYS,
|
||||
int min = 0, int max = 100, int initial = 0,
|
||||
const wxString& name = _T("wxSpinCtrl"));
|
||||
const wxString& name = wxT("wxSpinCtrl"));
|
||||
|
||||
void SetValue(const wxString& text);
|
||||
void SetSelection(long from, long to);
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
// defines for saving the BMP file in different formats, Bits Per Pixel
|
||||
// USE: wximage.SetOption( wxIMAGE_OPTION_BMP_FORMAT, wxBMP_xBPP );
|
||||
#define wxIMAGE_OPTION_BMP_FORMAT wxString(_T("wxBMP_FORMAT"))
|
||||
#define wxIMAGE_OPTION_BMP_FORMAT wxString(wxT("wxBMP_FORMAT"))
|
||||
|
||||
// These two options are filled in upon reading CUR file and can (should) be
|
||||
// specified when saving a CUR file - they define the hotspot of the cursor:
|
||||
@@ -52,10 +52,10 @@ class WXDLLEXPORT wxBMPHandler : public wxImageHandler
|
||||
public:
|
||||
wxBMPHandler()
|
||||
{
|
||||
m_name = _T("Windows bitmap file");
|
||||
m_extension = _T("bmp");
|
||||
m_name = wxT("Windows bitmap file");
|
||||
m_extension = wxT("bmp");
|
||||
m_type = wxBITMAP_TYPE_BMP;
|
||||
m_mime = _T("image/x-bmp");
|
||||
m_mime = wxT("image/x-bmp");
|
||||
}
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
@@ -86,10 +86,10 @@ class WXDLLEXPORT wxICOHandler : public wxBMPHandler
|
||||
public:
|
||||
wxICOHandler()
|
||||
{
|
||||
m_name = _T("Windows icon file");
|
||||
m_extension = _T("ico");
|
||||
m_name = wxT("Windows icon file");
|
||||
m_extension = wxT("ico");
|
||||
m_type = wxBITMAP_TYPE_ICO;
|
||||
m_mime = _T("image/x-ico");
|
||||
m_mime = wxT("image/x-ico");
|
||||
}
|
||||
|
||||
#if wxUSE_STREAMS
|
||||
@@ -115,10 +115,10 @@ class WXDLLEXPORT wxCURHandler : public wxICOHandler
|
||||
public:
|
||||
wxCURHandler()
|
||||
{
|
||||
m_name = _T("Windows cursor file");
|
||||
m_extension = _T("cur");
|
||||
m_name = wxT("Windows cursor file");
|
||||
m_extension = wxT("cur");
|
||||
m_type = wxBITMAP_TYPE_CUR;
|
||||
m_mime = _T("image/x-cur");
|
||||
m_mime = wxT("image/x-cur");
|
||||
}
|
||||
|
||||
// VS: This handler's meat is implemented inside wxICOHandler (the two
|
||||
@@ -142,10 +142,10 @@ class WXDLLEXPORT wxANIHandler : public wxCURHandler
|
||||
public:
|
||||
wxANIHandler()
|
||||
{
|
||||
m_name = _T("Windows animated cursor file");
|
||||
m_extension = _T("ani");
|
||||
m_name = wxT("Windows animated cursor file");
|
||||
m_extension = wxT("ani");
|
||||
m_type = wxBITMAP_TYPE_ANI;
|
||||
m_mime = _T("image/x-ani");
|
||||
m_mime = wxT("image/x-ani");
|
||||
}
|
||||
|
||||
|
||||
|
@@ -27,14 +27,14 @@
|
||||
// which breaks the compilation below
|
||||
#undef index
|
||||
|
||||
#define wxIMAGE_OPTION_QUALITY wxString(_T("quality"))
|
||||
#define wxIMAGE_OPTION_FILENAME wxString(_T("FileName"))
|
||||
#define wxIMAGE_OPTION_QUALITY wxString(wxT("quality"))
|
||||
#define wxIMAGE_OPTION_FILENAME wxString(wxT("FileName"))
|
||||
|
||||
#define wxIMAGE_OPTION_RESOLUTION wxString(_T("Resolution"))
|
||||
#define wxIMAGE_OPTION_RESOLUTIONX wxString(_T("ResolutionX"))
|
||||
#define wxIMAGE_OPTION_RESOLUTIONY wxString(_T("ResolutionY"))
|
||||
#define wxIMAGE_OPTION_RESOLUTION wxString(wxT("Resolution"))
|
||||
#define wxIMAGE_OPTION_RESOLUTIONX wxString(wxT("ResolutionX"))
|
||||
#define wxIMAGE_OPTION_RESOLUTIONY wxString(wxT("ResolutionY"))
|
||||
|
||||
#define wxIMAGE_OPTION_RESOLUTIONUNIT wxString(_T("ResolutionUnit"))
|
||||
#define wxIMAGE_OPTION_RESOLUTIONUNIT wxString(wxT("ResolutionUnit"))
|
||||
|
||||
// constants used with wxIMAGE_OPTION_RESOLUTIONUNIT
|
||||
enum
|
||||
|
@@ -21,10 +21,10 @@
|
||||
#include "wx/image.h"
|
||||
|
||||
// defines for wxImage::SetOption
|
||||
#define wxIMAGE_OPTION_BITSPERSAMPLE wxString(_T("BitsPerSample"))
|
||||
#define wxIMAGE_OPTION_SAMPLESPERPIXEL wxString(_T("SamplesPerPixel"))
|
||||
#define wxIMAGE_OPTION_COMPRESSION wxString(_T("Compression"))
|
||||
#define wxIMAGE_OPTION_IMAGEDESCRIPTOR wxString(_T("ImageDescriptor"))
|
||||
#define wxIMAGE_OPTION_BITSPERSAMPLE wxString(wxT("BitsPerSample"))
|
||||
#define wxIMAGE_OPTION_SAMPLESPERPIXEL wxString(wxT("SamplesPerPixel"))
|
||||
#define wxIMAGE_OPTION_COMPRESSION wxString(wxT("Compression"))
|
||||
#define wxIMAGE_OPTION_IMAGEDESCRIPTOR wxString(wxT("ImageDescriptor"))
|
||||
|
||||
class WXDLLEXPORT wxTIFFHandler: public wxImageHandler
|
||||
{
|
||||
|
@@ -45,13 +45,13 @@ enum wxLayoutDirection
|
||||
// --keyword="_" --keyword="wxPLURAL:1,2" options
|
||||
// to extract the strings from the sources)
|
||||
#ifndef WXINTL_NO_GETTEXT_MACRO
|
||||
#define _(s) wxGetTranslation(_T(s))
|
||||
#define wxPLURAL(sing, plur, n) wxGetTranslation(_T(sing), _T(plur), n)
|
||||
#define _(s) wxGetTranslation(wxT(s))
|
||||
#define wxPLURAL(sing, plur, n) wxGetTranslation(wxT(sing), wxT(plur), n)
|
||||
#endif
|
||||
|
||||
// another one which just marks the strings for extraction, but doesn't
|
||||
// perform the translation (use -kwxTRANSLATE with xgettext!)
|
||||
#define wxTRANSLATE(str) _T(str)
|
||||
#define wxTRANSLATE(str) wxT(str)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// forward decls
|
||||
@@ -603,12 +603,12 @@ wxGetTranslation(const wxChar *sz1, const wxChar *sz2,
|
||||
|
||||
#if !defined(WXINTL_NO_GETTEXT_MACRO)
|
||||
#if !defined(_)
|
||||
#define _(s) (_T(s))
|
||||
#define _(s) (wxT(s))
|
||||
#endif
|
||||
#define wxPLURAL(sing, plur, n) ((n) == 1 ? _T(sing) : _T(plur))
|
||||
#define wxPLURAL(sing, plur, n) ((n) == 1 ? wxT(sing) : wxT(plur))
|
||||
#endif
|
||||
|
||||
#define wxTRANSLATE(str) _T(str)
|
||||
#define wxTRANSLATE(str) wxT(str)
|
||||
|
||||
inline const wxChar *
|
||||
wxGetTranslation(const wxChar *sz, const wxChar * WXUNUSED(domain) = NULL)
|
||||
@@ -622,10 +622,10 @@ wxGetTranslation(const wxChar *sz, const wxChar * WXUNUSED(domain) = NULL)
|
||||
// wxTRANSLATE) too
|
||||
#if !defined(WXINTL_NO_GETTEXT_MACRO)
|
||||
#if !defined(gettext_noop)
|
||||
#define gettext_noop(str) _T(str)
|
||||
#define gettext_noop(str) wxT(str)
|
||||
#endif
|
||||
#if !defined(N_)
|
||||
#define N_(s) _T(s)
|
||||
#define N_(s) wxT(s)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@@ -207,7 +207,7 @@ private:
|
||||
bool operator==(const compatibility_iterator& i) const \
|
||||
{ \
|
||||
wxASSERT_MSG( m_list && i.m_list, \
|
||||
_T("comparing invalid iterators is illegal") ); \
|
||||
wxT("comparing invalid iterators is illegal") ); \
|
||||
return (m_list == i.m_list) && (m_iter == i.m_iter); \
|
||||
} \
|
||||
bool operator!=(const compatibility_iterator& i) const \
|
||||
|
@@ -177,7 +177,7 @@ public:
|
||||
long ToLong() const
|
||||
{
|
||||
wxASSERT_MSG( (m_ll >= LONG_MIN) && (m_ll <= LONG_MAX),
|
||||
_T("wxLongLong to long conversion loss of precision") );
|
||||
wxT("wxLongLong to long conversion loss of precision") );
|
||||
|
||||
return wx_truncate_cast(long, m_ll);
|
||||
}
|
||||
@@ -405,7 +405,7 @@ public:
|
||||
unsigned long ToULong() const
|
||||
{
|
||||
wxASSERT_MSG( m_ll <= LONG_MAX,
|
||||
_T("wxULongLong to long conversion loss of precision") );
|
||||
wxT("wxULongLong to long conversion loss of precision") );
|
||||
|
||||
return wx_truncate_cast(unsigned long, m_ll);
|
||||
}
|
||||
@@ -683,7 +683,7 @@ public:
|
||||
long ToLong() const
|
||||
{
|
||||
wxASSERT_MSG( (m_hi == 0l) || (m_hi == -1l),
|
||||
_T("wxLongLong to long conversion loss of precision") );
|
||||
wxT("wxLongLong to long conversion loss of precision") );
|
||||
|
||||
return (long)m_lo;
|
||||
}
|
||||
@@ -908,7 +908,7 @@ public:
|
||||
unsigned long ToULong() const
|
||||
{
|
||||
wxASSERT_MSG( m_hi == 0ul,
|
||||
_T("wxULongLong to long conversion loss of precision") );
|
||||
wxT("wxULongLong to long conversion loss of precision") );
|
||||
|
||||
return (unsigned long)m_lo;
|
||||
}
|
||||
|
@@ -51,12 +51,12 @@ class WXDLLIMPEXP_BASE wxMimeType : public wxString
|
||||
public:
|
||||
// all string ctors here
|
||||
|
||||
wxString GetType() const { return BeforeFirst(_T('/')); }
|
||||
wxString GetSubType() const { return AfterFirst(_T('/')); }
|
||||
wxString GetType() const { return BeforeFirst(wxT('/')); }
|
||||
wxString GetSubType() const { return AfterFirst(wxT('/')); }
|
||||
|
||||
void SetSubType(const wxString& subtype)
|
||||
{
|
||||
*this = GetType() + _T('/') + subtype;
|
||||
*this = GetType() + wxT('/') + subtype;
|
||||
}
|
||||
|
||||
bool Matches(const wxMimeType& wildcard)
|
||||
|
@@ -68,7 +68,7 @@ protected:
|
||||
// after that
|
||||
void AddDependency(wxClassInfo *dep)
|
||||
{
|
||||
wxCHECK_RET( dep, _T("NULL module dependency") );
|
||||
wxCHECK_RET( dep, wxT("NULL module dependency") );
|
||||
|
||||
m_dependencies.Add(dep);
|
||||
}
|
||||
|
@@ -23,10 +23,10 @@ protected:
|
||||
void SetMessageDialogStyle(long style)
|
||||
{
|
||||
wxASSERT_MSG( ((style & wxYES_NO) == wxYES_NO) || ((style & wxYES_NO) == 0),
|
||||
_T("wxYES and wxNO may only be used together in wxMessageDialog") );
|
||||
wxT("wxYES and wxNO may only be used together in wxMessageDialog") );
|
||||
|
||||
wxASSERT_MSG( (style & wxID_OK) != wxID_OK,
|
||||
_T("wxMessageBox: Did you mean wxOK (and not wxID_OK)?") );
|
||||
wxT("wxMessageBox: Did you mean wxOK (and not wxID_OK)?") );
|
||||
|
||||
m_dialogStyle = style;
|
||||
}
|
||||
|
@@ -311,7 +311,7 @@ name##PluginSentinel m_pluginsentinel;
|
||||
#ifdef __WXDEBUG__
|
||||
inline void* wxCheckCast(void *ptr)
|
||||
{
|
||||
wxASSERT_MSG( ptr, _T("wxStaticCast() used incorrectly") );
|
||||
wxASSERT_MSG( ptr, wxT("wxStaticCast() used incorrectly") );
|
||||
return ptr;
|
||||
}
|
||||
#define wxStaticCast(obj, className) \
|
||||
|
@@ -27,7 +27,7 @@ public:
|
||||
|
||||
virtual bool Ok() const { return IsOk(); }
|
||||
virtual bool IsOk() const = 0;
|
||||
virtual int GetColoursCount() const { wxFAIL_MSG( _T("not implemented") ); return 0; }
|
||||
virtual int GetColoursCount() const { wxFAIL_MSG( wxT("not implemented") ); return 0; }
|
||||
};
|
||||
|
||||
#if defined(__WXPALMOS__)
|
||||
|
@@ -33,7 +33,7 @@ public:
|
||||
// backing file is never created and the backing is done with memory.
|
||||
wxBackingFile(wxInputStream *stream,
|
||||
size_t bufsize = DefaultBufSize,
|
||||
const wxString& prefix = _T("wxbf"));
|
||||
const wxString& prefix = wxT("wxbf"));
|
||||
|
||||
wxBackingFile() : m_impl(NULL) { }
|
||||
~wxBackingFile();
|
||||
|
@@ -175,7 +175,7 @@ protected:
|
||||
|
||||
// the trace mask used by assorted wxLogTrace() in ftp code, do
|
||||
// wxLog::AddTraceMask(FTP_TRACE_MASK) to see them in output
|
||||
#define FTP_TRACE_MASK _T("ftp")
|
||||
#define FTP_TRACE_MASK wxT("ftp")
|
||||
|
||||
#endif // wxUSE_PROTOCOL_FTP
|
||||
|
||||
|
@@ -35,7 +35,7 @@ public:
|
||||
|
||||
~wxRecursionGuard()
|
||||
{
|
||||
wxASSERT_MSG( m_flag > 0, _T("unbalanced wxRecursionGuards!?") );
|
||||
wxASSERT_MSG( m_flag > 0, wxT("unbalanced wxRecursionGuards!?") );
|
||||
|
||||
m_flag--;
|
||||
}
|
||||
|
@@ -51,7 +51,7 @@ public:
|
||||
void Clear() { m_itemsSel.Clear(); m_count = 0; m_defaultState = false; }
|
||||
|
||||
// must be called when a new item is inserted/added
|
||||
void OnItemAdd(size_t WXUNUSED(item)) { wxFAIL_MSG( _T("TODO") ); }
|
||||
void OnItemAdd(size_t WXUNUSED(item)) { wxFAIL_MSG( wxT("TODO") ); }
|
||||
|
||||
// must be called when an item is deleted
|
||||
void OnItemDelete(size_t item);
|
||||
|
@@ -43,7 +43,7 @@ public:
|
||||
{
|
||||
wxASSERT_MSG( (flags & wxSOUND_LOOP) == 0 ||
|
||||
(flags & wxSOUND_ASYNC) != 0,
|
||||
_T("sound can only be looped asynchronously") );
|
||||
wxT("sound can only be looped asynchronously") );
|
||||
return DoPlay(flags);
|
||||
}
|
||||
#if WXWIN_COMPATIBILITY_2_4
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include "wx/control.h"
|
||||
#include "wx/event.h"
|
||||
|
||||
#define wxSPIN_BUTTON_NAME _T("wxSpinButton")
|
||||
#define wxSPIN_BUTTON_NAME wxT("wxSpinButton")
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// The wxSpinButton is like a small scrollbar than is often placed next
|
||||
|
@@ -40,7 +40,7 @@ public:
|
||||
void Resume()
|
||||
{
|
||||
wxASSERT_MSG( m_pauseCount > 0,
|
||||
_T("Resuming stop watch which is not paused") );
|
||||
wxT("Resuming stop watch which is not paused") );
|
||||
|
||||
if ( --m_pauseCount == 0 )
|
||||
Start(m_pause);
|
||||
|
@@ -70,7 +70,7 @@ class WXDLLIMPEXP_FWD_BASE wxString;
|
||||
|
||||
// implementation only
|
||||
#define wxASSERT_VALID_INDEX(i) \
|
||||
wxASSERT_MSG( (size_t)(i) <= length(), _T("invalid index in wxString") )
|
||||
wxASSERT_MSG( (size_t)(i) <= length(), wxT("invalid index in wxString") )
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constants
|
||||
@@ -349,7 +349,7 @@ public:
|
||||
wxStringBase(const wxStringBase& stringSrc)
|
||||
{
|
||||
wxASSERT_MSG( stringSrc.GetStringData()->IsValid(),
|
||||
_T("did you forget to call UngetWriteBuf()?") );
|
||||
wxT("did you forget to call UngetWriteBuf()?") );
|
||||
|
||||
if ( stringSrc.empty() ) {
|
||||
// nothing to do for an empty string
|
||||
@@ -376,7 +376,7 @@ public:
|
||||
wxStringBase(const wxStringBase& str, size_t nPos, size_t nLen)
|
||||
{
|
||||
wxASSERT_MSG( str.GetStringData()->IsValid(),
|
||||
_T("did you forget to call UngetWriteBuf()?") );
|
||||
wxT("did you forget to call UngetWriteBuf()?") );
|
||||
Init();
|
||||
size_t strLen = str.length() - nPos; nLen = strLen < nLen ? strLen : nLen;
|
||||
InitWith(str.c_str(), nPos, nLen);
|
||||
@@ -754,7 +754,7 @@ public:
|
||||
{
|
||||
Truncate(0);
|
||||
|
||||
wxASSERT_MSG( empty(), _T("string not empty after call to Empty()?") );
|
||||
wxASSERT_MSG( empty(), wxT("string not empty after call to Empty()?") );
|
||||
}
|
||||
// empty the string and free memory
|
||||
void Clear()
|
||||
@@ -785,7 +785,7 @@ public:
|
||||
// get last character
|
||||
wxChar Last() const
|
||||
{
|
||||
wxASSERT_MSG( !empty(), _T("wxString: index out of bounds") );
|
||||
wxASSERT_MSG( !empty(), wxT("wxString: index out of bounds") );
|
||||
|
||||
return at(length() - 1);
|
||||
}
|
||||
@@ -793,7 +793,7 @@ public:
|
||||
// get writable last character
|
||||
wxChar& Last()
|
||||
{
|
||||
wxASSERT_MSG( !empty(), _T("wxString: index out of bounds") );
|
||||
wxASSERT_MSG( !empty(), wxT("wxString: index out of bounds") );
|
||||
return at(length() - 1);
|
||||
}
|
||||
|
||||
@@ -993,7 +993,7 @@ public:
|
||||
{
|
||||
#if !wxUSE_STL
|
||||
wxASSERT_MSG( s.GetStringData()->IsValid(),
|
||||
_T("did you forget to call UngetWriteBuf()?") );
|
||||
wxT("did you forget to call UngetWriteBuf()?") );
|
||||
#endif
|
||||
|
||||
append(s);
|
||||
@@ -1058,36 +1058,36 @@ public:
|
||||
// stream-like functions
|
||||
// insert an int into string
|
||||
wxString& operator<<(int i)
|
||||
{ return (*this) << Format(_T("%d"), i); }
|
||||
{ return (*this) << Format(wxT("%d"), i); }
|
||||
// insert an unsigned int into string
|
||||
wxString& operator<<(unsigned int ui)
|
||||
{ return (*this) << Format(_T("%u"), ui); }
|
||||
{ return (*this) << Format(wxT("%u"), ui); }
|
||||
// insert a long into string
|
||||
wxString& operator<<(long l)
|
||||
{ return (*this) << Format(_T("%ld"), l); }
|
||||
{ return (*this) << Format(wxT("%ld"), l); }
|
||||
// insert an unsigned long into string
|
||||
wxString& operator<<(unsigned long ul)
|
||||
{ return (*this) << Format(_T("%lu"), ul); }
|
||||
{ return (*this) << Format(wxT("%lu"), ul); }
|
||||
#if defined wxLongLong_t && !defined wxLongLongIsLong
|
||||
// insert a long long if they exist and aren't longs
|
||||
wxString& operator<<(wxLongLong_t ll)
|
||||
{
|
||||
const wxChar *fmt = _T("%") wxLongLongFmtSpec _T("d");
|
||||
const wxChar *fmt = wxT("%") wxLongLongFmtSpec wxT("d");
|
||||
return (*this) << Format(fmt, ll);
|
||||
}
|
||||
// insert an unsigned long long
|
||||
wxString& operator<<(wxULongLong_t ull)
|
||||
{
|
||||
const wxChar *fmt = _T("%") wxLongLongFmtSpec _T("u");
|
||||
const wxChar *fmt = wxT("%") wxLongLongFmtSpec wxT("u");
|
||||
return (*this) << Format(fmt , ull);
|
||||
}
|
||||
#endif
|
||||
// insert a float into string
|
||||
wxString& operator<<(float f)
|
||||
{ return (*this) << Format(_T("%f"), f); }
|
||||
{ return (*this) << Format(wxT("%f"), f); }
|
||||
// insert a double into string
|
||||
wxString& operator<<(double d)
|
||||
{ return (*this) << Format(_T("%g"), d); }
|
||||
{ return (*this) << Format(wxT("%g"), d); }
|
||||
|
||||
// string comparison
|
||||
// case-sensitive comparison (returns a value < 0, = 0 or > 0)
|
||||
|
@@ -115,7 +115,7 @@ public:
|
||||
|
||||
wxControl *GetControl() const
|
||||
{
|
||||
wxASSERT_MSG( IsControl(), _T("this toolbar tool is not a control") );
|
||||
wxASSERT_MSG( IsControl(), wxT("this toolbar tool is not a control") );
|
||||
|
||||
return m_control;
|
||||
}
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
int GetStyle() const { return m_toolStyle; }
|
||||
wxItemKind GetKind() const
|
||||
{
|
||||
wxASSERT_MSG( IsButton(), _T("only makes sense for buttons") );
|
||||
wxASSERT_MSG( IsButton(), wxT("only makes sense for buttons") );
|
||||
|
||||
return m_kind;
|
||||
}
|
||||
|
@@ -39,7 +39,7 @@ bool wxMutex::IsOk() const
|
||||
wxMutexError wxMutex::Lock()
|
||||
{
|
||||
wxCHECK_MSG( m_internal, wxMUTEX_INVALID,
|
||||
_T("wxMutex::Lock(): not initialized") );
|
||||
wxT("wxMutex::Lock(): not initialized") );
|
||||
|
||||
return m_internal->Lock();
|
||||
}
|
||||
@@ -47,7 +47,7 @@ wxMutexError wxMutex::Lock()
|
||||
wxMutexError wxMutex::TryLock()
|
||||
{
|
||||
wxCHECK_MSG( m_internal, wxMUTEX_INVALID,
|
||||
_T("wxMutex::TryLock(): not initialized") );
|
||||
wxT("wxMutex::TryLock(): not initialized") );
|
||||
|
||||
return m_internal->TryLock();
|
||||
}
|
||||
@@ -55,7 +55,7 @@ wxMutexError wxMutex::TryLock()
|
||||
wxMutexError wxMutex::Unlock()
|
||||
{
|
||||
wxCHECK_MSG( m_internal, wxMUTEX_INVALID,
|
||||
_T("wxMutex::Unlock(): not initialized") );
|
||||
wxT("wxMutex::Unlock(): not initialized") );
|
||||
|
||||
return m_internal->Unlock();
|
||||
}
|
||||
@@ -243,7 +243,7 @@ bool wxCondition::IsOk() const
|
||||
wxCondError wxCondition::Wait()
|
||||
{
|
||||
wxCHECK_MSG( m_internal, wxCOND_INVALID,
|
||||
_T("wxCondition::Wait(): not initialized") );
|
||||
wxT("wxCondition::Wait(): not initialized") );
|
||||
|
||||
return m_internal->Wait();
|
||||
}
|
||||
@@ -251,7 +251,7 @@ wxCondError wxCondition::Wait()
|
||||
wxCondError wxCondition::WaitTimeout(unsigned long milliseconds)
|
||||
{
|
||||
wxCHECK_MSG( m_internal, wxCOND_INVALID,
|
||||
_T("wxCondition::Wait(): not initialized") );
|
||||
wxT("wxCondition::Wait(): not initialized") );
|
||||
|
||||
return m_internal->WaitTimeout(milliseconds);
|
||||
}
|
||||
@@ -259,7 +259,7 @@ wxCondError wxCondition::WaitTimeout(unsigned long milliseconds)
|
||||
wxCondError wxCondition::Signal()
|
||||
{
|
||||
wxCHECK_MSG( m_internal, wxCOND_INVALID,
|
||||
_T("wxCondition::Signal(): not initialized") );
|
||||
wxT("wxCondition::Signal(): not initialized") );
|
||||
|
||||
return m_internal->Signal();
|
||||
}
|
||||
@@ -267,7 +267,7 @@ wxCondError wxCondition::Signal()
|
||||
wxCondError wxCondition::Broadcast()
|
||||
{
|
||||
wxCHECK_MSG( m_internal, wxCOND_INVALID,
|
||||
_T("wxCondition::Broadcast(): not initialized") );
|
||||
wxT("wxCondition::Broadcast(): not initialized") );
|
||||
|
||||
return m_internal->Broadcast();
|
||||
}
|
||||
@@ -299,7 +299,7 @@ bool wxSemaphore::IsOk() const
|
||||
wxSemaError wxSemaphore::Wait()
|
||||
{
|
||||
wxCHECK_MSG( m_internal, wxSEMA_INVALID,
|
||||
_T("wxSemaphore::Wait(): not initialized") );
|
||||
wxT("wxSemaphore::Wait(): not initialized") );
|
||||
|
||||
return m_internal->Wait();
|
||||
}
|
||||
@@ -307,7 +307,7 @@ wxSemaError wxSemaphore::Wait()
|
||||
wxSemaError wxSemaphore::TryWait()
|
||||
{
|
||||
wxCHECK_MSG( m_internal, wxSEMA_INVALID,
|
||||
_T("wxSemaphore::TryWait(): not initialized") );
|
||||
wxT("wxSemaphore::TryWait(): not initialized") );
|
||||
|
||||
return m_internal->TryWait();
|
||||
}
|
||||
@@ -315,7 +315,7 @@ wxSemaError wxSemaphore::TryWait()
|
||||
wxSemaError wxSemaphore::WaitTimeout(unsigned long milliseconds)
|
||||
{
|
||||
wxCHECK_MSG( m_internal, wxSEMA_INVALID,
|
||||
_T("wxSemaphore::WaitTimeout(): not initialized") );
|
||||
wxT("wxSemaphore::WaitTimeout(): not initialized") );
|
||||
|
||||
return m_internal->WaitTimeout(milliseconds);
|
||||
}
|
||||
@@ -323,7 +323,7 @@ wxSemaError wxSemaphore::WaitTimeout(unsigned long milliseconds)
|
||||
wxSemaError wxSemaphore::Post()
|
||||
{
|
||||
wxCHECK_MSG( m_internal, wxSEMA_INVALID,
|
||||
_T("wxSemaphore::Post(): not initialized") );
|
||||
wxT("wxSemaphore::Post(): not initialized") );
|
||||
|
||||
return m_internal->Post();
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// default: delimiters are usual white space characters
|
||||
#define wxDEFAULT_DELIMITERS (_T(" \t\r\n"))
|
||||
#define wxDEFAULT_DELIMITERS (wxT(" \t\r\n"))
|
||||
|
||||
// wxStringTokenizer mode flags which determine its behaviour
|
||||
enum wxStringTokenizerMode
|
||||
|
@@ -20,10 +20,10 @@ class WXDLLEXPORT wxInputHandler;
|
||||
// the actions supported by this control
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#define wxACTION_BUTTON_TOGGLE _T("toggle") // press/release the button
|
||||
#define wxACTION_BUTTON_PRESS _T("press") // press the button
|
||||
#define wxACTION_BUTTON_RELEASE _T("release") // release the button
|
||||
#define wxACTION_BUTTON_CLICK _T("click") // generate button click event
|
||||
#define wxACTION_BUTTON_TOGGLE wxT("toggle") // press/release the button
|
||||
#define wxACTION_BUTTON_PRESS wxT("press") // press the button
|
||||
#define wxACTION_BUTTON_RELEASE wxT("release") // release the button
|
||||
#define wxACTION_BUTTON_CLICK wxT("click") // generate button click event
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxButton: a push button
|
||||
|
@@ -18,9 +18,9 @@
|
||||
// the actions supported by wxCheckBox
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#define wxACTION_CHECKBOX_CHECK _T("check") // SetValue(true)
|
||||
#define wxACTION_CHECKBOX_CLEAR _T("clear") // SetValue(false)
|
||||
#define wxACTION_CHECKBOX_TOGGLE _T("toggle") // toggle the check state
|
||||
#define wxACTION_CHECKBOX_CHECK wxT("check") // SetValue(true)
|
||||
#define wxACTION_CHECKBOX_CLEAR wxT("clear") // SetValue(false)
|
||||
#define wxACTION_CHECKBOX_TOGGLE wxT("toggle") // toggle the check state
|
||||
|
||||
// additionally it accepts wxACTION_BUTTON_PRESS and RELEASE
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
// actions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#define wxACTION_CHECKLISTBOX_TOGGLE _T("toggle")
|
||||
#define wxACTION_CHECKLISTBOX_TOGGLE wxT("toggle")
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxCheckListBox
|
||||
|
@@ -22,9 +22,9 @@ class WXDLLEXPORT wxListBox;
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// choose the next/prev/specified (by numArg) item
|
||||
#define wxACTION_COMBOBOX_SELECT_NEXT _T("next")
|
||||
#define wxACTION_COMBOBOX_SELECT_PREV _T("prev")
|
||||
#define wxACTION_COMBOBOX_SELECT _T("select")
|
||||
#define wxACTION_COMBOBOX_SELECT_NEXT wxT("next")
|
||||
#define wxACTION_COMBOBOX_SELECT_PREV wxT("prev")
|
||||
#define wxACTION_COMBOBOX_SELECT wxT("select")
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -32,7 +32,7 @@ typedef wxString wxControlAction;
|
||||
// the list of actions which apply to all controls (other actions are defined
|
||||
// in the controls headers)
|
||||
|
||||
#define wxACTION_NONE _T("") // no action to perform
|
||||
#define wxACTION_NONE wxT("") // no action to perform
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxControl: the base class for all GUI controls
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
// return the accel char itself or 0 if none
|
||||
wxChar GetAccelChar() const
|
||||
{
|
||||
return m_indexAccel == -1 ? _T('\0') : m_label[m_indexAccel];
|
||||
return m_indexAccel == -1 ? wxT('\0') : m_label[m_indexAccel];
|
||||
}
|
||||
|
||||
virtual wxWindow *GetInputWindow() const { return (wxWindow*)this; }
|
||||
|
@@ -28,7 +28,7 @@ typedef wxString wxControlAction;
|
||||
// the list of actions which apply to all controls (other actions are defined
|
||||
// in the controls headers)
|
||||
|
||||
#define wxACTION_NONE _T("") // no action to perform
|
||||
#define wxACTION_NONE wxT("") // no action to perform
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxInputConsumer: mix-in class for handling wxControlActions (used by
|
||||
|
@@ -20,21 +20,21 @@
|
||||
// wxTheme::GetInputHandler()
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#define wxINP_HANDLER_DEFAULT _T("")
|
||||
#define wxINP_HANDLER_BUTTON _T("button")
|
||||
#define wxINP_HANDLER_CHECKBOX _T("checkbox")
|
||||
#define wxINP_HANDLER_CHECKLISTBOX _T("checklistbox")
|
||||
#define wxINP_HANDLER_COMBOBOX _T("combobox")
|
||||
#define wxINP_HANDLER_LISTBOX _T("listbox")
|
||||
#define wxINP_HANDLER_NOTEBOOK _T("notebook")
|
||||
#define wxINP_HANDLER_RADIOBTN _T("radiobtn")
|
||||
#define wxINP_HANDLER_SCROLLBAR _T("scrollbar")
|
||||
#define wxINP_HANDLER_SLIDER _T("slider")
|
||||
#define wxINP_HANDLER_SPINBTN _T("spinbtn")
|
||||
#define wxINP_HANDLER_STATUSBAR _T("statusbar")
|
||||
#define wxINP_HANDLER_TEXTCTRL _T("textctrl")
|
||||
#define wxINP_HANDLER_TOOLBAR _T("toolbar")
|
||||
#define wxINP_HANDLER_TOPLEVEL _T("toplevel")
|
||||
#define wxINP_HANDLER_DEFAULT wxT("")
|
||||
#define wxINP_HANDLER_BUTTON wxT("button")
|
||||
#define wxINP_HANDLER_CHECKBOX wxT("checkbox")
|
||||
#define wxINP_HANDLER_CHECKLISTBOX wxT("checklistbox")
|
||||
#define wxINP_HANDLER_COMBOBOX wxT("combobox")
|
||||
#define wxINP_HANDLER_LISTBOX wxT("listbox")
|
||||
#define wxINP_HANDLER_NOTEBOOK wxT("notebook")
|
||||
#define wxINP_HANDLER_RADIOBTN wxT("radiobtn")
|
||||
#define wxINP_HANDLER_SCROLLBAR wxT("scrollbar")
|
||||
#define wxINP_HANDLER_SLIDER wxT("slider")
|
||||
#define wxINP_HANDLER_SPINBTN wxT("spinbtn")
|
||||
#define wxINP_HANDLER_STATUSBAR wxT("statusbar")
|
||||
#define wxINP_HANDLER_TEXTCTRL wxT("textctrl")
|
||||
#define wxINP_HANDLER_TOOLBAR wxT("toolbar")
|
||||
#define wxINP_HANDLER_TOPLEVEL wxT("toplevel")
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxInputHandler: maps the events to the actions
|
||||
|
@@ -21,28 +21,28 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// change the current item
|
||||
#define wxACTION_LISTBOX_SETFOCUS _T("setfocus") // select the item
|
||||
#define wxACTION_LISTBOX_MOVEDOWN _T("down") // select item below
|
||||
#define wxACTION_LISTBOX_MOVEUP _T("up") // select item above
|
||||
#define wxACTION_LISTBOX_PAGEDOWN _T("pagedown") // go page down
|
||||
#define wxACTION_LISTBOX_PAGEUP _T("pageup") // go page up
|
||||
#define wxACTION_LISTBOX_START _T("start") // go to first item
|
||||
#define wxACTION_LISTBOX_END _T("end") // go to last item
|
||||
#define wxACTION_LISTBOX_FIND _T("find") // find item by 1st letter
|
||||
#define wxACTION_LISTBOX_SETFOCUS wxT("setfocus") // select the item
|
||||
#define wxACTION_LISTBOX_MOVEDOWN wxT("down") // select item below
|
||||
#define wxACTION_LISTBOX_MOVEUP wxT("up") // select item above
|
||||
#define wxACTION_LISTBOX_PAGEDOWN wxT("pagedown") // go page down
|
||||
#define wxACTION_LISTBOX_PAGEUP wxT("pageup") // go page up
|
||||
#define wxACTION_LISTBOX_START wxT("start") // go to first item
|
||||
#define wxACTION_LISTBOX_END wxT("end") // go to last item
|
||||
#define wxACTION_LISTBOX_FIND wxT("find") // find item by 1st letter
|
||||
|
||||
// do something with the current item
|
||||
#define wxACTION_LISTBOX_ACTIVATE _T("activate") // activate (choose)
|
||||
#define wxACTION_LISTBOX_TOGGLE _T("toggle") // togglee selected state
|
||||
#define wxACTION_LISTBOX_SELECT _T("select") // sel this, unsel others
|
||||
#define wxACTION_LISTBOX_SELECTADD _T("selectadd") // add to selection
|
||||
#define wxACTION_LISTBOX_UNSELECT _T("unselect") // unselect
|
||||
#define wxACTION_LISTBOX_ANCHOR _T("selanchor") // anchor selection
|
||||
#define wxACTION_LISTBOX_ACTIVATE wxT("activate") // activate (choose)
|
||||
#define wxACTION_LISTBOX_TOGGLE wxT("toggle") // togglee selected state
|
||||
#define wxACTION_LISTBOX_SELECT wxT("select") // sel this, unsel others
|
||||
#define wxACTION_LISTBOX_SELECTADD wxT("selectadd") // add to selection
|
||||
#define wxACTION_LISTBOX_UNSELECT wxT("unselect") // unselect
|
||||
#define wxACTION_LISTBOX_ANCHOR wxT("selanchor") // anchor selection
|
||||
|
||||
// do something with the selection globally (not for single selection ones)
|
||||
#define wxACTION_LISTBOX_SELECTALL _T("selectall") // select all items
|
||||
#define wxACTION_LISTBOX_UNSELECTALL _T("unselectall") // unselect all items
|
||||
#define wxACTION_LISTBOX_SELTOGGLE _T("togglesel") // invert the selection
|
||||
#define wxACTION_LISTBOX_EXTENDSEL _T("extend") // extend to item
|
||||
#define wxACTION_LISTBOX_SELECTALL wxT("selectall") // select all items
|
||||
#define wxACTION_LISTBOX_UNSELECTALL wxT("unselectall") // unselect all items
|
||||
#define wxACTION_LISTBOX_SELTOGGLE wxT("togglesel") // invert the selection
|
||||
#define wxACTION_LISTBOX_EXTENDSEL wxT("extend") // extend to item
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxListBox: a list of selectable items
|
||||
|
@@ -72,14 +72,14 @@ public:
|
||||
|
||||
wxCoord GetPosition() const
|
||||
{
|
||||
wxASSERT_MSG( m_posY != wxDefaultCoord, _T("must call SetHeight first!") );
|
||||
wxASSERT_MSG( m_posY != wxDefaultCoord, wxT("must call SetHeight first!") );
|
||||
|
||||
return m_posY;
|
||||
}
|
||||
|
||||
wxCoord GetHeight() const
|
||||
{
|
||||
wxASSERT_MSG( m_height != wxDefaultCoord, _T("must call SetHeight first!") );
|
||||
wxASSERT_MSG( m_height != wxDefaultCoord, wxT("must call SetHeight first!") );
|
||||
|
||||
return m_height;
|
||||
}
|
||||
|
@@ -21,9 +21,9 @@ class WXDLLEXPORT wxSpinButton;
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// change the page: to the next/previous/given one
|
||||
#define wxACTION_NOTEBOOK_NEXT _T("nexttab")
|
||||
#define wxACTION_NOTEBOOK_PREV _T("prevtab")
|
||||
#define wxACTION_NOTEBOOK_GOTO _T("gototab")
|
||||
#define wxACTION_NOTEBOOK_NEXT wxT("nexttab")
|
||||
#define wxACTION_NOTEBOOK_PREV wxT("prevtab")
|
||||
#define wxACTION_NOTEBOOK_GOTO wxT("gototab")
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxNotebook
|
||||
|
@@ -22,17 +22,17 @@ class WXDLLEXPORT wxScrollTimer;
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// scroll the bar
|
||||
#define wxACTION_SCROLL_START _T("start") // to the beginning
|
||||
#define wxACTION_SCROLL_END _T("end") // to the end
|
||||
#define wxACTION_SCROLL_LINE_UP _T("lineup") // one line up/left
|
||||
#define wxACTION_SCROLL_PAGE_UP _T("pageup") // one page up/left
|
||||
#define wxACTION_SCROLL_LINE_DOWN _T("linedown") // one line down/right
|
||||
#define wxACTION_SCROLL_PAGE_DOWN _T("pagedown") // one page down/right
|
||||
#define wxACTION_SCROLL_START wxT("start") // to the beginning
|
||||
#define wxACTION_SCROLL_END wxT("end") // to the end
|
||||
#define wxACTION_SCROLL_LINE_UP wxT("lineup") // one line up/left
|
||||
#define wxACTION_SCROLL_PAGE_UP wxT("pageup") // one page up/left
|
||||
#define wxACTION_SCROLL_LINE_DOWN wxT("linedown") // one line down/right
|
||||
#define wxACTION_SCROLL_PAGE_DOWN wxT("pagedown") // one page down/right
|
||||
|
||||
// the scrollbar thumb may be dragged
|
||||
#define wxACTION_SCROLL_THUMB_DRAG _T("thumbdrag")
|
||||
#define wxACTION_SCROLL_THUMB_MOVE _T("thumbmove")
|
||||
#define wxACTION_SCROLL_THUMB_RELEASE _T("thumbrelease")
|
||||
#define wxACTION_SCROLL_THUMB_DRAG wxT("thumbdrag")
|
||||
#define wxACTION_SCROLL_THUMB_MOVE wxT("thumbmove")
|
||||
#define wxACTION_SCROLL_THUMB_RELEASE wxT("thumbrelease")
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxScrollBar
|
||||
|
@@ -20,17 +20,17 @@
|
||||
|
||||
// our actions are the same as scrollbars
|
||||
|
||||
#define wxACTION_SLIDER_START _T("start") // to the beginning
|
||||
#define wxACTION_SLIDER_END _T("end") // to the end
|
||||
#define wxACTION_SLIDER_LINE_UP _T("lineup") // one line up/left
|
||||
#define wxACTION_SLIDER_PAGE_UP _T("pageup") // one page up/left
|
||||
#define wxACTION_SLIDER_LINE_DOWN _T("linedown") // one line down/right
|
||||
#define wxACTION_SLIDER_PAGE_DOWN _T("pagedown") // one page down/right
|
||||
#define wxACTION_SLIDER_PAGE_CHANGE _T("pagechange")// change page by numArg
|
||||
#define wxACTION_SLIDER_START wxT("start") // to the beginning
|
||||
#define wxACTION_SLIDER_END wxT("end") // to the end
|
||||
#define wxACTION_SLIDER_LINE_UP wxT("lineup") // one line up/left
|
||||
#define wxACTION_SLIDER_PAGE_UP wxT("pageup") // one page up/left
|
||||
#define wxACTION_SLIDER_LINE_DOWN wxT("linedown") // one line down/right
|
||||
#define wxACTION_SLIDER_PAGE_DOWN wxT("pagedown") // one page down/right
|
||||
#define wxACTION_SLIDER_PAGE_CHANGE wxT("pagechange")// change page by numArg
|
||||
|
||||
#define wxACTION_SLIDER_THUMB_DRAG _T("thumbdrag")
|
||||
#define wxACTION_SLIDER_THUMB_MOVE _T("thumbmove")
|
||||
#define wxACTION_SLIDER_THUMB_RELEASE _T("thumbrelease")
|
||||
#define wxACTION_SLIDER_THUMB_DRAG wxT("thumbdrag")
|
||||
#define wxACTION_SLIDER_THUMB_MOVE wxT("thumbmove")
|
||||
#define wxACTION_SLIDER_THUMB_RELEASE wxT("thumbrelease")
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxSlider
|
||||
|
@@ -19,8 +19,8 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// actions supported by this control
|
||||
#define wxACTION_SPIN_INC _T("inc")
|
||||
#define wxACTION_SPIN_DEC _T("dec")
|
||||
#define wxACTION_SPIN_INC wxT("inc")
|
||||
#define wxACTION_SPIN_DEC wxT("dec")
|
||||
|
||||
class WXDLLEXPORT wxSpinButton : public wxSpinButtonBase,
|
||||
public wxControlWithArrows
|
||||
|
@@ -24,43 +24,43 @@ class WXDLLEXPORT wxTextCtrlCommandProcessor;
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// cursor movement and also selection and delete operations
|
||||
#define wxACTION_TEXT_GOTO _T("goto") // to pos in numArg
|
||||
#define wxACTION_TEXT_FIRST _T("first") // go to pos 0
|
||||
#define wxACTION_TEXT_LAST _T("last") // go to last pos
|
||||
#define wxACTION_TEXT_HOME _T("home")
|
||||
#define wxACTION_TEXT_END _T("end")
|
||||
#define wxACTION_TEXT_LEFT _T("left")
|
||||
#define wxACTION_TEXT_RIGHT _T("right")
|
||||
#define wxACTION_TEXT_UP _T("up")
|
||||
#define wxACTION_TEXT_DOWN _T("down")
|
||||
#define wxACTION_TEXT_WORD_LEFT _T("wordleft")
|
||||
#define wxACTION_TEXT_WORD_RIGHT _T("wordright")
|
||||
#define wxACTION_TEXT_PAGE_UP _T("pageup")
|
||||
#define wxACTION_TEXT_PAGE_DOWN _T("pagedown")
|
||||
#define wxACTION_TEXT_GOTO wxT("goto") // to pos in numArg
|
||||
#define wxACTION_TEXT_FIRST wxT("first") // go to pos 0
|
||||
#define wxACTION_TEXT_LAST wxT("last") // go to last pos
|
||||
#define wxACTION_TEXT_HOME wxT("home")
|
||||
#define wxACTION_TEXT_END wxT("end")
|
||||
#define wxACTION_TEXT_LEFT wxT("left")
|
||||
#define wxACTION_TEXT_RIGHT wxT("right")
|
||||
#define wxACTION_TEXT_UP wxT("up")
|
||||
#define wxACTION_TEXT_DOWN wxT("down")
|
||||
#define wxACTION_TEXT_WORD_LEFT wxT("wordleft")
|
||||
#define wxACTION_TEXT_WORD_RIGHT wxT("wordright")
|
||||
#define wxACTION_TEXT_PAGE_UP wxT("pageup")
|
||||
#define wxACTION_TEXT_PAGE_DOWN wxT("pagedown")
|
||||
|
||||
// clipboard operations
|
||||
#define wxACTION_TEXT_COPY _T("copy")
|
||||
#define wxACTION_TEXT_CUT _T("cut")
|
||||
#define wxACTION_TEXT_PASTE _T("paste")
|
||||
#define wxACTION_TEXT_COPY wxT("copy")
|
||||
#define wxACTION_TEXT_CUT wxT("cut")
|
||||
#define wxACTION_TEXT_PASTE wxT("paste")
|
||||
|
||||
// insert text at the cursor position: the text is in strArg of PerformAction
|
||||
#define wxACTION_TEXT_INSERT _T("insert")
|
||||
#define wxACTION_TEXT_INSERT wxT("insert")
|
||||
|
||||
// if the action starts with either of these prefixes and the rest of the
|
||||
// string is one of the movement commands, it means to select/delete text from
|
||||
// the current cursor position to the new one
|
||||
#define wxACTION_TEXT_PREFIX_SEL _T("sel")
|
||||
#define wxACTION_TEXT_PREFIX_DEL _T("del")
|
||||
#define wxACTION_TEXT_PREFIX_SEL wxT("sel")
|
||||
#define wxACTION_TEXT_PREFIX_DEL wxT("del")
|
||||
|
||||
// mouse selection
|
||||
#define wxACTION_TEXT_ANCHOR_SEL _T("anchorsel")
|
||||
#define wxACTION_TEXT_EXTEND_SEL _T("extendsel")
|
||||
#define wxACTION_TEXT_SEL_WORD _T("wordsel")
|
||||
#define wxACTION_TEXT_SEL_LINE _T("linesel")
|
||||
#define wxACTION_TEXT_ANCHOR_SEL wxT("anchorsel")
|
||||
#define wxACTION_TEXT_EXTEND_SEL wxT("extendsel")
|
||||
#define wxACTION_TEXT_SEL_WORD wxT("wordsel")
|
||||
#define wxACTION_TEXT_SEL_LINE wxT("linesel")
|
||||
|
||||
// undo or redo
|
||||
#define wxACTION_TEXT_UNDO _T("undo")
|
||||
#define wxACTION_TEXT_REDO _T("redo")
|
||||
#define wxACTION_TEXT_UNDO wxT("undo")
|
||||
#define wxACTION_TEXT_REDO wxT("redo")
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxTextCtrl
|
||||
@@ -409,7 +409,7 @@ protected:
|
||||
wxCoord GetLineHeight() const
|
||||
{
|
||||
// this one should be already precalculated
|
||||
wxASSERT_MSG( m_heightLine != -1, _T("should have line height") );
|
||||
wxASSERT_MSG( m_heightLine != -1, wxT("should have line height") );
|
||||
|
||||
return m_heightLine;
|
||||
}
|
||||
|
@@ -24,8 +24,8 @@ class WXDLLEXPORT wxToolBarTool;
|
||||
#define wxACTION_TOOLBAR_PRESS wxACTION_BUTTON_PRESS
|
||||
#define wxACTION_TOOLBAR_RELEASE wxACTION_BUTTON_RELEASE
|
||||
#define wxACTION_TOOLBAR_CLICK wxACTION_BUTTON_CLICK
|
||||
#define wxACTION_TOOLBAR_ENTER _T("enter") // highlight the tool
|
||||
#define wxACTION_TOOLBAR_LEAVE _T("leave") // unhighlight the tool
|
||||
#define wxACTION_TOOLBAR_ENTER wxT("enter") // highlight the tool
|
||||
#define wxACTION_TOOLBAR_LEAVE wxT("leave") // unhighlight the tool
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxToolBar
|
||||
|
@@ -77,12 +77,12 @@ enum
|
||||
// the actions supported by this control
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#define wxACTION_TOPLEVEL_ACTIVATE _T("activate") // (de)activate the frame
|
||||
#define wxACTION_TOPLEVEL_BUTTON_PRESS _T("pressbtn") // press titlebar btn
|
||||
#define wxACTION_TOPLEVEL_BUTTON_RELEASE _T("releasebtn") // press titlebar btn
|
||||
#define wxACTION_TOPLEVEL_BUTTON_CLICK _T("clickbtn") // press titlebar btn
|
||||
#define wxACTION_TOPLEVEL_MOVE _T("move") // move the frame
|
||||
#define wxACTION_TOPLEVEL_RESIZE _T("resize") // resize the frame
|
||||
#define wxACTION_TOPLEVEL_ACTIVATE wxT("activate") // (de)activate the frame
|
||||
#define wxACTION_TOPLEVEL_BUTTON_PRESS wxT("pressbtn") // press titlebar btn
|
||||
#define wxACTION_TOPLEVEL_BUTTON_RELEASE wxT("releasebtn") // press titlebar btn
|
||||
#define wxACTION_TOPLEVEL_BUTTON_CLICK wxT("clickbtn") // press titlebar btn
|
||||
#define wxACTION_TOPLEVEL_MOVE wxT("move") // move the frame
|
||||
#define wxACTION_TOPLEVEL_RESIZE wxT("resize") // resize the frame
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxTopLevelWindow
|
||||
|
@@ -99,9 +99,9 @@ protected:
|
||||
bool CheckValidator() const
|
||||
{
|
||||
wxCHECK_MSG( m_validatorWindow, false,
|
||||
_T("No window associated with validator") );
|
||||
wxT("No window associated with validator") );
|
||||
wxCHECK_MSG( m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)), false,
|
||||
_T("wxTextValidator is only for wxTextCtrl's") );
|
||||
wxT("wxTextValidator is only for wxTextCtrl's") );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@@ -105,7 +105,7 @@ public:
|
||||
{
|
||||
if ( !Alloc(n) )
|
||||
{
|
||||
wxFAIL_MSG( _T("out of memory in wxVector::reserve()") );
|
||||
wxFAIL_MSG( wxT("out of memory in wxVector::reserve()") );
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -30,7 +30,7 @@
|
||||
#define wxMINOR_VERSION 8
|
||||
#define wxRELEASE_NUMBER 10
|
||||
#define wxSUBRELEASE_NUMBER 1
|
||||
#define wxVERSION_STRING _T("wxWidgets 2.8.10")
|
||||
#define wxVERSION_STRING wxT("wxWidgets 2.8.10")
|
||||
|
||||
/* nothing to update below this line when updating the version */
|
||||
/* ---------------------------------------------------------------------------- */
|
||||
@@ -54,7 +54,7 @@
|
||||
#define wxMAKE_VERSION_STRING_T(x, y, z) \
|
||||
wxSTRINGIZE_T(x) wxSTRINGIZE_T(y) wxSTRINGIZE_T(z)
|
||||
#define wxMAKE_VERSION_DOT_STRING_T(x, y, z) \
|
||||
wxSTRINGIZE_T(x) _T(".") wxSTRINGIZE_T(y) _T(".") wxSTRINGIZE_T(z)
|
||||
wxSTRINGIZE_T(x) wxT(".") wxSTRINGIZE_T(y) wxT(".") wxSTRINGIZE_T(z)
|
||||
|
||||
/* these are used by src/msw/version.rc and should always be ASCII, not Unicode */
|
||||
#define wxVERSION_NUM_STRING \
|
||||
|
@@ -17,7 +17,7 @@
|
||||
|
||||
class WXDLLIMPEXP_FWD_CORE wxSelectionStore;
|
||||
|
||||
#define wxVListBoxNameStr _T("wxVListBox")
|
||||
#define wxVListBoxNameStr wxT("wxVListBox")
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxVListBox
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
int GetSelection() const
|
||||
{
|
||||
wxASSERT_MSG( !HasMultipleSelection(),
|
||||
_T("GetSelection() can't be used with wxLB_MULTIPLE") );
|
||||
wxT("GetSelection() can't be used with wxLB_MULTIPLE") );
|
||||
|
||||
return m_current;
|
||||
}
|
||||
|
@@ -132,7 +132,7 @@ private:
|
||||
class WXDLLIMPEXP_BASE wxFFileInputStream : public wxInputStream
|
||||
{
|
||||
public:
|
||||
wxFFileInputStream(const wxString& fileName, const wxChar *mode = _T("rb"));
|
||||
wxFFileInputStream(const wxString& fileName, const wxChar *mode = wxT("rb"));
|
||||
wxFFileInputStream(wxFFile& file);
|
||||
wxFFileInputStream(FILE *file);
|
||||
virtual ~wxFFileInputStream();
|
||||
@@ -160,7 +160,7 @@ protected:
|
||||
class WXDLLIMPEXP_BASE wxFFileOutputStream : public wxOutputStream
|
||||
{
|
||||
public:
|
||||
wxFFileOutputStream(const wxString& fileName, const wxChar *mode = _T("w+b"));
|
||||
wxFFileOutputStream(const wxString& fileName, const wxChar *mode = wxT("w+b"));
|
||||
wxFFileOutputStream(wxFFile& file);
|
||||
wxFFileOutputStream(FILE *file);
|
||||
virtual ~wxFFileOutputStream();
|
||||
|
@@ -264,10 +264,10 @@
|
||||
#endif /* wxNEEDS__T */
|
||||
|
||||
/* this macro exists only for forward compatibility with wx 3.0 */
|
||||
#define wxS(x) _T(x)
|
||||
#define wxS(x) wxT(x)
|
||||
|
||||
/* a helper macro allowing to make another macro Unicode-friendly, see below */
|
||||
#define wxAPPLY_T(x) _T(x)
|
||||
#define wxAPPLY_T(x) wxT(x)
|
||||
|
||||
/* Unicode-friendly __FILE__, __DATE__ and __TIME__ analogs */
|
||||
#ifndef __TFILE__
|
||||
@@ -1126,7 +1126,7 @@ WXDLLIMPEXP_BASE bool wxOKlibc(); /* for internal use */
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
#if _WIN32_WCE <= 211
|
||||
#define isspace(c) ((c) == _T(' ') || (c) == _T('\t'))
|
||||
#define isspace(c) ((c) == wxT(' ') || (c) == wxT('\t'))
|
||||
#endif
|
||||
#endif /* _WIN32_WCE */
|
||||
|
||||
|
@@ -321,43 +321,43 @@ private:
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// cursor movement and also selection and delete operations
|
||||
#define wxACTION_TEXT_GOTO _T("goto") // to pos in numArg
|
||||
#define wxACTION_TEXT_FIRST _T("first") // go to pos 0
|
||||
#define wxACTION_TEXT_LAST _T("last") // go to last pos
|
||||
#define wxACTION_TEXT_HOME _T("home")
|
||||
#define wxACTION_TEXT_END _T("end")
|
||||
#define wxACTION_TEXT_LEFT _T("left")
|
||||
#define wxACTION_TEXT_RIGHT _T("right")
|
||||
#define wxACTION_TEXT_UP _T("up")
|
||||
#define wxACTION_TEXT_DOWN _T("down")
|
||||
#define wxACTION_TEXT_WORD_LEFT _T("wordleft")
|
||||
#define wxACTION_TEXT_WORD_RIGHT _T("wordright")
|
||||
#define wxACTION_TEXT_PAGE_UP _T("pageup")
|
||||
#define wxACTION_TEXT_PAGE_DOWN _T("pagedown")
|
||||
#define wxACTION_TEXT_GOTO wxT("goto") // to pos in numArg
|
||||
#define wxACTION_TEXT_FIRST wxT("first") // go to pos 0
|
||||
#define wxACTION_TEXT_LAST wxT("last") // go to last pos
|
||||
#define wxACTION_TEXT_HOME wxT("home")
|
||||
#define wxACTION_TEXT_END wxT("end")
|
||||
#define wxACTION_TEXT_LEFT wxT("left")
|
||||
#define wxACTION_TEXT_RIGHT wxT("right")
|
||||
#define wxACTION_TEXT_UP wxT("up")
|
||||
#define wxACTION_TEXT_DOWN wxT("down")
|
||||
#define wxACTION_TEXT_WORD_LEFT wxT("wordleft")
|
||||
#define wxACTION_TEXT_WORD_RIGHT wxT("wordright")
|
||||
#define wxACTION_TEXT_PAGE_UP wxT("pageup")
|
||||
#define wxACTION_TEXT_PAGE_DOWN wxT("pagedown")
|
||||
|
||||
// clipboard operations
|
||||
#define wxACTION_TEXT_COPY _T("copy")
|
||||
#define wxACTION_TEXT_CUT _T("cut")
|
||||
#define wxACTION_TEXT_PASTE _T("paste")
|
||||
#define wxACTION_TEXT_COPY wxT("copy")
|
||||
#define wxACTION_TEXT_CUT wxT("cut")
|
||||
#define wxACTION_TEXT_PASTE wxT("paste")
|
||||
|
||||
// insert text at the cursor position: the text is in strArg of PerformAction
|
||||
#define wxACTION_TEXT_INSERT _T("insert")
|
||||
#define wxACTION_TEXT_INSERT wxT("insert")
|
||||
|
||||
// if the action starts with either of these prefixes and the rest of the
|
||||
// string is one of the movement commands, it means to select/delete text from
|
||||
// the current cursor position to the new one
|
||||
#define wxACTION_TEXT_PREFIX_SEL _T("sel")
|
||||
#define wxACTION_TEXT_PREFIX_DEL _T("del")
|
||||
#define wxACTION_TEXT_PREFIX_SEL wxT("sel")
|
||||
#define wxACTION_TEXT_PREFIX_DEL wxT("del")
|
||||
|
||||
// mouse selection
|
||||
#define wxACTION_TEXT_ANCHOR_SEL _T("anchorsel")
|
||||
#define wxACTION_TEXT_EXTEND_SEL _T("extendsel")
|
||||
#define wxACTION_TEXT_SEL_WORD _T("wordsel")
|
||||
#define wxACTION_TEXT_SEL_LINE _T("linesel")
|
||||
#define wxACTION_TEXT_ANCHOR_SEL wxT("anchorsel")
|
||||
#define wxACTION_TEXT_EXTEND_SEL wxT("extendsel")
|
||||
#define wxACTION_TEXT_SEL_WORD wxT("wordsel")
|
||||
#define wxACTION_TEXT_SEL_LINE wxT("linesel")
|
||||
|
||||
// undo or redo
|
||||
#define wxACTION_TEXT_UNDO _T("undo")
|
||||
#define wxACTION_TEXT_REDO _T("redo")
|
||||
#define wxACTION_TEXT_UNDO wxT("undo")
|
||||
#define wxACTION_TEXT_REDO wxT("redo")
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxTextCtrl types
|
||||
|
@@ -59,7 +59,7 @@ class wxXmlResourceModule;
|
||||
#define WX_XMLRES_CURRENT_VERSION_MINOR 5
|
||||
#define WX_XMLRES_CURRENT_VERSION_RELEASE 3
|
||||
#define WX_XMLRES_CURRENT_VERSION_REVISION 0
|
||||
#define WX_XMLRES_CURRENT_VERSION_STRING _T("2.5.3.0")
|
||||
#define WX_XMLRES_CURRENT_VERSION_STRING wxT("2.5.3.0")
|
||||
|
||||
#define WX_XMLRES_CURRENT_VERSION \
|
||||
(WX_XMLRES_CURRENT_VERSION_MAJOR * 256*256*256 + \
|
||||
|
Reference in New Issue
Block a user