Merge with master to get bakefile changes
This commit is contained in:
@@ -73,7 +73,6 @@ public:
|
||||
virtual wxRendererNative *CreateRenderer() = 0;
|
||||
|
||||
// wxStandardPaths object is normally the same for wxBase and wxGUI
|
||||
// except in the case of wxMac and wxCocoa
|
||||
virtual wxStandardPaths& GetStandardPaths();
|
||||
|
||||
|
||||
@@ -130,7 +129,9 @@ public:
|
||||
// runtime (not compile-time) version.
|
||||
// returns wxPORT_BASE for console applications and one of the remaining
|
||||
// wxPORT_* values for GUI applications.
|
||||
virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const = 0;
|
||||
virtual wxPortId GetToolkitVersion(int *majVer = NULL,
|
||||
int *minVer = NULL,
|
||||
int *microVer = NULL) const = 0;
|
||||
|
||||
// return true if the port is using wxUniversal for the GUI, false if not
|
||||
virtual bool IsUsingUniversalWidgets() const = 0;
|
||||
@@ -209,13 +210,16 @@ public:
|
||||
virtual bool HasStderr() wxOVERRIDE;
|
||||
|
||||
// the GetToolkitVersion for console application is always the same
|
||||
virtual wxPortId GetToolkitVersion(int *verMaj = NULL, int *verMin = NULL) const wxOVERRIDE
|
||||
wxPortId GetToolkitVersion(int *verMaj = NULL,
|
||||
int *verMin = NULL,
|
||||
int *verMicro = NULL) const wxOVERRIDE
|
||||
{
|
||||
// no toolkits (wxBase is for console applications without GUI support)
|
||||
// NB: zero means "no toolkit", -1 means "not initialized yet"
|
||||
// so we must use zero here!
|
||||
if (verMaj) *verMaj = 0;
|
||||
if (verMin) *verMin = 0;
|
||||
if (verMicro) *verMicro = 0;
|
||||
return wxPORT_BASE;
|
||||
}
|
||||
|
||||
|
@@ -156,9 +156,11 @@ public:
|
||||
|
||||
void SetMargins(float top = 25.2f, float bottom = 25.2f, float left = 25.2f, float right = 25.2f,
|
||||
float spaces = 5);
|
||||
// sets margins in milimeters. Defaults to 1 inch for margins and 0.5cm for space
|
||||
// sets margins in millimeters. Defaults to 1 inch for margins and 0.5cm for space
|
||||
// between text and header and/or footer
|
||||
|
||||
void SetMargins(const wxPageSetupDialogData& pageSetupData);
|
||||
|
||||
// wxPrintout stuff:
|
||||
bool OnPrintPage(int page) wxOVERRIDE;
|
||||
bool HasPage(int page) wxOVERRIDE;
|
||||
|
@@ -1272,6 +1272,10 @@ WXDLLIMPEXP_BASE const wxChar* wxSysErrorMsg(unsigned long nErrCode = 0);
|
||||
#define wxLogMessage wxDO_LOG_IF_ENABLED(Message)
|
||||
#define wxVLogMessage(format, argptr) wxDO_LOGV(Message, format, argptr)
|
||||
|
||||
#define wxLogInfo wxDO_LOG_IF_ENABLED(Info)
|
||||
#define wxVLogInfo(format, argptr) wxDO_LOGV(Info, format, argptr)
|
||||
|
||||
|
||||
// this one is special as it only logs if we're in verbose mode
|
||||
#define wxLogVerbose \
|
||||
if ( !(wxLog::IsLevelEnabled(wxLOG_Info, wxLOG_COMPONENT) && \
|
||||
@@ -1286,11 +1290,6 @@ WXDLLIMPEXP_BASE const wxChar* wxSysErrorMsg(unsigned long nErrCode = 0);
|
||||
else \
|
||||
wxDO_LOGV(Info, format, argptr)
|
||||
|
||||
// deprecated synonyms for wxLogVerbose() and wxVLogVerbose()
|
||||
#define wxLogInfo wxLogVerbose
|
||||
#define wxVLogInfo wxVLogVerbose
|
||||
|
||||
|
||||
// another special case: the level is passed as first argument of the function
|
||||
// and so is not available to the macro
|
||||
//
|
||||
|
@@ -353,6 +353,9 @@ public:
|
||||
// dtor (not virtual, shouldn't be derived from)
|
||||
~wxFileType();
|
||||
|
||||
wxString
|
||||
GetExpandedCommand(const wxString& verb,
|
||||
const wxFileType::MessageParameters& params) const;
|
||||
private:
|
||||
// default ctor is private because the user code never creates us
|
||||
wxFileType();
|
||||
|
@@ -49,7 +49,9 @@ public:
|
||||
virtual bool DoMessageFromThreadWait();
|
||||
virtual WXDWORD WaitForThread(WXHANDLE hThread, int flags);
|
||||
#endif // wxUSE_THREADS
|
||||
virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
|
||||
wxPortId GetToolkitVersion(int *majVer = NULL,
|
||||
int *minVer = NULL,
|
||||
int *microVer = NULL) const wxOVERRIDE;
|
||||
|
||||
virtual bool CanUseStderr();
|
||||
virtual bool WriteToStderr(const wxString& text);
|
||||
@@ -77,7 +79,9 @@ public:
|
||||
virtual WXDWORD WaitForThread(WXHANDLE hThread, int WXUNUSED(flags))
|
||||
{ return DoSimpleWaitForThread(hThread); }
|
||||
#endif // wxUSE_THREADS
|
||||
virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
|
||||
virtual wxPortId GetToolkitVersion(int *majVer = NULL,
|
||||
int *minVer = NULL,
|
||||
int *microVer = NULL) const;
|
||||
|
||||
virtual bool CanUseStderr() { return false; }
|
||||
virtual bool WriteToStderr(const wxString& WXUNUSED(text)) { return false; }
|
||||
|
@@ -42,9 +42,18 @@ public:
|
||||
bool GetIcon(wxIconLocation *iconLoc) const;
|
||||
bool GetDescription(wxString *desc) const;
|
||||
bool GetOpenCommand(wxString *openCmd,
|
||||
const wxFileType::MessageParameters& params) const;
|
||||
const wxFileType::MessageParameters& params) const
|
||||
{
|
||||
*openCmd = GetExpandedCommand(wxS("open"), params);
|
||||
return !openCmd->empty();
|
||||
}
|
||||
|
||||
bool GetPrintCommand(wxString *printCmd,
|
||||
const wxFileType::MessageParameters& params) const;
|
||||
const wxFileType::MessageParameters& params) const
|
||||
{
|
||||
*printCmd = GetExpandedCommand(wxS("print"), params);
|
||||
return !printCmd->empty();
|
||||
}
|
||||
|
||||
size_t GetAllCommands(wxArrayString * verbs, wxArrayString * commands,
|
||||
const wxFileType::MessageParameters& params) const;
|
||||
@@ -76,6 +85,9 @@ public:
|
||||
// explicitly.
|
||||
void MSWSuppressNotifications(bool supress);
|
||||
|
||||
wxString
|
||||
GetExpandedCommand(const wxString& verb,
|
||||
const wxFileType::MessageParameters& params) const;
|
||||
private:
|
||||
// helper function: reads the command corresponding to the specified verb
|
||||
// from the registry (returns an empty string if not found)
|
||||
|
@@ -123,9 +123,9 @@
|
||||
|
||||
#define PACKAGE_BUGREPORT "wx-dev@googlegroups.com"
|
||||
#define PACKAGE_NAME "wxWidgets"
|
||||
#define PACKAGE_STRING "wxWidgets 3.1.0"
|
||||
#define PACKAGE_STRING "wxWidgets 3.1.1"
|
||||
#define PACKAGE_TARNAME "wxwidgets"
|
||||
#define PACKAGE_VERSION "3.1.0"
|
||||
#define PACKAGE_VERSION "3.1.1"
|
||||
|
||||
// for regex
|
||||
#define WX_NO_REGEX_ADVANCED 1
|
||||
|
@@ -105,6 +105,9 @@ public:
|
||||
bool SetDefaultIcon(const wxString& strIcon = wxEmptyString, int index = 0);
|
||||
bool Unassociate(wxFileType *ft);
|
||||
|
||||
wxString
|
||||
GetExpandedCommand(const wxString& verb,
|
||||
const wxFileType::MessageParameters& params) const;
|
||||
private:
|
||||
|
||||
// All that is needed to query type info - UTI and pointer to the manager
|
||||
|
@@ -161,13 +161,6 @@ protected:
|
||||
WXGLPixelFormat m_glFormat;
|
||||
wxGLAttributes m_GLAttrs;
|
||||
|
||||
#if wxOSX_USE_CARBON
|
||||
bool m_macCanvasIsShown,
|
||||
m_needsUpdate;
|
||||
WXGLContext m_dummyContext;
|
||||
GLint m_bufferName;
|
||||
#endif
|
||||
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
wxDECLARE_CLASS(wxGLCanvas);
|
||||
};
|
||||
|
@@ -152,25 +152,12 @@ protected:
|
||||
|
||||
int GetDefaultPickerCtrlFlag() const
|
||||
{
|
||||
// on macintosh, without additional borders
|
||||
// there's not enough space for focus rect
|
||||
return wxALIGN_CENTER_VERTICAL
|
||||
#ifdef __WXMAC__
|
||||
| wxTOP | wxRIGHT | wxBOTTOM
|
||||
#endif
|
||||
;
|
||||
return wxALIGN_CENTER_VERTICAL;
|
||||
}
|
||||
|
||||
int GetDefaultTextCtrlFlag() const
|
||||
{
|
||||
// on macintosh, without wxALL there's not enough space for focus rect
|
||||
return wxALIGN_CENTER_VERTICAL
|
||||
#ifdef __WXMAC__
|
||||
| wxALL
|
||||
#else
|
||||
| wxRIGHT
|
||||
#endif
|
||||
;
|
||||
return wxALIGN_CENTER_VERTICAL | wxRIGHT;
|
||||
}
|
||||
|
||||
void PostCreation();
|
||||
|
@@ -188,21 +188,27 @@ public:
|
||||
{ return m_osVersionMajor; }
|
||||
int GetOSMinorVersion() const
|
||||
{ return m_osVersionMinor; }
|
||||
int GetOSMicroVersion() const
|
||||
{ return m_osVersionMicro; }
|
||||
|
||||
// return true if the OS version >= major.minor
|
||||
bool CheckOSVersion(int major, int minor) const;
|
||||
bool CheckOSVersion(int major, int minor, int micro = 0) const;
|
||||
|
||||
int GetToolkitMajorVersion() const
|
||||
{ return m_tkVersionMajor; }
|
||||
int GetToolkitMinorVersion() const
|
||||
{ return m_tkVersionMinor; }
|
||||
int GetToolkitMicroVersion() const
|
||||
{ return m_tkVersionMicro; }
|
||||
|
||||
bool CheckToolkitVersion(int major, int minor) const
|
||||
bool CheckToolkitVersion(int major, int minor, int micro = 0) const
|
||||
{
|
||||
return DoCheckVersion(GetToolkitMajorVersion(),
|
||||
GetToolkitMinorVersion(),
|
||||
GetToolkitMicroVersion(),
|
||||
major,
|
||||
minor);
|
||||
minor,
|
||||
micro);
|
||||
}
|
||||
|
||||
bool IsUsingUniversalWidgets() const
|
||||
@@ -249,10 +255,19 @@ public:
|
||||
// setters
|
||||
// -----------------
|
||||
|
||||
void SetOSVersion(int major, int minor)
|
||||
{ m_osVersionMajor=major; m_osVersionMinor=minor; }
|
||||
void SetToolkitVersion(int major, int minor)
|
||||
{ m_tkVersionMajor=major; m_tkVersionMinor=minor; }
|
||||
void SetOSVersion(int major, int minor, int micro = 0)
|
||||
{
|
||||
m_osVersionMajor = major;
|
||||
m_osVersionMinor = minor;
|
||||
m_osVersionMicro = micro;
|
||||
}
|
||||
|
||||
void SetToolkitVersion(int major, int minor, int micro = 0)
|
||||
{
|
||||
m_tkVersionMajor = major;
|
||||
m_tkVersionMinor = minor;
|
||||
m_tkVersionMicro = micro;
|
||||
}
|
||||
|
||||
void SetOperatingSystemId(wxOperatingSystemId n)
|
||||
{ m_os = n; }
|
||||
@@ -277,9 +292,11 @@ public:
|
||||
bool IsOk() const
|
||||
{
|
||||
return m_osVersionMajor != -1 && m_osVersionMinor != -1 &&
|
||||
m_osVersionMicro != -1 &&
|
||||
m_os != wxOS_UNKNOWN &&
|
||||
!m_osDesc.IsEmpty() &&
|
||||
m_tkVersionMajor != -1 && m_tkVersionMinor != -1 &&
|
||||
m_tkVersionMicro != -1 &&
|
||||
m_port != wxPORT_UNKNOWN &&
|
||||
m_arch != wxARCH_INVALID &&
|
||||
m_endian != wxENDIAN_INVALID;
|
||||
@@ -289,9 +306,12 @@ public:
|
||||
|
||||
|
||||
protected:
|
||||
static bool DoCheckVersion(int majorCur, int minorCur, int major, int minor)
|
||||
static bool DoCheckVersion(int majorCur, int minorCur, int microCur,
|
||||
int major, int minor, int micro)
|
||||
{
|
||||
return majorCur > major || (majorCur == major && minorCur >= minor);
|
||||
return majorCur > major
|
||||
|| (majorCur == major && minorCur > minor)
|
||||
|| (majorCur == major && minorCur == minor && microCur >= micro);
|
||||
}
|
||||
|
||||
bool m_initializedForCurrentPlatform;
|
||||
@@ -305,7 +325,8 @@ protected:
|
||||
// Version of the OS; valid if m_os != wxOS_UNKNOWN
|
||||
// (-1 means not initialized yet).
|
||||
int m_osVersionMajor,
|
||||
m_osVersionMinor;
|
||||
m_osVersionMinor,
|
||||
m_osVersionMicro;
|
||||
|
||||
// Operating system ID.
|
||||
wxOperatingSystemId m_os;
|
||||
@@ -326,7 +347,7 @@ protected:
|
||||
|
||||
// Version of the underlying toolkit
|
||||
// (-1 means not initialized yet; zero means no toolkit).
|
||||
int m_tkVersionMajor, m_tkVersionMinor;
|
||||
int m_tkVersionMajor, m_tkVersionMinor, m_tkVersionMicro;
|
||||
|
||||
// name of the wxWidgets port
|
||||
wxPortId m_port;
|
||||
|
@@ -58,10 +58,9 @@ public:
|
||||
virtual void MutexGuiLeave() wxOVERRIDE;
|
||||
#endif
|
||||
|
||||
#if defined(__WXMAC__) && wxUSE_STDPATHS
|
||||
virtual wxStandardPaths& GetStandardPaths() wxOVERRIDE;
|
||||
#endif
|
||||
virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const wxOVERRIDE;
|
||||
wxPortId GetToolkitVersion(int *majVer = NULL,
|
||||
int *minVer = NULL,
|
||||
int *microVer = NULL) const wxOVERRIDE;
|
||||
|
||||
#ifdef __WXGTK20__
|
||||
virtual wxString GetDesktopEnvironment() const wxOVERRIDE;
|
||||
|
@@ -157,11 +157,10 @@ public:
|
||||
bool SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt = true);
|
||||
bool SetDefaultIcon(const wxString& strIcon = wxEmptyString, int index = 0);
|
||||
|
||||
private:
|
||||
wxString
|
||||
GetExpandedCommand(const wxString & verb,
|
||||
const wxFileType::MessageParameters& params) const;
|
||||
|
||||
private:
|
||||
wxMimeTypesManagerImpl *m_manager;
|
||||
wxArrayInt m_index; // in the wxMimeTypesManagerImpl arrays
|
||||
};
|
||||
|
@@ -140,11 +140,12 @@ WXDLLIMPEXP_CORE wxVersionInfo wxGetLibraryVersionInfo();
|
||||
WXDLLIMPEXP_BASE wxString wxGetOsDescription();
|
||||
|
||||
// Get OS version
|
||||
WXDLLIMPEXP_BASE wxOperatingSystemId wxGetOsVersion(int *majorVsn = NULL,
|
||||
int *minorVsn = NULL);
|
||||
WXDLLIMPEXP_BASE wxOperatingSystemId wxGetOsVersion(int *verMaj = NULL,
|
||||
int *verMin = NULL,
|
||||
int *verMicro = NULL);
|
||||
|
||||
// Check is OS version is at least the specified major and minor version
|
||||
WXDLLIMPEXP_BASE bool wxCheckOsVersion(int majorVsn, int minorVsn = 0);
|
||||
WXDLLIMPEXP_BASE bool wxCheckOsVersion(int majorVsn, int minorVsn = 0, int microVsn = 0);
|
||||
|
||||
// Get platform endianness
|
||||
WXDLLIMPEXP_BASE bool wxIsPlatformLittleEndian();
|
||||
|
@@ -27,9 +27,9 @@
|
||||
/* NB: this file is parsed by automatic tools so don't change its format! */
|
||||
#define wxMAJOR_VERSION 3
|
||||
#define wxMINOR_VERSION 1
|
||||
#define wxRELEASE_NUMBER 0
|
||||
#define wxRELEASE_NUMBER 1
|
||||
#define wxSUBRELEASE_NUMBER 0
|
||||
#define wxVERSION_STRING wxT("wxWidgets 3.1.0")
|
||||
#define wxVERSION_STRING wxT("wxWidgets 3.1.1")
|
||||
|
||||
/* nothing to update below this line when updating the version */
|
||||
/* ---------------------------------------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user