KiCad PCB EDA Suite
|
#include <panel_template_fieldnames.h>
Public Member Functions | |
PANEL_TEMPLATE_FIELDNAMES (wxWindow *aWindow, TEMPLATES *aProjectTemplateMgr) | |
~PANEL_TEMPLATE_FIELDNAMES () override | |
void | ImportSettingsFrom (TEMPLATES *templateMgr) |
Protected Member Functions | |
void | OnAddButtonClick (wxCommandEvent &event) override |
Adds a new template fieldname (with default values) to the template fieldnames data. | |
void | OnDeleteButtonClick (wxCommandEvent &event) override |
Deletes the selected template fieldname from the template fieldnames data. | |
Protected Attributes | |
TEMPLATES * | m_templateMgr |
TEMPLATE_FIELDNAMES | m_fields |
bool | m_global |
int | m_checkboxColWidth |
TEMPLATES | m_templateMgrInstance |
wxStaticText * | m_title |
WX_GRID * | m_grid |
STD_BITMAP_BUTTON * | m_addFieldButton |
STD_BITMAP_BUTTON * | m_deleteFieldButton |
Private Member Functions | |
void | AdjustGridColumns (int aWidth) |
void | OnSizeGrid (wxSizeEvent &event) override |
bool | TransferDataToWindow () override |
bool | TransferDataFromWindow () override |
bool | TransferDataToGrid () |
bool | TransferDataFromGrid () |
Definition at line 29 of file panel_template_fieldnames.h.
PANEL_TEMPLATE_FIELDNAMES::PANEL_TEMPLATE_FIELDNAMES | ( | wxWindow * | aWindow, |
TEMPLATES * | aProjectTemplateMgr | ||
) |
Definition at line 39 of file panel_template_fieldnames.cpp.
References _, TEMPLATES::AddTemplateFieldNames(), EESCHEMA_SETTINGS::DRAWING::field_names, SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetSettingsManager(), KiBitmapBundle(), PANEL_TEMPLATE_FIELDNAMES_BASE::m_addFieldButton, m_checkboxColWidth, PANEL_TEMPLATE_FIELDNAMES_BASE::m_deleteFieldButton, EESCHEMA_SETTINGS::m_Drawing, m_global, PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid, m_templateMgr, m_templateMgrInstance, PANEL_TEMPLATE_FIELDNAMES_BASE::m_title, OnAddButtonClick(), Pgm(), and STD_BITMAP_BUTTON::SetBitmap().
|
override |
Definition at line 77 of file panel_template_fieldnames.cpp.
References PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
|
private |
Definition at line 253 of file panel_template_fieldnames.cpp.
References m_checkboxColWidth, and PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
Referenced by OnSizeGrid().
void PANEL_TEMPLATE_FIELDNAMES::ImportSettingsFrom | ( | TEMPLATES * | templateMgr | ) |
Definition at line 275 of file panel_template_fieldnames.cpp.
References TEMPLATES::GetTemplateFieldNames(), m_fields, m_global, and TransferDataToGrid().
|
overrideprotectedvirtual |
Adds a new template fieldname (with default values) to the template fieldnames data.
Process the wxWidgets event produced when the user presses the Add button for the template fieldnames control.
event | The wxWidgets produced event information |
Reimplemented from PANEL_TEMPLATE_FIELDNAMES_BASE.
Definition at line 92 of file panel_template_fieldnames.cpp.
References _, WX_GRID::CommitPendingChanges(), m_fields, PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid, TEMPLATE_FIELDNAME::m_Visible, TransferDataFromGrid(), and TransferDataToGrid().
Referenced by PANEL_TEMPLATE_FIELDNAMES().
|
overrideprotectedvirtual |
Deletes the selected template fieldname from the template fieldnames data.
Process the wxWidgets event produced when the user presses the Delete button for the template fieldnames control.
event | The wxWidgets produced event information |
Reimplemented from PANEL_TEMPLATE_FIELDNAMES_BASE.
Definition at line 111 of file panel_template_fieldnames.cpp.
References WX_GRID::CommitPendingChanges(), m_fields, and PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
|
overrideprivatevirtual |
Reimplemented from PANEL_TEMPLATE_FIELDNAMES_BASE.
Definition at line 267 of file panel_template_fieldnames.cpp.
References AdjustGridColumns().
|
private |
Definition at line 171 of file panel_template_fieldnames.cpp.
References WX_GRID::CommitPendingChanges(), m_fields, and PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
Referenced by OnAddButtonClick(), and TransferDataFromWindow().
|
overrideprivate |
Definition at line 187 of file panel_template_fieldnames.cpp.
References _, TEMPLATES::AddTemplateFieldName(), TEMPLATES::DeleteAllFieldNameTemplates(), EESCHEMA_SETTINGS::DRAWING::field_names, TEMPLATES::Format(), From_UTF8(), SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetSettingsManager(), STRING_FORMATTER::GetString(), EESCHEMA_SETTINGS::m_Drawing, m_fields, m_global, m_templateMgr, Pgm(), and TransferDataFromGrid().
|
private |
Definition at line 138 of file panel_template_fieldnames.cpp.
References WX_GRID::ClearRows(), m_fields, and PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
Referenced by ImportSettingsFrom(), OnAddButtonClick(), and TransferDataToWindow().
|
overrideprivate |
Definition at line 84 of file panel_template_fieldnames.cpp.
References TEMPLATES::GetTemplateFieldNames(), m_fields, m_global, m_templateMgr, and TransferDataToGrid().
|
protectedinherited |
Definition at line 43 of file panel_template_fieldnames_base.h.
Referenced by PANEL_TEMPLATE_FIELDNAMES(), PANEL_TEMPLATE_FIELDNAMES_BASE::PANEL_TEMPLATE_FIELDNAMES_BASE(), and PANEL_TEMPLATE_FIELDNAMES_BASE::~PANEL_TEMPLATE_FIELDNAMES_BASE().
|
protected |
Definition at line 74 of file panel_template_fieldnames.h.
Referenced by AdjustGridColumns(), and PANEL_TEMPLATE_FIELDNAMES().
|
protectedinherited |
Definition at line 44 of file panel_template_fieldnames_base.h.
Referenced by PANEL_TEMPLATE_FIELDNAMES(), PANEL_TEMPLATE_FIELDNAMES_BASE::PANEL_TEMPLATE_FIELDNAMES_BASE(), and PANEL_TEMPLATE_FIELDNAMES_BASE::~PANEL_TEMPLATE_FIELDNAMES_BASE().
|
protected |
Definition at line 71 of file panel_template_fieldnames.h.
Referenced by ImportSettingsFrom(), OnAddButtonClick(), OnDeleteButtonClick(), TransferDataFromGrid(), TransferDataFromWindow(), TransferDataToGrid(), and TransferDataToWindow().
|
protected |
Definition at line 72 of file panel_template_fieldnames.h.
Referenced by ImportSettingsFrom(), PANEL_TEMPLATE_FIELDNAMES(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 42 of file panel_template_fieldnames_base.h.
Referenced by AdjustGridColumns(), OnAddButtonClick(), OnDeleteButtonClick(), PANEL_TEMPLATE_FIELDNAMES(), PANEL_TEMPLATE_FIELDNAMES_BASE::PANEL_TEMPLATE_FIELDNAMES_BASE(), TransferDataFromGrid(), TransferDataToGrid(), ~PANEL_TEMPLATE_FIELDNAMES(), and PANEL_TEMPLATE_FIELDNAMES_BASE::~PANEL_TEMPLATE_FIELDNAMES_BASE().
|
protected |
Definition at line 70 of file panel_template_fieldnames.h.
Referenced by PANEL_TEMPLATE_FIELDNAMES(), TransferDataFromWindow(), and TransferDataToWindow().
|
protected |
Definition at line 75 of file panel_template_fieldnames.h.
Referenced by PANEL_TEMPLATE_FIELDNAMES().
|
protectedinherited |
Definition at line 41 of file panel_template_fieldnames_base.h.
Referenced by PANEL_TEMPLATE_FIELDNAMES(), and PANEL_TEMPLATE_FIELDNAMES_BASE::PANEL_TEMPLATE_FIELDNAMES_BASE().