![]() |
KiCad PCB EDA Suite
|
#include <template_fieldnames.h>
Public Member Functions | |
TEMPLATES () | |
void | Format (OUTPUTFORMATTER *out, int nestLevel, bool aGlobal) const |
Serialize this object out as text into the given OUTPUTFORMATTER. More... | |
void | Parse (TEMPLATE_FIELDNAMES_LEXER *in, bool aGlobal) |
Fill this object from information in the input stream handled by #TEMPLATE_FIELDNAMES_LEXER. More... | |
void | AddTemplateFieldName (const TEMPLATE_FIELDNAME &aFieldName, bool aGlobal) |
Insert or append a wanted symbol field name into the field names template. More... | |
void | DeleteAllFieldNameTemplates (bool aGlobal) |
Delete the entire contents. More... | |
const TEMPLATE_FIELDNAMES & | GetTemplateFieldNames () |
Return a template field name list for read only access. More... | |
const TEMPLATE_FIELDNAMES & | GetTemplateFieldNames (bool aGlobal) |
Return a specific list (global or project) for read only access. More... | |
const TEMPLATE_FIELDNAME * | GetFieldName (const wxString &aName) |
Search for aName in the template field name list. More... | |
Protected Member Functions | |
void | resolveTemplates () |
Private Attributes | |
TEMPLATE_FIELDNAMES | m_globals |
TEMPLATE_FIELDNAMES | m_project |
TEMPLATE_FIELDNAMES | m_resolved |
bool | m_resolvedDirty |
Definition at line 118 of file template_fieldnames.h.
|
inline |
Definition at line 121 of file template_fieldnames.h.
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 233 of file template_fieldnames.cpp.
References TEMPLATE_FIELDNAME::GetDefaultFieldName(), TEMPLATE_FIELDNAME::m_Name, and MANDATORY_FIELDS.
Referenced by SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), and PANEL_EESCHEMA_TEMPLATE_FIELDNAMES::TransferDataFromWindow().
void TEMPLATES::DeleteAllFieldNameTemplates | ( | bool | aGlobal | ) |
Delete the entire contents.
Definition at line 262 of file template_fieldnames.cpp.
Referenced by SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), and PANEL_EESCHEMA_TEMPLATE_FIELDNAMES::TransferDataFromWindow().
void TEMPLATES::Format | ( | OUTPUTFORMATTER * | out, |
int | nestLevel, | ||
bool | aGlobal | ||
) | const |
Serialize this object out as text into the given OUTPUTFORMATTER.
Definition at line 153 of file template_fieldnames.cpp.
References OUTPUTFORMATTER::Print().
Referenced by PANEL_EESCHEMA_TEMPLATE_FIELDNAMES::TransferDataFromWindow().
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 297 of file template_fieldnames.cpp.
Referenced by FIELDS_GRID_TABLE< SCH_FIELD >::GetAttr().
const TEMPLATE_FIELDNAMES & TEMPLATES::GetTemplateFieldNames | ( | ) |
Return a template field name list for read only access.
Definition at line 279 of file template_fieldnames.cpp.
Referenced by PANEL_EESCHEMA_TEMPLATE_FIELDNAMES::ImportSettingsFrom(), DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames(), SCH_SYMBOL::ResolveTextVar(), SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow(), and PANEL_EESCHEMA_TEMPLATE_FIELDNAMES::TransferDataToWindow().
const TEMPLATE_FIELDNAMES & TEMPLATES::GetTemplateFieldNames | ( | bool | aGlobal | ) |
Return a specific list (global or project) for read only access.
Definition at line 288 of file template_fieldnames.cpp.
void TEMPLATES::Parse | ( | TEMPLATE_FIELDNAMES_LEXER * | in, |
bool | aGlobal | ||
) |
Fill this object from information in the input stream handled by #TEMPLATE_FIELDNAMES_LEXER.
Definition at line 168 of file template_fieldnames.cpp.
References TEMPLATE_FIELDNAME::Parse().
Referenced by SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS().
|
protected |
Definition at line 211 of file template_fieldnames.cpp.
References project.
|
private |
Definition at line 176 of file template_fieldnames.h.
|
private |
Definition at line 177 of file template_fieldnames.h.
|
private |
Definition at line 180 of file template_fieldnames.h.
|
private |
Definition at line 181 of file template_fieldnames.h.