#ifndef _WX_PLATINFO_H_
#define _WX_PLATINFO_H_
-#include "wx/defs.h"
+#include "wx/string.h"
// ----------------------------------------------------------------------------
// wxPlatformInfo
wxPORT_GTK = 1 << 3, // wxGTK, using GTK+ 1.x, 2.x, GPE or Maemo
wxPORT_MGL = 1 << 4, // wxMGL, using wxUniversal
wxPORT_X11 = 1 << 5, // wxX11, using wxUniversal
- wxPORT_OS2 = 1 << 6, // wxOS2, using OS/2 Presentation Manager
+ wxPORT_PM = 1 << 6, // wxOS2, using OS/2 Presentation Manager
+ wxPORT_OS2 = wxPORT_PM, // wxOS2, using OS/2 Presentation Manager
wxPORT_MAC = 1 << 7, // wxMac, using Carbon or Classic Mac API
wxPORT_COCOA = 1 << 8, // wxCocoa, using Cocoa NextStep/Mac API
wxPORT_WINCE = 1 << 9, // wxWinCE, toolkit is WinCE SDK API
- wxPORT_PALMOS = 1 << 10 // wxPalmOS, toolkit is PalmOS API
+ wxPORT_PALMOS = 1 << 10, // wxPalmOS, toolkit is PalmOS API
+ wxPORT_DFB = 1 << 11 // wxDFB, using wxUniversal
};
// architecture of the operating system
wxOperatingSystemId id = wxOS_UNKNOWN,
int osMajor = -1, int osMinor = -1,
wxArchitecture arch = wxARCH_INVALID,
- wxEndianness endian = wxENDIAN_INVALID);
+ wxEndianness endian = wxENDIAN_INVALID,
+ bool usingUniversal = false);
// default copy ctor, assignment operator and dtor are ok
static wxString GetOperatingSystemFamilyName(wxOperatingSystemId os);
static wxString GetOperatingSystemIdName(wxOperatingSystemId os);
- static wxString GetPortIdName(wxPortId port);
- static wxString GetPortIdShortName(wxPortId port);
+ static wxString GetPortIdName(wxPortId port, bool usingUniversal);
+ static wxString GetPortIdShortName(wxPortId port, bool usingUniversal);
static wxString GetArchName(wxArchitecture arch);
static wxString GetEndiannessName(wxEndianness end);
int GetToolkitMinorVersion() const
{ return m_tkVersionMinor; }
+ bool IsUsingUniversalWidgets() const
+ { return m_usingUniversal; }
+
wxOperatingSystemId GetOperatingSystemId() const
{ return m_os; }
wxPortId GetPortId() const
wxString GetOperatingSystemIdName() const
{ return GetOperatingSystemIdName(m_os); }
wxString GetPortIdName() const
- { return GetPortIdName(m_port); }
+ { return GetPortIdName(m_port, m_usingUniversal); }
wxString GetPortIdShortName() const
- { return GetPortIdShortName(m_port); }
+ { return GetPortIdShortName(m_port, m_usingUniversal); }
wxString GetArchName() const
{ return GetArchName(m_arch); }
wxString GetEndiannessName() const
m_arch != wxARCH_INVALID && m_endian != wxENDIAN_INVALID;
}
- static bool IsUsingUniversalWidgets()
- {
- #ifdef __WXUNIVERSAL__
- return true;
- #else
- return false;
- #endif
- }
-
protected:
// OS stuff
// name of the wxWidgets port
wxPortId m_port;
+ // is using wxUniversal widgets?
+ bool m_usingUniversal;
+
// others
// -----------------