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

#include <validators.h>

Inheritance diagram for NETNAME_VALIDATOR:
SCH_NETNAME_VALIDATOR

Public Member Functions

 NETNAME_VALIDATOR (wxString *aVal=nullptr)
 
 NETNAME_VALIDATOR (bool aAllowSpaces)
 
 NETNAME_VALIDATOR (const NETNAME_VALIDATOR &aValidator)
 
virtual wxObject * Clone () const override
 
virtual bool TransferToWindow () override
 
virtual bool TransferFromWindow () override
 
virtual bool Validate (wxWindow *aParent) override
 

Protected Member Functions

wxString IsValid (const wxString &aVal) const override
 

Private Attributes

bool m_allowSpaces
 

Detailed Description

Definition at line 167 of file validators.h.

Constructor & Destructor Documentation

◆ NETNAME_VALIDATOR() [1/3]

NETNAME_VALIDATOR::NETNAME_VALIDATOR ( wxString *  aVal = nullptr)

Definition at line 243 of file validators.cpp.

◆ NETNAME_VALIDATOR() [2/3]

NETNAME_VALIDATOR::NETNAME_VALIDATOR ( bool  aAllowSpaces)

Definition at line 257 of file validators.cpp.

◆ NETNAME_VALIDATOR() [3/3]

NETNAME_VALIDATOR::NETNAME_VALIDATOR ( const NETNAME_VALIDATOR aValidator)

Definition at line 250 of file validators.cpp.

Member Function Documentation

◆ Clone()

virtual wxObject * NETNAME_VALIDATOR::Clone ( ) const
inlineoverridevirtual

Reimplemented in SCH_NETNAME_VALIDATOR.

Definition at line 176 of file validators.h.

◆ IsValid()

wxString NETNAME_VALIDATOR::IsValid ( const wxString &  aVal) const
overrideprotected

Definition at line 288 of file validators.cpp.

References _, and m_allowSpaces.

Referenced by SCH_NETNAME_VALIDATOR::IsValid(), and Validate().

◆ TransferFromWindow()

virtual bool NETNAME_VALIDATOR::TransferFromWindow ( )
inlineoverridevirtual

Definition at line 180 of file validators.h.

◆ TransferToWindow()

virtual bool NETNAME_VALIDATOR::TransferToWindow ( )
inlineoverridevirtual

Definition at line 178 of file validators.h.

◆ Validate()

bool NETNAME_VALIDATOR::Validate ( wxWindow *  aParent)
overridevirtual

Definition at line 264 of file validators.cpp.

References _, IsValid(), and text.

Member Data Documentation

◆ m_allowSpaces

bool NETNAME_VALIDATOR::m_allowSpaces
private

Definition at line 189 of file validators.h.

Referenced by IsValid().


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