|
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 |
| TEMPLATES::SCOPE | m_scope |
| 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 | OnMoveUp (wxCommandEvent &event) override |
| void | OnMoveDown (wxCommandEvent &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 33 of file panel_template_fieldnames.cpp.
References _, PGM_BASE::GetCommonSettings(), KiBitmapBundle(), PANEL_TEMPLATE_FIELDNAMES_BASE::m_addFieldButton, PANEL_TEMPLATE_FIELDNAMES_BASE::m_bpMoveDown, PANEL_TEMPLATE_FIELDNAMES_BASE::m_bpMoveUp, PANEL_TEMPLATE_FIELDNAMES_BASE::m_deleteFieldButton, COMMON_SETTINGS::m_FieldNameTemplates, PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid, m_scope, m_templateMgr, PANEL_TEMPLATE_FIELDNAMES_BASE::m_title, OnAddButtonClick(), PANEL_TEMPLATE_FIELDNAMES_BASE::PANEL_TEMPLATE_FIELDNAMES_BASE(), Pgm(), small_down, small_plus, small_trash, and small_up.
|
override |
Definition at line 66 of file panel_template_fieldnames.cpp.
References PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
| void PANEL_TEMPLATE_FIELDNAMES::ImportSettingsFrom | ( | TEMPLATES * | templateMgr | ) |
Definition at line 227 of file panel_template_fieldnames.cpp.
References TEMPLATES::GetTemplateFieldNames(), m_fields, m_scope, 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 81 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 99 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 120 of file panel_template_fieldnames.cpp.
References PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
|
overrideprivatevirtual |
Reimplemented from PANEL_TEMPLATE_FIELDNAMES_BASE.
Definition at line 110 of file panel_template_fieldnames.cpp.
References PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
|
private |
Definition at line 164 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 180 of file panel_template_fieldnames.cpp.
References _, KICAD_MESSAGE_DIALOG, m_fields, m_scope, m_templateMgr, and TransferDataFromGrid().
|
private |
Definition at line 130 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 73 of file panel_template_fieldnames.cpp.
References m_fields, m_scope, 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().
|
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 70 of file panel_template_fieldnames.h.
Referenced by ImportSettingsFrom(), OnAddButtonClick(), OnDeleteButtonClick(), TransferDataFromGrid(), TransferDataFromWindow(), TransferDataToGrid(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 42 of file panel_template_fieldnames_base.h.
Referenced by 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(), and PANEL_TEMPLATE_FIELDNAMES::~PANEL_TEMPLATE_FIELDNAMES().
|
protected |
Definition at line 71 of file panel_template_fieldnames.h.
Referenced by ImportSettingsFrom(), PANEL_TEMPLATE_FIELDNAMES(), TransferDataFromWindow(), and TransferDataToWindow().
|
protected |
Definition at line 69 of file panel_template_fieldnames.h.
Referenced by PANEL_TEMPLATE_FIELDNAMES(), TransferDataFromWindow(), and TransferDataToWindow().
|
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().