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 |
std::vector< TEMPLATE_FIELDNAME > | 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_bpMoveUp |
STD_BITMAP_BUTTON * | m_bpMoveDown |
STD_BITMAP_BUTTON * | m_deleteFieldButton |
Private Member Functions | |
void | AdjustGridColumns (int aWidth) |
void | OnMoveUp (wxCommandEvent &event) override |
void | OnMoveDown (wxCommandEvent &event) override |
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 _, GetAppSettings(), KiBitmapBundle(), PANEL_TEMPLATE_FIELDNAMES_BASE::m_addFieldButton, PANEL_TEMPLATE_FIELDNAMES_BASE::m_bpMoveDown, PANEL_TEMPLATE_FIELDNAMES_BASE::m_bpMoveUp, m_checkboxColWidth, PANEL_TEMPLATE_FIELDNAMES_BASE::m_deleteFieldButton, m_global, PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid, m_templateMgr, m_templateMgrInstance, PANEL_TEMPLATE_FIELDNAMES_BASE::m_title, OnAddButtonClick(), PANEL_TEMPLATE_FIELDNAMES_BASE::PANEL_TEMPLATE_FIELDNAMES_BASE(), small_down, small_plus, small_trash, and small_up.
|
override |
Definition at line 79 of file panel_template_fieldnames.cpp.
References PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
|
private |
Definition at line 255 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 277 of file panel_template_fieldnames.cpp.
References TEMPLATES::GetTemplateFieldNames(), m_fields, m_global, and TransferDataToGrid().
Referenced by DIALOG_SCHEMATIC_SETUP::onAuxiliaryAction().
|
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 94 of file panel_template_fieldnames.cpp.
References _, 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 112 of file panel_template_fieldnames.cpp.
References m_fields, and PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
|
overrideprivatevirtual |
Reimplemented from PANEL_TEMPLATE_FIELDNAMES_BASE.
Definition at line 133 of file panel_template_fieldnames.cpp.
References PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
|
overrideprivatevirtual |
Reimplemented from PANEL_TEMPLATE_FIELDNAMES_BASE.
Definition at line 123 of file panel_template_fieldnames.cpp.
References PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
|
overrideprivatevirtual |
Reimplemented from PANEL_TEMPLATE_FIELDNAMES_BASE.
Definition at line 269 of file panel_template_fieldnames.cpp.
References AdjustGridColumns().
|
private |
Definition at line 177 of file panel_template_fieldnames.cpp.
References m_fields, and PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
Referenced by OnAddButtonClick(), and TransferDataFromWindow().
|
overrideprivate |
Definition at line 193 of file panel_template_fieldnames.cpp.
References _, From_UTF8(), GetAppSettings(), STRING_FORMATTER::GetString(), m_fields, m_global, m_templateMgr, and TransferDataFromGrid().
|
private |
Definition at line 143 of file panel_template_fieldnames.cpp.
References m_fields, and PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
Referenced by ImportSettingsFrom(), OnAddButtonClick(), and TransferDataToWindow().
|
overrideprivate |
Definition at line 86 of file panel_template_fieldnames.cpp.
References 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(), PANEL_TEMPLATE_FIELDNAMES_BASE(), and ~PANEL_TEMPLATE_FIELDNAMES_BASE().
|
protectedinherited |
Definition at line 45 of file panel_template_fieldnames_base.h.
Referenced by PANEL_TEMPLATE_FIELDNAMES::PANEL_TEMPLATE_FIELDNAMES(), PANEL_TEMPLATE_FIELDNAMES_BASE(), and ~PANEL_TEMPLATE_FIELDNAMES_BASE().
|
protectedinherited |
Definition at line 44 of file panel_template_fieldnames_base.h.
Referenced by PANEL_TEMPLATE_FIELDNAMES::PANEL_TEMPLATE_FIELDNAMES(), PANEL_TEMPLATE_FIELDNAMES_BASE(), and ~PANEL_TEMPLATE_FIELDNAMES_BASE().
|
protected |
Definition at line 76 of file panel_template_fieldnames.h.
Referenced by AdjustGridColumns(), and PANEL_TEMPLATE_FIELDNAMES().
|
protectedinherited |
Definition at line 46 of file panel_template_fieldnames_base.h.
Referenced by PANEL_TEMPLATE_FIELDNAMES::PANEL_TEMPLATE_FIELDNAMES(), PANEL_TEMPLATE_FIELDNAMES_BASE(), and ~PANEL_TEMPLATE_FIELDNAMES_BASE().
|
protected |
Definition at line 73 of file panel_template_fieldnames.h.
Referenced by ImportSettingsFrom(), OnAddButtonClick(), OnDeleteButtonClick(), TransferDataFromGrid(), TransferDataFromWindow(), TransferDataToGrid(), and TransferDataToWindow().
|
protected |
Definition at line 74 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 PANEL_TEMPLATE_FIELDNAMES::AdjustGridColumns(), PANEL_TEMPLATE_FIELDNAMES::OnAddButtonClick(), PANEL_TEMPLATE_FIELDNAMES::OnDeleteButtonClick(), PANEL_TEMPLATE_FIELDNAMES::OnMoveDown(), PANEL_TEMPLATE_FIELDNAMES::OnMoveUp(), PANEL_TEMPLATE_FIELDNAMES::PANEL_TEMPLATE_FIELDNAMES(), PANEL_TEMPLATE_FIELDNAMES_BASE(), PANEL_TEMPLATE_FIELDNAMES::TransferDataFromGrid(), PANEL_TEMPLATE_FIELDNAMES::TransferDataToGrid(), PANEL_TEMPLATE_FIELDNAMES::~PANEL_TEMPLATE_FIELDNAMES(), and ~PANEL_TEMPLATE_FIELDNAMES_BASE().
|
protected |
Definition at line 72 of file panel_template_fieldnames.h.
Referenced by PANEL_TEMPLATE_FIELDNAMES(), TransferDataFromWindow(), and TransferDataToWindow().
|
protected |
Definition at line 77 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::PANEL_TEMPLATE_FIELDNAMES(), and PANEL_TEMPLATE_FIELDNAMES_BASE().