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

#include <dialog_edit_cfg.h>

Inheritance diagram for DIALOG_EDIT_CFG:

Public Member Functions

 DIALOG_EDIT_CFG (wxWindow *aParent)
 

Private Member Functions

void adjustColumnWidths ()
 
void OnSize (wxSizeEvent &aEvent)
 
void loadSettings ()
 
void saveSettings ()
 
void OnCellChange (wxGridEvent &aEvent)
 
void OnCellRightClick (wxGridEvent &aEvent)
 
void OnResetDefault (wxCommandEvent &aEvent)
 
void updateRowAppearance (int aRow)
 

Private Attributes

wxGrid * m_grid
 
wxFileName m_cfgFile
 
int m_contextRow
 

Detailed Description

Definition at line 26 of file dialog_edit_cfg.h.

Constructor & Destructor Documentation

◆ DIALOG_EDIT_CFG()

DIALOG_EDIT_CFG::DIALOG_EDIT_CFG ( wxWindow * aParent)

Member Function Documentation

◆ adjustColumnWidths()

void DIALOG_EDIT_CFG::adjustColumnWidths ( )
private

Definition at line 185 of file dialog_edit_cfg.cpp.

References m_grid.

Referenced by DIALOG_EDIT_CFG(), and OnSize().

◆ loadSettings()

void DIALOG_EDIT_CFG::loadSettings ( )
private

◆ OnCellChange()

void DIALOG_EDIT_CFG::OnCellChange ( wxGridEvent & aEvent)
private

Definition at line 276 of file dialog_edit_cfg.cpp.

References m_grid, saveSettings(), and updateRowAppearance().

Referenced by DIALOG_EDIT_CFG().

◆ OnCellRightClick()

void DIALOG_EDIT_CFG::OnCellRightClick ( wxGridEvent & aEvent)
private

Definition at line 301 of file dialog_edit_cfg.cpp.

References _, m_contextRow, and OnResetDefault().

Referenced by DIALOG_EDIT_CFG().

◆ OnResetDefault()

void DIALOG_EDIT_CFG::OnResetDefault ( wxCommandEvent & aEvent)
private

◆ OnSize()

void DIALOG_EDIT_CFG::OnSize ( wxSizeEvent & aEvent)
private

Definition at line 214 of file dialog_edit_cfg.cpp.

References adjustColumnWidths(), and m_grid.

Referenced by DIALOG_EDIT_CFG().

◆ saveSettings()

void DIALOG_EDIT_CFG::saveSettings ( )
private

◆ updateRowAppearance()

void DIALOG_EDIT_CFG::updateRowAppearance ( int aRow)
private

Definition at line 337 of file dialog_edit_cfg.cpp.

References m_grid.

Referenced by loadSettings(), OnCellChange(), and OnResetDefault().

Member Data Documentation

◆ m_cfgFile

wxFileName DIALOG_EDIT_CFG::m_cfgFile
private

Definition at line 42 of file dialog_edit_cfg.h.

Referenced by DIALOG_EDIT_CFG().

◆ m_contextRow

int DIALOG_EDIT_CFG::m_contextRow
private

Definition at line 43 of file dialog_edit_cfg.h.

Referenced by DIALOG_EDIT_CFG(), OnCellRightClick(), and OnResetDefault().

◆ m_grid

wxGrid* DIALOG_EDIT_CFG::m_grid
private

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