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

#include <panel_board_class.h>

Inheritance diagram for PANEL_BOARD_CLASS:
PANEL_BOARD_CLASS_BASE CALCULATOR_PANEL

Public Member Functions

 PANEL_BOARD_CLASS (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~PANEL_BOARD_CLASS ()
 
void LoadSettings (PCB_CALCULATOR_SETTINGS *aCfg) override
 Load the settings into the panel.
 
void SaveSettings (PCB_CALCULATOR_SETTINGS *aCfg) override
 Save the settings from the panel.
 
void ThemeChanged () override
 Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme.
 
void OnBoardClassesUnitsSelection (wxCommandEvent &event) override
 
void BoardClassesUpdateData (double aUnitScale)
 

Protected Attributes

UNIT_SELECTOR_LENm_BoardClassesUnitsSelector
 
wxStaticText * m_staticTextBrdClass
 
wxGrid * m_gridClassesValuesDisplay
 
wxPanel * m_panelShowClassPrms
 

Detailed Description

Definition at line 28 of file panel_board_class.h.

Constructor & Destructor Documentation

◆ PANEL_BOARD_CLASS()

PANEL_BOARD_CLASS::PANEL_BOARD_CLASS ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxEmptyString 
)

◆ ~PANEL_BOARD_CLASS()

PANEL_BOARD_CLASS::~PANEL_BOARD_CLASS ( )

Definition at line 38 of file panel_board_class.cpp.

Member Function Documentation

◆ BoardClassesUpdateData()

void PANEL_BOARD_CLASS::BoardClassesUpdateData ( double  aUnitScale)

◆ LoadSettings()

void PANEL_BOARD_CLASS::LoadSettings ( PCB_CALCULATOR_SETTINGS aCfg)
overridevirtual

Load the settings into the panel.

Parameters
aCfgis the settings structure to load from

Implements CALCULATOR_PANEL.

Definition at line 55 of file panel_board_class.cpp.

References BoardClassesUpdateData(), UNIT_SELECTOR_LEN::GetUnitScale(), PANEL_BOARD_CLASS_BASE::m_BoardClassesUnitsSelector, and PCB_CALCULATOR_SETTINGS::m_BoardClassUnits.

◆ OnBoardClassesUnitsSelection()

void PANEL_BOARD_CLASS::OnBoardClassesUnitsSelection ( wxCommandEvent &  event)
overridevirtual

◆ SaveSettings()

void PANEL_BOARD_CLASS::SaveSettings ( PCB_CALCULATOR_SETTINGS aCfg)
overridevirtual

Save the settings from the panel.

Parameters
aCfgis the settings structure to save to

Implements CALCULATOR_PANEL.

Definition at line 49 of file panel_board_class.cpp.

References PANEL_BOARD_CLASS_BASE::m_BoardClassesUnitsSelector, and PCB_CALCULATOR_SETTINGS::m_BoardClassUnits.

◆ ThemeChanged()

void PANEL_BOARD_CLASS::ThemeChanged ( )
overridevirtual

Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme.

Implements CALCULATOR_PANEL.

Definition at line 43 of file panel_board_class.cpp.

Member Data Documentation

◆ m_BoardClassesUnitsSelector

UNIT_SELECTOR_LEN* PANEL_BOARD_CLASS_BASE::m_BoardClassesUnitsSelector
protectedinherited

◆ m_gridClassesValuesDisplay

wxGrid* PANEL_BOARD_CLASS_BASE::m_gridClassesValuesDisplay
protectedinherited

◆ m_panelShowClassPrms

wxPanel* PANEL_BOARD_CLASS_BASE::m_panelShowClassPrms
protectedinherited

◆ m_staticTextBrdClass

wxStaticText* PANEL_BOARD_CLASS_BASE::m_staticTextBrdClass
protectedinherited

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