| 
    KiCad PCB EDA Suite
    
   | 
 
#include <template_fieldnames.h>
Public Member Functions | |
| TEMPLATES () | |
| void | Format (OUTPUTFORMATTER *out, bool aGlobal) const | 
| Serialize this object out as text into the given OUTPUTFORMATTER.   | |
| 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.   | |
| void | DeleteAllFieldNameTemplates (bool aGlobal) | 
| Delete the entire contents.   | |
| const std::vector< TEMPLATE_FIELDNAME > & | GetTemplateFieldNames () | 
| Return a template field name list for read only access.   | |
| const std::vector< TEMPLATE_FIELDNAME > & | GetTemplateFieldNames (bool aGlobal) | 
| Return a specific list (global or project) for read only access.   | |
| const TEMPLATE_FIELDNAME * | GetFieldName (const wxString &aName) | 
| Search for aName in the template field name list.   | |
Protected Member Functions | |
| void | resolveTemplates () | 
| Flatten project and global templates into a single list.   | |
| void | parse (TEMPLATE_FIELDNAMES_LEXER *in, bool aGlobal) | 
Private Attributes | |
| std::vector< TEMPLATE_FIELDNAME > | m_globals | 
| std::vector< TEMPLATE_FIELDNAME > | m_project | 
| std::vector< TEMPLATE_FIELDNAME > | m_resolved | 
| bool | m_resolvedDirty | 
Definition at line 143 of file template_fieldnames.h.
      
  | 
  inline | 
Definition at line 146 of file template_fieldnames.h.
References m_resolvedDirty.
| void TEMPLATES::AddTemplateFieldName | ( | const TEMPLATE_FIELDNAME & | aFieldName, | 
| bool | aGlobal ) | 
Insert or append a wanted symbol field name into the field names template.
Should be used for any symbol property editor. If the name already exists, it overwrites the same name.
| aFieldName | is a full description of the wanted field, and it must not match any of the default field names. | 
| aGlobal | indicates whether to add to the global or project table. | 
Definition at line 248 of file template_fieldnames.cpp.
References GetCanonicalFieldName(), m_globals, TEMPLATE_FIELDNAME::m_Name, m_project, m_resolvedDirty, and MANDATORY_FIELDS.
Referenced by parse().
| void TEMPLATES::AddTemplateFieldNames | ( | const wxString & | aSerializedFieldNames | ) | 
Add a serialized list of template field names.
Definition at line 277 of file template_fieldnames.cpp.
References parse(), and TO_UTF8.
Referenced by SCH_EDIT_FRAME::CommonSettingsChanged(), and DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataToWindow().
| void TEMPLATES::DeleteAllFieldNameTemplates | ( | bool | aGlobal | ) | 
Delete the entire contents.
Definition at line 291 of file template_fieldnames.cpp.
References m_globals, m_project, m_resolved, and m_resolvedDirty.
Referenced by SCH_EDIT_FRAME::CommonSettingsChanged().
| void TEMPLATES::Format | ( | OUTPUTFORMATTER * | out, | 
| bool | aGlobal ) const | 
Serialize this object out as text into the given OUTPUTFORMATTER.
Definition at line 158 of file template_fieldnames.cpp.
References m_globals, m_project, and OUTPUTFORMATTER::Print().
| const TEMPLATE_FIELDNAME * TEMPLATES::GetFieldName | ( | const wxString & | aName | ) | 
Search for aName in the template field name list.
| aName | A wxString object containing the field name to search for. | 
Definition at line 326 of file template_fieldnames.cpp.
References m_resolved, m_resolvedDirty, and resolveTemplates().
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), and FIELDS_GRID_TABLE::GetAttr().
| const std::vector< TEMPLATE_FIELDNAME > & TEMPLATES::GetTemplateFieldNames | ( | ) | 
Return a template field name list for read only access.
Definition at line 308 of file template_fieldnames.cpp.
References m_resolved, m_resolvedDirty, and resolveTemplates().
Referenced by PANEL_TEMPLATE_FIELDNAMES::ImportSettingsFrom(), EESCHEMA_JOBS_HANDLER::JobExportBom(), SCH_SYMBOL::ResolveTextVar(), and DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataToWindow().
| const std::vector< TEMPLATE_FIELDNAME > & TEMPLATES::GetTemplateFieldNames | ( | bool | aGlobal | ) | 
Return a specific list (global or project) for read only access.
Definition at line 317 of file template_fieldnames.cpp.
      
  | 
  protected | 
Definition at line 176 of file template_fieldnames.cpp.
References AddTemplateFieldName(), TEMPLATE_FIELDNAME::m_Name, TEMPLATE_FIELDNAME::Parse(), and T.
Referenced by AddTemplateFieldNames().
      
  | 
  protected | 
Flatten project and global templates into a single list.
(Project templates take precedence.)
Definition at line 220 of file template_fieldnames.cpp.
References m_globals, m_project, m_resolved, m_resolvedDirty, and project.
Referenced by GetFieldName(), and GetTemplateFieldNames().
      
  | 
  private | 
Definition at line 201 of file template_fieldnames.h.
Referenced by AddTemplateFieldName(), DeleteAllFieldNameTemplates(), Format(), GetTemplateFieldNames(), and resolveTemplates().
      
  | 
  private | 
Definition at line 202 of file template_fieldnames.h.
Referenced by AddTemplateFieldName(), DeleteAllFieldNameTemplates(), Format(), GetTemplateFieldNames(), and resolveTemplates().
      
  | 
  private | 
Definition at line 205 of file template_fieldnames.h.
Referenced by DeleteAllFieldNameTemplates(), GetFieldName(), GetTemplateFieldNames(), and resolveTemplates().
      
  | 
  private | 
Definition at line 206 of file template_fieldnames.h.
Referenced by AddTemplateFieldName(), DeleteAllFieldNameTemplates(), GetFieldName(), GetTemplateFieldNames(), resolveTemplates(), and TEMPLATES().