KiCad PCB EDA Suite
|
Custom text control validator implementations. More...
#include <string_utils.h>
#include <confirm.h>
#include <validators.h>
#include <template_fieldnames.h>
#include <wx/grid.h>
#include <wx/textctrl.h>
#include <wx/textentry.h>
#include <wx/log.h>
#include <wx/combo.h>
#include <wx/msgdlg.h>
#include <refdes_utils.h>
Go to the source code of this file.
Functions | |
wxString | GetFieldValidationErrorMessage (FIELD_T aFieldId, const wxString &aValue) |
Return the error message if aValue is invalid for aFieldId. | |
Custom text control validator implementations.
Definition in file validators.cpp.
wxString GetFieldValidationErrorMessage | ( | FIELD_T | aFieldId, |
const wxString & | aValue ) |
Return the error message if aValue is invalid for aFieldId.
Returns an empty string when the value is valid.
Definition at line 292 of file validators.cpp.
References _, DATASHEET, FOOTPRINT, UTIL::GetRefDesPrefix(), REFERENCE, SHEET_FILENAME, SHEET_NAME, and VALUE.
Referenced by FIELD_VALIDATOR::DoValidate(), and SCH_SHEET_DESC::SCH_SHEET_DESC().