|
KiCad PCB EDA Suite
|
#include <drc_re_validator_numeric_ctrl.h>
Public Types | |
| enum class | VALIDATION_STATE { InValidCtrl , Valid , Empty , NotNumeric , NotInteger , NotGreaterThanZero } |
Public Member Functions | |
| VALIDATOR_NUMERIC_CTRL (bool aCanBeZero=false, bool aIntegerOnly=false) | |
| virtual wxObject * | Clone () const override |
| virtual bool | Validate (wxWindow *aParent) override |
| VALIDATION_STATE | GetValidationState () const |
Private Attributes | |
| bool | m_isIntegerOnly |
| bool | m_canBeZero |
| VALIDATION_STATE | m_validationState |
Definition at line 35 of file drc_re_validator_numeric_ctrl.h.
|
strong |
| Enumerator | |
|---|---|
| InValidCtrl | |
| Valid | |
| Empty | |
| NotNumeric | |
| NotInteger | |
| NotGreaterThanZero | |
Definition at line 38 of file drc_re_validator_numeric_ctrl.h.
| VALIDATOR_NUMERIC_CTRL::VALIDATOR_NUMERIC_CTRL | ( | bool | aCanBeZero = false, |
| bool | aIntegerOnly = false ) |
Definition at line 27 of file drc_re_validator_numeric_ctrl.cpp.
References m_canBeZero, m_isIntegerOnly, m_validationState, and Valid.
Referenced by Clone().
|
overridevirtual |
Definition at line 35 of file drc_re_validator_numeric_ctrl.cpp.
References VALIDATOR_NUMERIC_CTRL().
| VALIDATOR_NUMERIC_CTRL::VALIDATION_STATE VALIDATOR_NUMERIC_CTRL::GetValidationState | ( | ) | const |
Definition at line 89 of file drc_re_validator_numeric_ctrl.cpp.
References m_validationState.
Referenced by DRC_RULE_EDITOR_UTILS::ValidateIntegerCtrl(), and DRC_RULE_EDITOR_UTILS::ValidateNumericCtrl().
|
overridevirtual |
Definition at line 41 of file drc_re_validator_numeric_ctrl.cpp.
References Empty, InValidCtrl, m_canBeZero, m_isIntegerOnly, m_validationState, NotGreaterThanZero, NotInteger, NotNumeric, and Valid.
|
private |
Definition at line 58 of file drc_re_validator_numeric_ctrl.h.
Referenced by Validate(), and VALIDATOR_NUMERIC_CTRL().
|
private |
Definition at line 57 of file drc_re_validator_numeric_ctrl.h.
Referenced by Validate(), and VALIDATOR_NUMERIC_CTRL().
|
private |
Definition at line 59 of file drc_re_validator_numeric_ctrl.h.
Referenced by GetValidationState(), Validate(), and VALIDATOR_NUMERIC_CTRL().