// return true if the port has certain feature
static bool HasFeature(wxSystemFeature index);
-
-
- // the backwards compatible versions, don't use these methods in the new
- // code!
- static wxColour GetSystemColour(int index)
- { return GetColour((wxSystemColour)index); }
- static wxFont GetSystemFont(int index)
- { return GetFont((wxSystemFont)index); }
- static int GetSystemMetric(int index)
- { return GetMetric((wxSystemMetric)index); }
};
// ----------------------------------------------------------------------------
// include the declaration of the real platform-dependent class
// ----------------------------------------------------------------------------
-#if defined(__WXMSW__)
- #define wxHAS_SS_NATIVE
-#elif defined(__WXMOTIF__)
- #include "wx/motif/settings.h"
-#elif defined(__WXGTK__)
- #define wxHAS_SS_NATIVE
-#elif defined(__WXMGL__)
- #define wxHAS_SS_NATIVE
-#elif defined(__WXMAC__)
- #define wxHAS_SS_NATIVE
-#elif defined(__WXPM__)
- #include "wx/os2/settings.h"
-#endif
-
-// TODO: this should go away once all ports are updated to use wxSSNative
-#ifdef wxHAS_SS_NATIVE
-
class wxSystemSettings : public wxSystemSettingsNative
{
public:
// wxSystemSettingsNative
static wxColour GetColour(wxSystemColour index);
#endif // __WXUNIVERSAL__
-};
-#endif // wxHAS_SS_NATIVE
+
+ // the backwards compatible versions of wxSystemSettingsNative functions,
+ // don't use these methods in the new code!
+ static wxColour GetSystemColour(int index)
+ { return GetColour((wxSystemColour)index); }
+ static wxFont GetSystemFont(int index)
+ { return GetFont((wxSystemFont)index); }
+ static int GetSystemMetric(int index)
+ { return GetMetric((wxSystemMetric)index); }
+};
#endif
// _WX_SETTINGS_H_BASE_