30#ifndef _SCH_VALIDATORS_H_
31#define _SCH_VALIDATORS_H_
33#include <wx/valtext.h>
39#define SHEETNAME_V 100
40#define SHEETFILENAME_V 101
41#define SHEETUSERFIELD_V 102
43#define LABELUSERFIELD_V 200
69 virtual bool Validate( wxWindow *aParent )
override;
99 wxString
IsValid(
const wxString& aVal )
const override;
A text control validator used for validating the text allowed in library and schematic symbol fields.
virtual bool Validate(wxWindow *aParent) override
Override the default Validate() function provided by wxTextValidator to provide better error messages...
virtual wxObject * Clone() const override
static wxRegEx m_busGroupRegex
virtual wxObject * Clone() const override
SCH_NETNAME_VALIDATOR(bool aAllowSpaces)
SCH_NETNAME_VALIDATOR(const SCH_NETNAME_VALIDATOR &aValidator)
wxString IsValid(const wxString &aVal) const override
SCH_NETNAME_VALIDATOR(wxString *aVal=nullptr)
Custom text control validator definitions.