KiCad PCB EDA Suite
|
A text control validator used for validating the text allowed in library and schematic symbol fields. More...
#include <sch_validators.h>
Public Member Functions | |
SCH_FIELD_VALIDATOR (bool aIsLibEditor, int aFieldId, wxString *aValue=nullptr) | |
SCH_FIELD_VALIDATOR (const SCH_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. More... | |
Private Attributes | |
int | m_fieldId |
bool | m_isLibEditor |
A text control validator used for validating the text allowed in library and schematic symbol fields.
Definition at line 53 of file sch_validators.h.
SCH_FIELD_VALIDATOR::SCH_FIELD_VALIDATOR | ( | bool | aIsLibEditor, |
int | aFieldId, | ||
wxString * | aValue = nullptr |
||
) |
Definition at line 39 of file sch_validators.cpp.
References m_fieldId, m_isLibEditor, REFERENCE_FIELD, SHEETFILENAME_V, and SHEETNAME_V.
SCH_FIELD_VALIDATOR::SCH_FIELD_VALIDATOR | ( | const SCH_FIELD_VALIDATOR & | aValidator | ) |
Definition at line 73 of file sch_validators.cpp.
References m_fieldId, and m_isLibEditor.
|
inlineoverridevirtual |
Definition at line 60 of file sch_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 81 of file sch_validators.cpp.
References _, DATASHEET_FIELD, FOOTPRINT_FIELD, m_fieldId, REFERENCE_FIELD, SHEETFILENAME_V, SHEETNAME_V, text, and VALUE_FIELD.
|
private |
Definition at line 72 of file sch_validators.h.
Referenced by SCH_FIELD_VALIDATOR(), and Validate().
|
private |
Definition at line 73 of file sch_validators.h.
Referenced by SCH_FIELD_VALIDATOR().