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;
159 void compileRegEx(
const wxString& aRegEx,
int aFlags );
185 wxTextValidator( wxFILTER_EXCLUDE_CHAR_LIST, aValue )
187 SetCharExcludes( wxT(
"\r\n\t" ) );
190 virtual wxObject*
Clone()
const override
195 bool Validate( wxWindow* aParent )
override;
214 virtual bool Validate( wxWindow *aParent )
override;
218 wxString
IsValid(
const wxString& aVal )
const 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)
ENV_VAR_NAME_VALIDATOR(wxString *aValue=nullptr)
void OnTextChanged(wxCommandEvent &event)
virtual wxObject * Clone() const override
This class provides a custom wxValidator object for limiting the allowable characters when defining f...
FILE_NAME_WITH_PATH_CHAR_VALIDATOR(wxString *aValue=nullptr)
This class works around a bug in wxGrid where the first keystroke doesn't get sent through the valida...
wxScopedPtr< wxValidator > m_validator
virtual void StartingKey(wxKeyEvent &event) override
virtual void SetValidator(const wxValidator &validator) override
Custom validator that verifies that a string defines a valid LIB_ID.
bool Validate(wxWindow *aParent) override
virtual wxObject * Clone() const override
LIB_ID_VALIDATOR(wxString *aValue=nullptr)
wxString IsValid(const wxString &aVal) const override
virtual wxObject * Clone() const override
virtual bool Validate(wxWindow *aParent) override
virtual bool TransferToWindow() override
NETNAME_VALIDATOR(wxString *aVal=nullptr)
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.