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
101 virtual wxObject *
Clone()
const override
106 void OnChar( wxKeyEvent& event );
123 : wxTextValidator( wxFILTER_NONE, aValue )
134 : wxTextValidator( wxFILTER_NONE, aValue )
144 virtual wxObject*
Clone()
const override
149 bool Validate( wxWindow* aParent )
override;
158 void compileRegEx(
const wxString& aRegEx,
int aFlags );
185 virtual bool Validate( wxWindow *aParent )
override;
189 wxString
IsValid(
const wxString& aVal )
const override;
239 virtual bool Validate( wxWindow* aParent )
override;
241 bool DoValidate(
const wxString& aValue, wxWindow* aParent );
Provide a custom wxValidator object for limiting the allowable characters when defining an environmen...
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)
Provide a custom wxValidator object for limiting the allowable characters when defining file names wi...
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
wxRegEx m_regEx
Compiled regular expression.
REGEX_VALIDATOR(const REGEX_VALIDATOR &aOther)
const wxString & GetRegEx() const
bool Validate(wxWindow *aParent) override
wxString m_regExString
Original regular expression (for copy constructor).
REGEX_VALIDATOR(const wxString &aRegEx, wxString *aValue=nullptr)
int m_regExFlags
Original compilation flags (for copy constructor).
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.