X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c67daf87774c71ae9f73af9969008af220e52a11..82c9f85ce5aceaa3aedac7e690070d5eff904e5b:/include/wx/valtext.h?ds=sidebyside diff --git a/include/wx/valtext.h b/include/wx/valtext.h index bd2bb8d93b..942110e65b 100644 --- a/include/wx/valtext.h +++ b/include/wx/valtext.h @@ -16,6 +16,10 @@ #pragma interface "valtext.h" #endif +#include "wx/defs.h" + +#if wxUSE_VALIDATORS + #include "wx/validate.h" #define wxFILTER_NONE 0x0000 @@ -39,7 +43,7 @@ public: // if you're passing a reference to a validator. // Another possibility is to always pass a pointer to a new validator // (so the calling code can use a copy constructor of the relevant class). - virtual wxValidator *Clone(void) const { return new wxTextValidator(*this); } + virtual wxObject *Clone(void) const { return new wxTextValidator(*this); } bool Copy(const wxTextValidator& val); // Called when the value in the window must be validated. @@ -75,3 +79,7 @@ protected: }; #endif + // wxUSE_VALIDATORS + +#endif + // _WX_VALTEXTH__