KiCad PCB EDA Suite
|
#include "template_fieldnames.h"
#include <mutex>
#include <template_fieldnames_lexer.h>
#include <string_utils.h>
Go to the source code of this file.
Macros | |
#define | REFERENCE_CANONICAL "Reference" |
#define | VALUE_CANONICAL "Value" |
#define | FOOTPRINT_CANONICAL "Footprint" |
#define | DATASHEET_CANONICAL "Datasheet" |
#define | DESCRIPTION_CANONICAL "Description" |
#define | SHEET_NAME_CANONICAL "Sheetname" |
#define | SHEET_FILE_CANONICAL "Sheetfile" |
#define | INTERSHEET_REFS_CANONICAL "Intersheetrefs" |
#define | USER_FIELD_CANONICAL "Field%d" |
Functions | |
static wxString | s_CanonicalReference (REFERENCE_CANONICAL) |
static wxString | s_CanonicalValue (VALUE_CANONICAL) |
static wxString | s_CanonicalFootprint (FOOTPRINT_CANONICAL) |
static wxString | s_CanonicalDatasheet (DATASHEET_CANONICAL) |
static wxString | s_CanonicalDescription (DESCRIPTION_CANONICAL) |
static wxString | s_CanonicalSheetName (SHEET_NAME_CANONICAL) |
static wxString | s_CanonicalSheetFile (SHEET_FILE_CANONICAL) |
static wxString | s_CanonicalIntersheetRefs (INTERSHEET_REFS_CANONICAL) |
wxString | GetDefaultFieldName (FIELD_T aFieldId, bool aTranslateForHI) |
Return a default symbol field name for a mandatory field type. | |
wxString | GetUserFieldName (int aFieldNdx, bool aTranslateForHI) |
#define DATASHEET_CANONICAL "Datasheet" |
Definition at line 38 of file template_fieldnames.cpp.
#define DESCRIPTION_CANONICAL "Description" |
Definition at line 39 of file template_fieldnames.cpp.
#define FOOTPRINT_CANONICAL "Footprint" |
Definition at line 37 of file template_fieldnames.cpp.
#define INTERSHEET_REFS_CANONICAL "Intersheetrefs" |
Definition at line 42 of file template_fieldnames.cpp.
#define REFERENCE_CANONICAL "Reference" |
Definition at line 35 of file template_fieldnames.cpp.
#define SHEET_FILE_CANONICAL "Sheetfile" |
Definition at line 41 of file template_fieldnames.cpp.
#define SHEET_NAME_CANONICAL "Sheetname" |
Definition at line 40 of file template_fieldnames.cpp.
#define USER_FIELD_CANONICAL "Field%d" |
Definition at line 43 of file template_fieldnames.cpp.
#define VALUE_CANONICAL "Value" |
Definition at line 36 of file template_fieldnames.cpp.
wxString GetDefaultFieldName | ( | FIELD_T | aFieldId, |
bool | aTranslateForHI | ||
) |
Return a default symbol field name for a mandatory field type.
These field names are not modifiable but template field names are.
aTranslateForHI | If true, return the translated field name, else get the canonical name (defualt). Translation is intended only for dialogs |
Definition at line 55 of file template_fieldnames.cpp.
References _, DATASHEET, DATASHEET_CANONICAL, DESCRIPTION, DESCRIPTION_CANONICAL, FOOTPRINT, FOOTPRINT_CANONICAL, GetUserFieldName(), INTERSHEET_REFS, INTERSHEET_REFS_CANONICAL, REFERENCE, REFERENCE_CANONICAL, s_CanonicalDatasheet(), s_CanonicalDescription(), s_CanonicalFootprint(), s_CanonicalIntersheetRefs(), s_CanonicalReference(), s_CanonicalSheetFile(), s_CanonicalSheetName(), s_CanonicalValue(), SHEET_FILE_CANONICAL, SHEET_FILENAME, SHEET_NAME, SHEET_NAME_CANONICAL, VALUE, and VALUE_CANONICAL.
Referenced by DIALOG_CHANGE_SYMBOLS::DIALOG_CHANGE_SYMBOLS(), DIALOG_UPDATE_SYMBOL_FIELDS::DIALOG_UPDATE_SYMBOL_FIELDS(), SCH_EDIT_TOOL::editFieldText(), GetCanonicalFieldName(), SCH_FIELD::GetName(), FIELDS_GRID_TABLE::GetValue(), EESCHEMA_JOBS_HANDLER::JobExportBom(), DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames(), SCH_FIELD::SCH_FIELD(), and SCH_SHEET::SCH_SHEET().
wxString GetUserFieldName | ( | int | aFieldNdx, |
bool | aTranslateForHI | ||
) |
Definition at line 90 of file template_fieldnames.cpp.
References _, and USER_FIELD_CANONICAL.
Referenced by GetDefaultFieldName(), PCB_FIELD::GetName(), SCH_IO_KICAD_LEGACY::loadSymbol(), DIALOG_FOOTPRINT_PROPERTIES::OnAddField(), DIALOG_LIB_SYMBOL_PROPERTIES::OnAddField(), DIALOG_SHEET_PROPERTIES::OnAddField(), DIALOG_SYMBOL_PROPERTIES::OnAddField(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::OnAddField(), and SCH_IO_KICAD_LEGACY_LIB_CACHE::saveField().
|
static |
Referenced by GetDefaultFieldName().
|
static |
Referenced by GetDefaultFieldName().
|
static |
Referenced by GetDefaultFieldName().
|
static |
Referenced by GetDefaultFieldName().
|
static |
Referenced by GetDefaultFieldName().
|
static |
Referenced by GetDefaultFieldName().
|
static |
Referenced by GetDefaultFieldName().
|
static |
Referenced by GetDefaultFieldName().