34 #include <wx/valtext.h> 49 virtual void SetValidator(
const wxValidator& validator )
override;
50 virtual void StartingKey( wxKeyEvent& event )
override;
101 virtual wxObject *
Clone()
const override 106 void OnChar( wxKeyEvent& event );
124 : wxTextValidator( wxFILTER_NONE, aValue )
135 : wxTextValidator( wxFILTER_NONE, aValue )
145 virtual wxObject*
Clone()
const override 150 bool Validate( wxWindow* aParent )
override;
154 void compileRegEx(
const wxString& aRegEx,
int aFlags );
180 wxTextValidator( wxFILTER_EXCLUDE_CHAR_LIST, aValue )
182 SetCharExcludes( wxT(
"\r\n\t" ) );
185 virtual wxObject*
Clone()
const override 190 bool Validate( wxWindow* aParent )
override;
209 virtual bool Validate( wxWindow *aParent )
override;
213 wxString
IsValid(
const wxString& aVal )
const override;
239 #endif // #ifndef VALIDATORS_H wxString m_regExString
Original compilation flags (for copy constructor)
void compileRegEx(const wxString &aRegEx, int aFlags)
< Compiles and stores a regular expression
REGEX_VALIDATOR(const wxString &aRegEx, int aFlags, wxString *aValue=nullptr)
void ValidatorTransferToWindowWithoutEvents(wxValidator &aValidator)
Call a text validator's TransferDataToWindow method without firing a text change event.
wxScopedPtr< wxValidator > m_validator
bool Validate(wxWindow *aParent) override
virtual wxObject * Clone() const override
virtual wxObject * Clone() const override
This class provides a custom wxValidator object for limiting the allowable characters when defining f...
virtual void StartingKey(wxKeyEvent &event) override
This class works around a bug in wxGrid where the first keystroke doesn't get sent through the valida...
void OnTextChanged(wxCommandEvent &event)
ENV_VAR_NAME_VALIDATOR(wxString *aValue=nullptr)
virtual wxObject * Clone() const override
virtual bool TransferToWindow() override
virtual bool TransferFromWindow() override
Custom validator that verifies that a string defines a valid LIB_ID.
LIB_ID_VALIDATOR(wxString *aValue=nullptr)
virtual void SetValidator(const wxValidator &validator) override
virtual wxObject * Clone() const override
This class provides a custom wxValidator object for limiting the allowable characters when defining a...
FILE_NAME_WITH_PATH_CHAR_VALIDATOR(wxString *aValue=nullptr)
REGEX_VALIDATOR(const REGEX_VALIDATOR &aOther)
int m_regExFlags
Compiled regex.
REGEX_VALIDATOR(const wxString &aRegEx, wxString *aValue=nullptr)
NETNAME_VALIDATOR(wxString *aVal=nullptr)
wxString IsValid(const wxString &aVal) const override
virtual bool Validate(wxWindow *aParent) override
bool Validate(wxWindow *aParent) override
void OnChar(wxKeyEvent &event)
Custom validator that checks verifies that a string exactly matches a regular expression.
virtual ~ENV_VAR_NAME_VALIDATOR()