KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
template_fieldnames.cpp File Reference
#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)
 

Macro Definition Documentation

◆ DATASHEET_CANONICAL

#define DATASHEET_CANONICAL   "Datasheet"

Definition at line 38 of file template_fieldnames.cpp.

◆ DESCRIPTION_CANONICAL

#define DESCRIPTION_CANONICAL   "Description"

Definition at line 39 of file template_fieldnames.cpp.

◆ FOOTPRINT_CANONICAL

#define FOOTPRINT_CANONICAL   "Footprint"

Definition at line 37 of file template_fieldnames.cpp.

◆ INTERSHEET_REFS_CANONICAL

#define INTERSHEET_REFS_CANONICAL   "Intersheetrefs"

Definition at line 42 of file template_fieldnames.cpp.

◆ REFERENCE_CANONICAL

#define REFERENCE_CANONICAL   "Reference"

Definition at line 35 of file template_fieldnames.cpp.

◆ SHEET_FILE_CANONICAL

#define SHEET_FILE_CANONICAL   "Sheetfile"

Definition at line 41 of file template_fieldnames.cpp.

◆ SHEET_NAME_CANONICAL

#define SHEET_NAME_CANONICAL   "Sheetname"

Definition at line 40 of file template_fieldnames.cpp.

◆ USER_FIELD_CANONICAL

#define USER_FIELD_CANONICAL   "Field%d"

Definition at line 43 of file template_fieldnames.cpp.

◆ VALUE_CANONICAL

#define VALUE_CANONICAL   "Value"

Definition at line 36 of file template_fieldnames.cpp.

Function Documentation

◆ GetDefaultFieldName()

◆ GetUserFieldName()

◆ s_CanonicalDatasheet()

static wxString s_CanonicalDatasheet ( DATASHEET_CANONICAL  )
static

Referenced by GetDefaultFieldName().

◆ s_CanonicalDescription()

static wxString s_CanonicalDescription ( DESCRIPTION_CANONICAL  )
static

Referenced by GetDefaultFieldName().

◆ s_CanonicalFootprint()

static wxString s_CanonicalFootprint ( FOOTPRINT_CANONICAL  )
static

Referenced by GetDefaultFieldName().

◆ s_CanonicalIntersheetRefs()

static wxString s_CanonicalIntersheetRefs ( INTERSHEET_REFS_CANONICAL  )
static

Referenced by GetDefaultFieldName().

◆ s_CanonicalReference()

static wxString s_CanonicalReference ( REFERENCE_CANONICAL  )
static

Referenced by GetDefaultFieldName().

◆ s_CanonicalSheetFile()

static wxString s_CanonicalSheetFile ( SHEET_FILE_CANONICAL  )
static

Referenced by GetDefaultFieldName().

◆ s_CanonicalSheetName()

static wxString s_CanonicalSheetName ( SHEET_NAME_CANONICAL  )
static

Referenced by GetDefaultFieldName().

◆ s_CanonicalValue()

static wxString s_CanonicalValue ( VALUE_CANONICAL  )
static

Referenced by GetDefaultFieldName().