KiCad PCB EDA Suite
|
A text control validator used for validating the text allowed in fields. More...
#include <validators.h>
Public Member Functions | |
FIELD_VALIDATOR (int aFieldId, wxString *aValue=nullptr) | |
FIELD_VALIDATOR (const FIELD_VALIDATOR &aValidator) | |
virtual wxObject * | Clone () const override |
virtual bool | Validate (wxWindow *aParent) override |
Override the default Validate() function provided by wxTextValidator to provide better error messages. | |
Private Attributes | |
int | m_fieldId |
A text control validator used for validating the text allowed in fields.
Definition at line 220 of file validators.h.
FIELD_VALIDATOR::FIELD_VALIDATOR | ( | int | aFieldId, |
wxString * | aValue = nullptr |
||
) |
Definition at line 312 of file validators.cpp.
References m_fieldId, REFERENCE_FIELD, SHEETFILENAME_V, and SHEETNAME_V.
FIELD_VALIDATOR::FIELD_VALIDATOR | ( | const FIELD_VALIDATOR & | aValidator | ) |
Definition at line 341 of file validators.cpp.
|
inlineoverridevirtual |
Definition at line 227 of file validators.h.
|
overridevirtual |
Override the default Validate() function provided by wxTextValidator to provide better error messages.
aParent | is the parent window of the error message dialog. |
Definition at line 347 of file validators.cpp.
References _, DATASHEET_FIELD, FOOTPRINT_FIELD, m_fieldId, REFERENCE_FIELD, SHEETFILENAME_V, SHEETNAME_V, text, and VALUE_FIELD.
|
private |
Definition at line 239 of file validators.h.
Referenced by FIELD_VALIDATOR(), and Validate().