| 
    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 | 
| 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 | 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 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, 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 78 of file panel_template_fieldnames.cpp.
References PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
| void PANEL_TEMPLATE_FIELDNAMES::ImportSettingsFrom | ( | TEMPLATES * | templateMgr | ) | 
Definition at line 254 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 93 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 111 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 132 of file panel_template_fieldnames.cpp.
References PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
      
  | 
  overrideprivatevirtual | 
Reimplemented from PANEL_TEMPLATE_FIELDNAMES_BASE.
Definition at line 122 of file panel_template_fieldnames.cpp.
References PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.
      
  | 
  private | 
Definition at line 176 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 192 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 142 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 85 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().
      
  | 
  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().
      
  | 
  protected | 
Definition at line 71 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::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 69 of file panel_template_fieldnames.h.
Referenced by PANEL_TEMPLATE_FIELDNAMES(), TransferDataFromWindow(), and TransferDataToWindow().
      
  | 
  protected | 
Definition at line 73 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().