KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_TEMPLATE_FIELDNAMES Class Reference

#include <panel_template_fieldnames.h>

Inheritance diagram for PANEL_TEMPLATE_FIELDNAMES:
PANEL_TEMPLATE_FIELDNAMES_BASE

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

TEMPLATESm_templateMgr
 
std::vector< TEMPLATE_FIELDNAMEm_fields
 
bool m_global
 
int m_checkboxColWidth
 
TEMPLATES m_templateMgrInstance
 
wxStaticText * m_title
 
WX_GRIDm_grid
 
STD_BITMAP_BUTTONm_addFieldButton
 
STD_BITMAP_BUTTONm_bpMoveUp
 
STD_BITMAP_BUTTONm_bpMoveDown
 
STD_BITMAP_BUTTONm_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 ()
 

Detailed Description

Definition at line 29 of file panel_template_fieldnames.h.

Constructor & Destructor Documentation

◆ PANEL_TEMPLATE_FIELDNAMES()

◆ ~PANEL_TEMPLATE_FIELDNAMES()

PANEL_TEMPLATE_FIELDNAMES::~PANEL_TEMPLATE_FIELDNAMES ( )
override

Member Function Documentation

◆ AdjustGridColumns()

void PANEL_TEMPLATE_FIELDNAMES::AdjustGridColumns ( int aWidth)
private

◆ ImportSettingsFrom()

void PANEL_TEMPLATE_FIELDNAMES::ImportSettingsFrom ( TEMPLATES * templateMgr)

◆ OnAddButtonClick()

void PANEL_TEMPLATE_FIELDNAMES::OnAddButtonClick ( wxCommandEvent & event)
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.

Parameters
eventThe 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().

◆ OnDeleteButtonClick()

void PANEL_TEMPLATE_FIELDNAMES::OnDeleteButtonClick ( wxCommandEvent & event)
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.

Parameters
eventThe 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.

◆ OnMoveDown()

void PANEL_TEMPLATE_FIELDNAMES::OnMoveDown ( wxCommandEvent & event)
overrideprivatevirtual

◆ OnMoveUp()

void PANEL_TEMPLATE_FIELDNAMES::OnMoveUp ( wxCommandEvent & event)
overrideprivatevirtual

◆ OnSizeGrid()

void PANEL_TEMPLATE_FIELDNAMES::OnSizeGrid ( wxSizeEvent & event)
overrideprivatevirtual

Reimplemented from PANEL_TEMPLATE_FIELDNAMES_BASE.

Definition at line 269 of file panel_template_fieldnames.cpp.

References AdjustGridColumns().

◆ TransferDataFromGrid()

bool PANEL_TEMPLATE_FIELDNAMES::TransferDataFromGrid ( )
private

◆ TransferDataFromWindow()

bool PANEL_TEMPLATE_FIELDNAMES::TransferDataFromWindow ( )
overrideprivate

◆ TransferDataToGrid()

bool PANEL_TEMPLATE_FIELDNAMES::TransferDataToGrid ( )
private

◆ TransferDataToWindow()

bool PANEL_TEMPLATE_FIELDNAMES::TransferDataToWindow ( )
overrideprivate

Definition at line 86 of file panel_template_fieldnames.cpp.

References m_fields, m_global, m_templateMgr, and TransferDataToGrid().

Member Data Documentation

◆ m_addFieldButton

STD_BITMAP_BUTTON* PANEL_TEMPLATE_FIELDNAMES_BASE::m_addFieldButton
protectedinherited

◆ m_bpMoveDown

STD_BITMAP_BUTTON* PANEL_TEMPLATE_FIELDNAMES_BASE::m_bpMoveDown
protectedinherited

◆ m_bpMoveUp

STD_BITMAP_BUTTON* PANEL_TEMPLATE_FIELDNAMES_BASE::m_bpMoveUp
protectedinherited

◆ m_checkboxColWidth

int PANEL_TEMPLATE_FIELDNAMES::m_checkboxColWidth
protected

Definition at line 76 of file panel_template_fieldnames.h.

Referenced by AdjustGridColumns(), and PANEL_TEMPLATE_FIELDNAMES().

◆ m_deleteFieldButton

STD_BITMAP_BUTTON* PANEL_TEMPLATE_FIELDNAMES_BASE::m_deleteFieldButton
protectedinherited

◆ m_fields

◆ m_global

bool PANEL_TEMPLATE_FIELDNAMES::m_global
protected

◆ m_grid

◆ m_templateMgr

TEMPLATES* PANEL_TEMPLATE_FIELDNAMES::m_templateMgr
protected

◆ m_templateMgrInstance

TEMPLATES PANEL_TEMPLATE_FIELDNAMES::m_templateMgrInstance
protected

Definition at line 77 of file panel_template_fieldnames.h.

Referenced by PANEL_TEMPLATE_FIELDNAMES().

◆ m_title

wxStaticText* PANEL_TEMPLATE_FIELDNAMES_BASE::m_title
protectedinherited

The documentation for this class was generated from the following files: