KiCad PCB EDA Suite
|
#include <template_fieldnames.h>
Public Member Functions | |
void | Format (OUTPUTFORMATTER *out, int nestLevel) const |
Function Format serializes this object out as text into the given OUTPUTFORMATTER. More... | |
void | Parse (TEMPLATE_FIELDNAMES_LEXER *in) |
Function Parse fills this object from information in the input stream handled by TEMPLATE_FIELDNAMES_LEXER. More... | |
int | AddTemplateFieldName (const TEMPLATE_FIELDNAME &aFieldName) |
Function AddTemplateFieldName inserts or appends a wanted symbol field name into the fieldnames template. More... | |
void | DeleteAllTemplateFieldNames () |
Function DeleteAllTemplateFieldNames deletes the entire contents. More... | |
const TEMPLATE_FIELDNAMES & | GetTemplateFieldNames () |
Function GetTemplateFieldName returns a template fieldnames list for read only access. More... | |
bool | HasFieldName (const wxString &aName) const |
Function HasFieldName checks for aName in the the template field name list. More... | |
Private Attributes | |
TEMPLATE_FIELDNAMES | m_Fields |
Definition at line 128 of file template_fieldnames.h.
int TEMPLATES::AddTemplateFieldName | ( | const TEMPLATE_FIELDNAME & | aFieldName | ) |
Function AddTemplateFieldName inserts or appends a wanted symbol field name into the fieldnames 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 fieldnames. |
Definition at line 188 of file template_fieldnames.cpp.
References TEMPLATE_FIELDNAME::GetDefaultFieldName(), i, TEMPLATE_FIELDNAME::m_Name, and MANDATORY_FIELDS.
Referenced by SCH_EDIT_FRAME::AddTemplateFieldName().
|
inline |
Function DeleteAllTemplateFieldNames deletes the entire contents.
Definition at line 165 of file template_fieldnames.h.
Referenced by SCH_EDIT_FRAME::DeleteAllTemplateFieldNames().
void TEMPLATES::Format | ( | OUTPUTFORMATTER * | out, |
int | nestLevel | ||
) | const |
Function Format serializes this object out as text into the given OUTPUTFORMATTER.
Definition at line 136 of file template_fieldnames.cpp.
References Format(), i, and OUTPUTFORMATTER::Print().
|
inline |
Function GetTemplateFieldName returns a template fieldnames list for read only access.
Definition at line 174 of file template_fieldnames.h.
Referenced by SCH_EDIT_FRAME::GetTemplateFieldNames().
bool TEMPLATES::HasFieldName | ( | const wxString & | aName | ) | const |
Function HasFieldName checks for aName in the the template field name list.
aName | A wxString object containing the field name to search for. |
Definition at line 222 of file template_fieldnames.cpp.
References i.
Referenced by DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnOKButtonClick().
void TEMPLATES::Parse | ( | TEMPLATE_FIELDNAMES_LEXER * | in | ) |
Function Parse fills this object from information in the input stream handled by TEMPLATE_FIELDNAMES_LEXER.
Definition at line 149 of file template_fieldnames.cpp.
References TEMPLATE_FIELDNAME::Parse().
|
private |
Definition at line 131 of file template_fieldnames.h.