36#include <wx/valtext.h>
46#define SHEETNAME_V 100
47#define SHEETFILENAME_V 101
48#define SHEETUSERFIELD_V 102
50#define LABELUSERFIELD_V 200
97 virtual wxObject *
Clone()
const override
102 void OnChar( wxKeyEvent& event );
120 : wxTextValidator( wxFILTER_NONE, aValue )
131 : wxTextValidator( wxFILTER_NONE, aValue )
141 virtual wxObject*
Clone()
const override
146 bool Validate( wxWindow* aParent )
override;
155 void compileRegEx(
const wxString& aRegEx,
int aFlags );
182 virtual bool Validate( wxWindow *aParent )
override;
186 wxString
IsValid(
const wxString& aVal )
const override;
236 virtual bool Validate( wxWindow* aParent )
override;
238 bool DoValidate(
const wxString& aValue, wxWindow* aParent );
This class provides a custom wxValidator object for limiting the allowable characters when defining a...
virtual ~ENV_VAR_NAME_VALIDATOR()
void OnChar(wxKeyEvent &event)
void OnTextChanged(wxCommandEvent &event)
virtual wxObject * Clone() const override
A text control validator used for validating the text allowed in fields.
virtual wxObject * Clone() const override
virtual bool Validate(wxWindow *aParent) override
Override the default Validate() function provided by wxTextValidator to provide better error messages...
bool DoValidate(const wxString &aValue, wxWindow *aParent)
This class provides a custom wxValidator object for limiting the allowable characters when defining f...
wxString IsValid(const wxString &aVal) const override
virtual wxObject * Clone() const override
virtual bool Validate(wxWindow *aParent) override
virtual bool TransferToWindow() override
virtual bool TransferFromWindow() override
Custom validator that checks verifies that a string exactly matches a regular expression.
virtual wxObject * Clone() const override
REGEX_VALIDATOR(const REGEX_VALIDATOR &aOther)
const wxString & GetRegEx() const
bool Validate(wxWindow *aParent) override
wxString m_regExString
Original compilation flags (for copy constructor)
REGEX_VALIDATOR(const wxString &aRegEx, wxString *aValue=nullptr)
int m_regExFlags
Compiled regex.
REGEX_VALIDATOR(const wxString &aRegEx, int aFlags, wxString *aValue=nullptr)
void compileRegEx(const wxString &aRegEx, int aFlags)
< Compiles and stores a regular expression
void ValidatorTransferToWindowWithoutEvents(wxValidator &aValidator)
Call a text validator's TransferDataToWindow method without firing a text change event.