KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LIB_SYMBOL_REFERENCE_VALIDATOR Class Reference
Inheritance diagram for LIB_SYMBOL_REFERENCE_VALIDATOR:
FIELD_VALIDATOR

Public Member Functions

 LIB_SYMBOL_REFERENCE_VALIDATOR (std::function< bool()> aAllowEmpty)
 
 LIB_SYMBOL_REFERENCE_VALIDATOR (const LIB_SYMBOL_REFERENCE_VALIDATOR &aOther)
 
wxObject * Clone () const override
 
bool Validate (wxWindow *aParent) override
 Override the default Validate() function provided by wxTextValidator to provide better error messages.
 
bool DoValidate (const wxString &aValue, wxWindow *aParent)
 

Private Attributes

std::function< bool()> m_allowEmpty
 
FIELD_T m_fieldId
 

Detailed Description

Definition at line 54 of file dialog_lib_fields_table.cpp.

Constructor & Destructor Documentation

◆ LIB_SYMBOL_REFERENCE_VALIDATOR() [1/2]

LIB_SYMBOL_REFERENCE_VALIDATOR::LIB_SYMBOL_REFERENCE_VALIDATOR ( std::function< bool()> aAllowEmpty)
inline

◆ LIB_SYMBOL_REFERENCE_VALIDATOR() [2/2]

LIB_SYMBOL_REFERENCE_VALIDATOR::LIB_SYMBOL_REFERENCE_VALIDATOR ( const LIB_SYMBOL_REFERENCE_VALIDATOR & aOther)
inline

Member Function Documentation

◆ Clone()

wxObject * LIB_SYMBOL_REFERENCE_VALIDATOR::Clone ( ) const
inlineoverridevirtual

Reimplemented from FIELD_VALIDATOR.

Definition at line 69 of file dialog_lib_fields_table.cpp.

References LIB_SYMBOL_REFERENCE_VALIDATOR().

◆ DoValidate()

bool FIELD_VALIDATOR::DoValidate ( const wxString & aValue,
wxWindow * aParent )
inherited

Definition at line 394 of file validators.cpp.

References _, GetFieldValidationErrorMessage(), and m_fieldId.

Referenced by Validate().

◆ Validate()

bool LIB_SYMBOL_REFERENCE_VALIDATOR::Validate ( wxWindow * aParent)
inlineoverridevirtual

Override the default Validate() function provided by wxTextValidator to provide better error messages.

Parameters
aParentis the parent window of the error message dialog.
Returns
true if the text in the control is valid otherwise false.

Reimplemented from FIELD_VALIDATOR.

Definition at line 71 of file dialog_lib_fields_table.cpp.

References m_allowEmpty, text, and FIELD_VALIDATOR::Validate().

Member Data Documentation

◆ m_allowEmpty

std::function<bool()> LIB_SYMBOL_REFERENCE_VALIDATOR::m_allowEmpty
private

◆ m_fieldId

FIELD_T FIELD_VALIDATOR::m_fieldId
privateinherited

Definition at line 158 of file validators.h.

Referenced by DoValidate(), FIELD_VALIDATOR(), and FIELD_VALIDATOR().


The documentation for this class was generated from the following file: