#include <validators.h>
|
wxString | IsValid (const wxString &aVal) const override |
|
Definition at line 199 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 | ) |
|
Definition at line 333 of file validators.cpp.
333 :
334 wxTextValidator(),
336{
337}
◆ NETNAME_VALIDATOR() [3/3]
Definition at line 326 of file validators.cpp.
326 :
327 wxTextValidator( aValidator ),
329{
330}
◆ 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.
341{
342
343 if ( !m_validatorWindow->IsEnabled() )
344 return true;
345
346 wxTextEntry *
const text = GetTextEntry();
347
349 return false;
350
351 const wxString& errormsg =
IsValid(
text->GetValue() );
352
353 if( !errormsg.empty() )
354 {
355 m_validatorWindow->SetFocus();
356 wxMessageBox( errormsg,
_(
"Invalid signal name" ), wxOK | wxICON_EXCLAMATION, aParent );
357 return false;
358 }
359
360 return true;
361}
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: