#include <validators.h>
|
wxString | IsValid (const wxString &aVal) const override |
|
Definition at line 194 of file validators.h.
◆ NETNAME_VALIDATOR() [1/3]
NETNAME_VALIDATOR::NETNAME_VALIDATOR |
( |
wxString * |
aVal = nullptr | ) |
|
◆ NETNAME_VALIDATOR() [2/3]
NETNAME_VALIDATOR::NETNAME_VALIDATOR |
( |
bool |
aAllowSpaces | ) |
|
◆ NETNAME_VALIDATOR() [3/3]
◆ Clone()
virtual wxObject* NETNAME_VALIDATOR::Clone |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ IsValid()
wxString NETNAME_VALIDATOR::IsValid |
( |
const wxString & |
aVal | ) |
const |
|
overrideprotected |
◆ TransferFromWindow()
virtual bool NETNAME_VALIDATOR::TransferFromWindow |
( |
| ) |
|
|
inlineoverridevirtual |
◆ TransferToWindow()
virtual bool NETNAME_VALIDATOR::TransferToWindow |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Validate()
bool NETNAME_VALIDATOR::Validate |
( |
wxWindow * |
aParent | ) |
|
|
overridevirtual |
Definition at line 340 of file validators.cpp.
343 if ( !m_validatorWindow->IsEnabled() )
346 wxTextEntry *
const text = GetTextEntry();
351 const wxString& errormsg =
IsValid(
text->GetValue() );
353 if( !errormsg.empty() )
355 m_validatorWindow->SetFocus();
356 wxMessageBox( errormsg,
_(
"Invalid signal name" ), wxOK | wxICON_EXCLAMATION, aParent );
wxString IsValid(const wxString &aVal) const override
References _, IsValid(), and text.
◆ m_allowSpaces
bool NETNAME_VALIDATOR::m_allowSpaces |
|
private |
The documentation for this class was generated from the following files: