KiCad PCB EDA Suite
|
This class provides a custom wxValidator object for limiting the allowable characters when defining an environment variable name in a text edit control. More...
#include <validators.h>
Public Member Functions | |
ENV_VAR_NAME_VALIDATOR (wxString *aValue=nullptr) | |
ENV_VAR_NAME_VALIDATOR (const ENV_VAR_NAME_VALIDATOR &val) | |
virtual | ~ENV_VAR_NAME_VALIDATOR () |
virtual wxObject * | Clone () const override |
void | OnChar (wxKeyEvent &event) |
void | OnTextChanged (wxCommandEvent &event) |
This class provides a custom wxValidator object for limiting the allowable characters when defining an environment variable name in a text edit control.
Only uppercase, numbers, and underscore (_) characters are valid and the first character of the name cannot start with a number. This is according to IEEE Std 1003.1-2001. Even though most systems support other characters, these characters guarantee compatibility for all shells.
Definition at line 87 of file validators.h.
ENV_VAR_NAME_VALIDATOR::ENV_VAR_NAME_VALIDATOR | ( | wxString * | aValue = nullptr | ) |
Definition at line 81 of file validators.cpp.
References OnChar().
ENV_VAR_NAME_VALIDATOR::ENV_VAR_NAME_VALIDATOR | ( | const ENV_VAR_NAME_VALIDATOR & | val | ) |
Definition at line 88 of file validators.cpp.
References OnChar().
|
virtual |
Definition at line 97 of file validators.cpp.
References OnChar().
|
inlineoverridevirtual |
Definition at line 97 of file validators.h.
void ENV_VAR_NAME_VALIDATOR::OnChar | ( | wxKeyEvent & | event | ) |
Definition at line 103 of file validators.cpp.
References OnTextChanged().
Referenced by ENV_VAR_NAME_VALIDATOR(), and ~ENV_VAR_NAME_VALIDATOR().
void ENV_VAR_NAME_VALIDATOR::OnTextChanged | ( | wxCommandEvent & | event | ) |
Definition at line 174 of file validators.cpp.
Referenced by OnChar().