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)
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 

Private Member Functions

void saveSettings ()
 
void OnCellChange (wxGridEvent &aEvent)
 
void OnCellRightClick (wxGridEvent &aEvent)
 
void OnResetDefault (wxCommandEvent &aEvent)
 
void updateRowAppearance (int aRow)
 

Private Attributes

WX_GRIDm_grid
 
wxFileName m_cfgFile
 
int m_contextRow
 

Detailed Description

Definition at line 28 of file dialog_edit_cfg.h.

Constructor & Destructor Documentation

◆ DIALOG_EDIT_CFG()

DIALOG_EDIT_CFG::DIALOG_EDIT_CFG ( wxWindow * aParent)

Member Function Documentation

◆ OnCellChange()

void DIALOG_EDIT_CFG::OnCellChange ( wxGridEvent & aEvent)
private

Definition at line 260 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 287 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

◆ saveSettings()

void DIALOG_EDIT_CFG::saveSettings ( )
private

◆ TransferDataFromWindow()

bool DIALOG_EDIT_CFG::TransferDataFromWindow ( )
override

Definition at line 222 of file dialog_edit_cfg.cpp.

References m_grid, and saveSettings().

◆ TransferDataToWindow()

bool DIALOG_EDIT_CFG::TransferDataToWindow ( )
override

◆ updateRowAppearance()

void DIALOG_EDIT_CFG::updateRowAppearance ( int aRow)
private

Definition at line 322 of file dialog_edit_cfg.cpp.

References m_grid.

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

Member Data Documentation

◆ m_cfgFile

wxFileName DIALOG_EDIT_CFG::m_cfgFile
private

Definition at line 45 of file dialog_edit_cfg.h.

Referenced by DIALOG_EDIT_CFG().

◆ m_contextRow

int DIALOG_EDIT_CFG::m_contextRow
private

Definition at line 46 of file dialog_edit_cfg.h.

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

◆ m_grid


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