]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/settings.h
wxFont::IsFixedWidth for wxMGL
[wxWidgets.git] / include / wx / settings.h
index 46dac734b58f624b30c9c762be7b87a0b4991e43..8266bce44076894d23b979b5e1ecb1d65acb0bf7 100644 (file)
@@ -149,39 +149,12 @@ public:
 
     // 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__)
-    #include "wx/gtk/settings.h"
-#elif defined(__WXMGL__)
-    #include "wx/mgl/settings.h"
-#elif defined(__WXMAC__)
-    #include "wx/mac/settings.h"
-#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:
@@ -191,9 +164,17 @@ 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_