// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-#ifndef __VALTEXTH__
-#define __VALTEXTH__
+#ifndef _WX_VALTEXTH__
+#define _WX_VALTEXTH__
#ifdef __GNUG__
#pragma interface "valtext.h"
#endif
+#if defined(wxUSE_VALIDATORS) && !wxUSE_VALIDATORS
+ #error "wxWindows is compiled without support for wxValidator"
+#endif
+
#include "wx/validate.h"
#define wxFILTER_NONE 0x0000
{
DECLARE_DYNAMIC_CLASS(wxTextValidator)
public:
- wxTextValidator(long style = wxFILTER_NONE, wxString *val = NULL);
+ wxTextValidator(long style = wxFILTER_NONE, wxString *val = (wxString *) NULL);
wxTextValidator(const wxTextValidator& val);
~wxTextValidator();
// 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.