30class TEMPLATE_FIELDNAMES_LEXER;
 
   57#define MANDATORY_FIELDS { FIELD_T::REFERENCE,        \ 
   61                           FIELD_T::DESCRIPTION } 
 
   63#define GLOBALLABEL_MANDATORY_FIELDS { FIELD_T::INTERSHEET_REFS } 
   65#define SHEET_MANDATORY_FIELDS { FIELD_T::SHEET_NAME,        \ 
   66                                 FIELD_T::SHEET_FILENAME } 
 
   70#define DO_TRANSLATE true 
  135    void Parse( TEMPLATE_FIELDNAMES_LEXER* aSpec );
 
 
  198    void parse( TEMPLATE_FIELDNAMES_LEXER* in, 
bool aGlobal );
 
 
void AddTemplateFieldName(const TEMPLATE_FIELDNAME &aFieldName, bool aGlobal)
Insert or append a wanted symbol field name into the field names template.
 
void AddTemplateFieldNames(const wxString &aSerializedFieldNames)
Add a serialized list of template field names.
 
const std::vector< TEMPLATE_FIELDNAME > & GetTemplateFieldNames()
Return a template field name list for read only access.
 
std::vector< TEMPLATE_FIELDNAME > m_resolved
 
void resolveTemplates()
Flatten project and global templates into a single list.
 
std::vector< TEMPLATE_FIELDNAME > m_project
 
const TEMPLATE_FIELDNAME * GetFieldName(const wxString &aName)
Search for aName in the template field name list.
 
void DeleteAllFieldNameTemplates(bool aGlobal)
Delete the entire contents.
 
void parse(TEMPLATE_FIELDNAMES_LEXER *in, bool aGlobal)
 
std::vector< TEMPLATE_FIELDNAME > m_globals
 
void Format(OUTPUTFORMATTER *out, bool aGlobal) const
Serialize this object out as text into the given OUTPUTFORMATTER.
 
@ USER
The main config directory (e.g. ~/.config/kicad/)
 
Hold a name of a symbol's field, field value, and default visibility.
 
void Format(OUTPUTFORMATTER *out) const
Serialize this object out as text into the given OUTPUTFORMATTER.
 
void Parse(TEMPLATE_FIELDNAMES_LEXER *aSpec)
Fill this object from information in the input stream aSpec, which is a #TEMPLATE_FIELDNAMES_LEXER.
 
TEMPLATE_FIELDNAME(const wxString &aName)
 
TEMPLATE_FIELDNAME(const TEMPLATE_FIELDNAME &ref)
 
FIELD_T
The set of all field indices assuming an array like sequence that a SCH_COMPONENT or LIB_PART can hol...
 
@ INTERSHEET_REFS
Global label cross-reference page numbers.
 
@ DESCRIPTION
Field Description of part, i.e. "1/4W 1% Metal Film Resistor".
 
@ DATASHEET
name of datasheet
 
@ REFERENCE
Field Reference of part, i.e. "IC21".
 
@ VALUE
Field Value of part, i.e. "3.3K".
 
wxString GetUserFieldName(int aFieldNdx, bool aTranslateForHI)
 
wxString GetCanonicalFieldName(FIELD_T aFieldType)
 
wxString GetDefaultFieldName(FIELD_T aFieldId, bool aTranslateForHI)
Return a default symbol field name for a mandatory field type.