]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_settings.i
Doh! I changed the AddPane parameter names but didn't change their usage.
[wxWidgets.git] / wxPython / src / _settings.i
index 379a988facb29ab35a4ccc37cd1046d2fa52ed14..3f4a0c88bc115e80ff337d5f37ce29e34b8c699c 100644 (file)
@@ -129,7 +129,8 @@ enum wxSystemMetric
 enum wxSystemFeature
 {
     wxSYS_CAN_DRAW_FRAME_DECORATIONS = 1,
-    wxSYS_CAN_ICONIZE_FRAME
+    wxSYS_CAN_ICONIZE_FRAME,
+    wxSYS_TABLET_PRESENT 
 };
 
 
@@ -148,6 +149,12 @@ enum wxSystemScreenType
 
 //---------------------------------------------------------------------------
 
+MustHaveApp(wxSystemSettings::GetColour);
+MustHaveApp(wxSystemSettings::GetFont);
+MustHaveApp(wxSystemSettings::GetMetric);
+MustHaveApp(wxSystemSettings::HasFeature);
+MustHaveApp(wxSystemSettings::GetScreenType);
+MustHaveApp(wxSystemSettings::SetScreenType);
 
 class wxSystemSettings
 {
@@ -159,7 +166,7 @@ public:
     static wxFont GetFont(wxSystemFont index);
 
     // get a system-dependent metric
-    static int GetMetric(wxSystemMetric index);
+    static int GetMetric(wxSystemMetric index, wxWindow* win=NULL);
 
     // return True if the port has certain feature
     static bool HasFeature(wxSystemFeature index);
@@ -175,30 +182,25 @@ public:
 };
 
 
-// %pythoncode {
-// %# backwards compatibility aliasses
-// SystemSettings_GetSystemColour = SystemSettings_GetColour
-// SystemSettings_GetSystemFont   = SystemSettings_GetFont
-// SystemSettings_GetSystemMetric = SystemSettings_GetMetric
-// }    
-
-
 //---------------------------------------------------------------------------
 
+MAKE_CONST_WXSTRING(WINDOW_DEFAULT_VARIANT);
+
 class wxSystemOptions : public wxObject
 {
 public:
-    wxSystemOptions() { }
+    wxSystemOptions();
 
     // User-customizable hints to wxWindows or associated libraries
     // These could also be used to influence GetSystem... calls, indeed
     // to implement SetSystemColour/Font/Metric
 
     static void SetOption(const wxString& name, const wxString& value);
-    %name(SetOptionInt) static void SetOption(const wxString& name, int value);
+    %Rename(SetOptionInt,  static void, SetOption(const wxString& name, int value));
     static wxString GetOption(const wxString& name) ;
     static int GetOptionInt(const wxString& name) ;
     static bool HasOption(const wxString& name) ;
+    static bool IsFalse(const wxString& name);
 };