KiCad PCB EDA Suite
Loading...
Searching...
No Matches
VALIDATOR_NUMERIC_CTRL Class Reference

#include <drc_re_validator_numeric_ctrl.h>

Inheritance diagram for VALIDATOR_NUMERIC_CTRL:

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
 

Detailed Description

Definition at line 35 of file drc_re_validator_numeric_ctrl.h.

Member Enumeration Documentation

◆ VALIDATION_STATE

Enumerator
InValidCtrl 
Valid 
Empty 
NotNumeric 
NotInteger 
NotGreaterThanZero 

Definition at line 38 of file drc_re_validator_numeric_ctrl.h.

Constructor & Destructor Documentation

◆ VALIDATOR_NUMERIC_CTRL()

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().

Member Function Documentation

◆ Clone()

wxObject * VALIDATOR_NUMERIC_CTRL::Clone ( ) const
overridevirtual

Definition at line 35 of file drc_re_validator_numeric_ctrl.cpp.

References VALIDATOR_NUMERIC_CTRL().

◆ GetValidationState()

VALIDATOR_NUMERIC_CTRL::VALIDATION_STATE VALIDATOR_NUMERIC_CTRL::GetValidationState ( ) const

◆ Validate()

bool VALIDATOR_NUMERIC_CTRL::Validate ( wxWindow * aParent)
overridevirtual

Member Data Documentation

◆ m_canBeZero

bool VALIDATOR_NUMERIC_CTRL::m_canBeZero
private

Definition at line 58 of file drc_re_validator_numeric_ctrl.h.

Referenced by Validate(), and VALIDATOR_NUMERIC_CTRL().

◆ m_isIntegerOnly

bool VALIDATOR_NUMERIC_CTRL::m_isIntegerOnly
private

Definition at line 57 of file drc_re_validator_numeric_ctrl.h.

Referenced by Validate(), and VALIDATOR_NUMERIC_CTRL().

◆ m_validationState

VALIDATION_STATE VALIDATOR_NUMERIC_CTRL::m_validationState
private

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