KiCad PCB EDA Suite
|
Hold a name of a symbol's field, field value, and default visibility. More...
#include <template_fieldnames.h>
Public Member Functions | |
TEMPLATE_FIELDNAME () | |
TEMPLATE_FIELDNAME (const wxString &aName) | |
TEMPLATE_FIELDNAME (const TEMPLATE_FIELDNAME &ref) | |
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. | |
Public Attributes | |
wxString | m_Name |
bool | m_Visible |
bool | m_URL |
Hold a name of a symbol's field, field value, and default visibility.
Template fieldnames are wanted field names for use in the symbol property editors.
Definition at line 86 of file template_fieldnames.h.
|
inline |
Definition at line 88 of file template_fieldnames.h.
|
inline |
Definition at line 94 of file template_fieldnames.h.
|
inline |
Definition at line 101 of file template_fieldnames.h.
void TEMPLATE_FIELDNAME::Format | ( | OUTPUTFORMATTER * | out | ) | const |
Serialize this object out as text into the given OUTPUTFORMATTER.
Definition at line 87 of file template_fieldnames.cpp.
References m_Name, m_URL, m_Visible, OUTPUTFORMATTER::Print(), and OUTPUTFORMATTER::Quotew().
void TEMPLATE_FIELDNAME::Parse | ( | TEMPLATE_FIELDNAMES_LEXER * | aSpec | ) |
Fill this object from information in the input stream aSpec, which is a #TEMPLATE_FIELDNAMES_LEXER.
The entire textual element spec is
(field (name yourfieldname)(value yourvalue) visible)). The presence of value is optional, the presence of visible is optional. When this function is called, the input token stream given by aSpec is assumed to be positioned at the '^' in the following example, i.e. just after the identifying keyword and before the content specifying stuff.
(field ^ (....) ).
aSpec | is the input token stream of keywords and symbols. |
Definition at line 101 of file template_fieldnames.cpp.
References From_UTF8(), m_Name, m_URL, and m_Visible.
Referenced by TEMPLATES::parse().
wxString TEMPLATE_FIELDNAME::m_Name |
Definition at line 127 of file template_fieldnames.h.
Referenced by TEMPLATES::AddTemplateFieldName(), Format(), Parse(), TEMPLATES::parse(), and TEMPLATE_FIELDNAME().
bool TEMPLATE_FIELDNAME::m_URL |
Definition at line 129 of file template_fieldnames.h.
Referenced by Format(), FIELDS_GRID_TABLE::GetAttr(), Parse(), SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), and TEMPLATE_FIELDNAME().
bool TEMPLATE_FIELDNAME::m_Visible |
Definition at line 128 of file template_fieldnames.h.
Referenced by Format(), PANEL_TEMPLATE_FIELDNAMES::OnAddButtonClick(), Parse(), SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), and TEMPLATE_FIELDNAME().