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
62 virtual void SetValidator(
const wxValidator& validator )
override;
63 virtual void StartingKey( wxKeyEvent& event )
override;
114 virtual wxObject *
Clone()
const override
119 void OnChar( wxKeyEvent& event );
137 : wxTextValidator( wxFILTER_NONE, aValue )
148 : wxTextValidator( wxFILTER_NONE, aValue )
158 virtual wxObject*
Clone()
const override
163 bool Validate( wxWindow* aParent )
override;
172 void compileRegEx(
const wxString& aRegEx,
int aFlags );
199 virtual bool Validate( wxWindow *aParent )
override;
203 wxString
IsValid(
const wxString& aVal )
const override;
253 virtual bool Validate( wxWindow* aParent )
override;
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...
This class provides a custom wxValidator object for limiting the allowable characters when defining f...
This class works around a bug in wxGrid where the first keystroke doesn't get sent through the valida...
std::unique_ptr< wxValidator > m_validator
virtual void StartingKey(wxKeyEvent &event) override
virtual void SetValidator(const wxValidator &validator) override
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.