]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/wizard.i
Added mouse event handler invocations
[wxWidgets.git] / wxPython / src / wizard.i
index 992b4af0bf862a4d7df56fbbd6bfb3ce9584539b..c3ef1b97221425233910e74937a910e2103b165a 100644 (file)
@@ -70,9 +70,12 @@ public:
     // False otherwise and for EVT_WIZARD_PAGE_CHANGED return True if we came
     // from the previous page and False if we returned from the next one
     // (this function doesn't make sense for CANCEL events)
-    bool GetDirection() const { return m_direction; }
+    bool GetDirection() const;
 
-    wxWizardPage*   GetPage() const { return m_page; }
+    wxWizardPage*   GetPage() const;
+
+    %property(Direction, GetDirection, doc="See `GetDirection`");
+    %property(Page, GetPage, doc="See `GetPage`");
 };
 
 
@@ -100,9 +103,9 @@ public:
         bool Create(wxWizard *parent,
                     const wxBitmap& bitmap = wxNullBitmap,
                     const wxString& resource = wxPyEmptyString) {
-            wxChar* res = NULL;
+            const wxChar* res = NULL;
             if (resource.length())
-                res = (wxChar*)resource.c_str();
+                res = (const wxChar*)resource.c_str();
             return self->Create(parent, bitmap, res);
         }
     }
@@ -118,6 +121,10 @@ public:
     // dynamically or to do something even more fancy. It's ok to return
     // wxNullBitmap from here - the default one will be used then.
     virtual wxBitmap GetBitmap() const;
+
+    %property(Bitmap, GetBitmap, doc="See `GetBitmap`");
+    %property(Next, GetNext, doc="See `GetNext`");
+    %property(Prev, GetPrev, doc="See `GetPrev`");
 };
 
 
@@ -203,7 +210,7 @@ MustHaveApp(wxPyWizardPage);
 class wxPyWizardPage : public wxWizardPage {
 public:
 
-    %pythonAppend wxPyWizardPage   "self._setCallbackInfo(self, PyWizardPage);self._setOORInfo(self)"
+    %pythonAppend wxPyWizardPage   "self._setOORInfo(self);" setCallbackInfo(PyWizardPage)
     %pythonAppend wxPyWizardPage() ""
     %typemap(out) wxPyWizardPage*;    // turn off this typemap
     
@@ -215,9 +222,9 @@ public:
         wxPyWizardPage(wxWizard *parent,
                        const wxBitmap* bitmap = &wxNullBitmap,
                        const wxString* resource = &wxPyEmptyString) {
-            wxChar* res = NULL;
+            const wxChar* res = NULL;
             if (resource->length())
-                res = (wxChar*)resource->c_str();
+                res = (const wxChar*)resource->c_str();
             return new wxPyWizardPage(parent, *bitmap, res);
         }
     }
@@ -231,9 +238,9 @@ public:
         bool Create(wxWizard *parent,
                     const wxBitmap& bitmap = wxNullBitmap,
                     const wxString& resource = wxPyEmptyString) {
-            wxChar* res = NULL;
+            const wxChar* res = NULL;
             if (resource.length())
-                res = (wxChar*)resource.c_str();
+                res = (const wxChar*)resource.c_str();
             return self->Create(parent, bitmap, res);
         }
     }
@@ -410,6 +417,10 @@ public:
 
     bool HasNextPage(wxWizardPage* page);
     bool HasPrevPage(wxWizardPage* page);
+    
+    %property(CurrentPage, GetCurrentPage, doc="See `GetCurrentPage`");
+    %property(PageAreaSizer, GetPageAreaSizer, doc="See `GetPageAreaSizer`");
+    %property(PageSize, GetPageSize, SetPageSize, doc="See `GetPageSize` and `SetPageSize`");
 };