]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/cmndlgs.i
added missing generic include file
[wxWidgets.git] / wxPython / src / cmndlgs.i
index 088e509085cafce9d1f680247ffe85eeb6bd5356..08c8a379193b57edb72cf3bf3740e06dd238468e 100644 (file)
 
 //----------------------------------------------------------------------
 
 
 //----------------------------------------------------------------------
 
-class wxColourData {
+class wxColourData : public wxObject {
 public:
     wxColourData();
     ~wxColourData();
 
     bool GetChooseFull();
 public:
     wxColourData();
     ~wxColourData();
 
     bool GetChooseFull();
-    wxColour& GetColour();
+    wxColour GetColour();
     wxColour GetCustomColour(int i);
     void SetChooseFull(int flag);
     void SetColour(const wxColour& colour);
     wxColour GetCustomColour(int i);
     void SetChooseFull(int flag);
     void SetColour(const wxColour& colour);
@@ -54,8 +54,6 @@ class wxColourDialog : public wxDialog {
 public:
     wxColourDialog(wxWindow* parent, wxColourData* data = NULL);
 
 public:
     wxColourDialog(wxWindow* parent, wxColourData* data = NULL);
 
-    %pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
-
     wxColourData& GetColourData();
     int ShowModal();
 };
     wxColourData& GetColourData();
     int ShowModal();
 };
@@ -69,9 +67,7 @@ public:
                 char* message = "Choose a directory",
                 char* defaultPath = "",
                 long style = 0,
                 char* message = "Choose a directory",
                 char* defaultPath = "",
                 long style = 0,
-                const wxPoint& pos = wxPyDefaultPosition);
-
-    %pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
+                const wxPoint& pos = wxDefaultPosition);
 
     wxString GetPath();
     wxString GetMessage();
 
     wxString GetPath();
     wxString GetMessage();
@@ -91,9 +87,7 @@ public:
                  char* defaultFile = "",
                  char* wildcard = "*.*",
                  long style = 0,
                  char* defaultFile = "",
                  char* wildcard = "*.*",
                  long style = 0,
-                 const wxPoint& pos = wxPyDefaultPosition);
-
-    %pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
+                 const wxPoint& pos = wxDefaultPosition);
 
     wxString GetDirectory();
     wxString GetFilename();
 
     wxString GetDirectory();
     wxString GetFilename();
@@ -156,13 +150,12 @@ public:
                              int LCOUNT, wxString* choices,
                              //char** clientData = NULL,
                              long style = wxOK | wxCANCEL | wxCENTRE,
                              int LCOUNT, wxString* choices,
                              //char** clientData = NULL,
                              long style = wxOK | wxCANCEL | wxCENTRE,
-                             wxPoint* pos = &wxPyDefaultPosition) {
+                             wxPoint* pos = &wxDefaultPosition) {
             return new wxSingleChoiceDialog(parent, *message, *caption,
                                             LCOUNT, choices, NULL, style, *pos);
         }
             return new wxSingleChoiceDialog(parent, *message, *caption,
                                             LCOUNT, choices, NULL, style, *pos);
         }
-    }
 
 
-    %pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
+    }
 
     int GetSelection();
     wxString GetStringSelection();
 
     int GetSelection();
     wxString GetStringSelection();
@@ -180,9 +173,7 @@ public:
                       char* caption = "Input Text",
                       char* defaultValue = "",
                       long style = wxOK | wxCANCEL | wxCENTRE,
                       char* caption = "Input Text",
                       char* defaultValue = "",
                       long style = wxOK | wxCANCEL | wxCENTRE,
-                      const wxPoint& pos = wxPyDefaultPosition);
-
-    %pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
+                      const wxPoint& pos = wxDefaultPosition);
 
     wxString GetValue();
     void SetValue(const wxString& value);
 
     wxString GetValue();
     void SetValue(const wxString& value);
@@ -191,14 +182,14 @@ public:
 
 //----------------------------------------------------------------------
 
 
 //----------------------------------------------------------------------
 
-class wxFontData {
+class wxFontData : public wxObject {
 public:
     wxFontData();
     ~wxFontData();
 
     void EnableEffects(bool enable);
     bool GetAllowSymbols();
 public:
     wxFontData();
     ~wxFontData();
 
     void EnableEffects(bool enable);
     bool GetAllowSymbols();
-    wxColour& GetColour();
+    wxColour GetColour();
     wxFont GetChosenFont();
     bool GetEnableEffects();
     wxFont GetInitialFont();
     wxFont GetChosenFont();
     bool GetEnableEffects();
     wxFont GetInitialFont();
@@ -216,8 +207,6 @@ class wxFontDialog : public wxDialog {
 public:
     wxFontDialog(wxWindow* parent, wxFontData* data);
 
 public:
     wxFontDialog(wxWindow* parent, wxFontData* data);
 
-    %pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
-
     wxFontData& GetFontData();
     int ShowModal();
 };
     wxFontData& GetFontData();
     int ShowModal();
 };
@@ -231,9 +220,7 @@ public:
                     char* message,
                     char* caption = "Message box",
                     long style = wxOK | wxCANCEL | wxCENTRE,
                     char* message,
                     char* caption = "Message box",
                     long style = wxOK | wxCANCEL | wxCENTRE,
-                    const wxPoint& pos = wxPyDefaultPosition);
-
-    %pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
+                    const wxPoint& pos = wxDefaultPosition);
 
     int ShowModal();
 };
 
     int ShowModal();
 };