]> git.saurik.com Git - wxWidgets.git/commitdiff
due to a typo in #if condition, validation was disabled for wizard pages -- fixed now
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Aug 2005 00:22:47 +0000 (00:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Aug 2005 00:22:47 +0000 (00:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/wizard.h
version-script.in

index a7d0250f1bde174c42e592beb83187bc43459a74..61d66c976941bd1ee46b8e942813d0fd7c66cee5 100644 (file)
@@ -76,21 +76,28 @@ public:
     // wxNullBitmap from here - the default one will be used then.
     virtual wxBitmap GetBitmap() const { return m_bitmap; }
 
-#if wxUSE_VALIDATOR
-    /// Override the base functions to allow a validator to be assigned to this page.
-    bool TransferDataToWindow()
+    // due to a typo in #if condition, the validation functions were disabled
+    // in 2.6.[01] releases so check for wxABI_VERSION here
+#if wxUSE_VALIDATORS && (wxABI_VERSION >= 20602)
+    // Override the base functions to allow a validator to be assigned to this page.
+    virtual bool TransferDataToWindow()
     {
-        return GetValidator() ? GetValidator()->TransferToWindow() : wxPanel::TransferDataToWindow();
+        return GetValidator() ? GetValidator()->TransferToWindow()
+                              : wxPanel::TransferDataToWindow();
     }
-    bool TransferDataFromWindow()
+
+    virtual bool TransferDataFromWindow()
     {
-        return GetValidator() ? GetValidator()->TransferFromWindow() : wxPanel::TransferDataFromWindow();
+        return GetValidator() ? GetValidator()->TransferFromWindow()
+                              : wxPanel::TransferDataFromWindow();
     }
-    bool Validate()
+
+    virtual bool Validate()
     {
-        return GetValidator() ? GetValidator()->Validate(this) : wxPanel::Validate();
+        return GetValidator() ? GetValidator()->Validate(this)
+                              : wxPanel::Validate();
     }
-#endif // wxUSE_VALIDATOR
+#endif // wxUSE_VALIDATORS
 
 protected:
     // common part of ctors:
index c0c0dc8e6ee8ccb6afa50f8bf2bd8a10d7ae0881..08ff67b918da3326cf94a7d5a74894516d57c2e1 100644 (file)
@@ -50,6 +50,9 @@
         *wxVectorBase*size*;
         *wxVectorBase*wxVectorBase*;
         *wxWizard*FinishLayout*;
+        *wxWizardPage*TransferDataFromWindow*;
+        *wxWizardPage*TransferDataToWindow*;
+        *wxWizardPage*Validate*;
         *wxXmlResource*ConvertFileNameToURL*wxString*;
         *wxXmlResource*IsArchive*wxString*;
         *wxXmlResource*Unload*wxString*;