| 
    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.
Referenced by GetDefaultFieldName(), and s_CanonicalDatasheet().
| #define DESCRIPTION_CANONICAL "Description" | 
Definition at line 39 of file template_fieldnames.cpp.
Referenced by GetDefaultFieldName(), and s_CanonicalDescription().
| #define FOOTPRINT_CANONICAL "Footprint" | 
Definition at line 37 of file template_fieldnames.cpp.
Referenced by GetDefaultFieldName(), and s_CanonicalFootprint().
| #define INTERSHEET_REFS_CANONICAL "Intersheetrefs" | 
Definition at line 42 of file template_fieldnames.cpp.
Referenced by GetDefaultFieldName(), and s_CanonicalIntersheetRefs().
| #define REFERENCE_CANONICAL "Reference" | 
Definition at line 35 of file template_fieldnames.cpp.
Referenced by GetDefaultFieldName(), and s_CanonicalReference().
| #define SHEET_FILE_CANONICAL "Sheetfile" | 
Definition at line 41 of file template_fieldnames.cpp.
Referenced by GetDefaultFieldName(), and s_CanonicalSheetFile().
| #define SHEET_NAME_CANONICAL "Sheetname" | 
Definition at line 40 of file template_fieldnames.cpp.
Referenced by GetDefaultFieldName(), and s_CanonicalSheetName().
| #define USER_FIELD_CANONICAL "Field%d" | 
Definition at line 43 of file template_fieldnames.cpp.
Referenced by GetUserFieldName().
| #define VALUE_CANONICAL "Value" | 
Definition at line 36 of file template_fieldnames.cpp.
Referenced by GetDefaultFieldName(), and s_CanonicalValue().
| 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(), VIEW_CONTROLS_GRID_DATA_MODEL::GetValue(), EESCHEMA_JOBS_HANDLER::JobExportBom(), DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames(), SCH_FIELD::SCH_FIELD(), SCH_SHEET::SCH_SHEET(), SYMBOL_TREE_MODEL_ADAPTER::SYMBOL_TREE_MODEL_ADAPTER(), and DIALOG_LIB_FIELDS_TABLE::UpdateFieldList().
| 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_FOOTPRINT_PROPERTIES_FP_EDITOR::OnAddField(), DIALOG_LIB_SYMBOL_PROPERTIES::OnAddField(), DIALOG_SHEET_PROPERTIES::OnAddField(), DIALOG_SYMBOL_PROPERTIES::OnAddField(), PCB_IO_KICAD_SEXPR_PARSER::parsePCB_TEXT(), and SCH_IO_KICAD_LEGACY_LIB_CACHE::saveField().
      
  | 
  static | 
References DATASHEET_CANONICAL.
Referenced by GetDefaultFieldName().
      
  | 
  static | 
References DESCRIPTION_CANONICAL.
Referenced by GetDefaultFieldName().
      
  | 
  static | 
References FOOTPRINT_CANONICAL.
Referenced by GetDefaultFieldName().
      
  | 
  static | 
References INTERSHEET_REFS_CANONICAL.
Referenced by GetDefaultFieldName().
      
  | 
  static | 
References REFERENCE_CANONICAL.
Referenced by GetDefaultFieldName().
      
  | 
  static | 
References SHEET_FILE_CANONICAL.
Referenced by GetDefaultFieldName().
      
  | 
  static | 
References SHEET_NAME_CANONICAL.
Referenced by GetDefaultFieldName().
      
  | 
  static | 
References VALUE_CANONICAL.
Referenced by GetDefaultFieldName().