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
 
TEMPLATE_FIELDNAMES m_fields
 
bool m_global
 
int m_checkboxColWidth
 
TEMPLATES m_templateMgrInstance
 
wxStaticText * m_title
 
WX_GRIDm_grid
 
STD_BITMAP_BUTTONm_addFieldButton
 
STD_BITMAP_BUTTONm_deleteFieldButton
 

Private Member Functions

void AdjustGridColumns (int aWidth)
 
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 91 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().

◆ 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 110 of file panel_template_fieldnames.cpp.

References WX_GRID::CommitPendingChanges(), m_fields, and PANEL_TEMPLATE_FIELDNAMES_BASE::m_grid.

◆ OnSizeGrid()

void PANEL_TEMPLATE_FIELDNAMES::OnSizeGrid ( wxSizeEvent &  event)
overrideprivatevirtual

Reimplemented from PANEL_TEMPLATE_FIELDNAMES_BASE.

Definition at line 265 of file panel_template_fieldnames.cpp.

References AdjustGridColumns().

◆ TransferDataFromGrid()

bool PANEL_TEMPLATE_FIELDNAMES::TransferDataFromGrid ( )
private

◆ TransferDataFromWindow()

◆ TransferDataToGrid()

bool PANEL_TEMPLATE_FIELDNAMES::TransferDataToGrid ( )
private

◆ TransferDataToWindow()

bool PANEL_TEMPLATE_FIELDNAMES::TransferDataToWindow ( )
overrideprivate

Member Data Documentation

◆ m_addFieldButton

◆ m_checkboxColWidth

int PANEL_TEMPLATE_FIELDNAMES::m_checkboxColWidth
protected

Definition at line 74 of file panel_template_fieldnames.h.

Referenced by AdjustGridColumns(), and PANEL_TEMPLATE_FIELDNAMES().

◆ m_deleteFieldButton

◆ 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 75 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: