KiCad PCB EDA Suite
|
#include <panel_board_class.h>
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_LEN * | m_BoardClassesUnitsSelector |
wxStaticText * | m_staticTextBrdClass |
wxGrid * | m_gridClassesValuesDisplay |
wxPanel * | m_panelShowClassPrms |
Definition at line 28 of file panel_board_class.h.
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 |
||
) |
Definition at line 26 of file panel_board_class.cpp.
References PANEL_BOARD_CLASS_BASE::m_gridClassesValuesDisplay.
PANEL_BOARD_CLASS::~PANEL_BOARD_CLASS | ( | ) |
Definition at line 38 of file panel_board_class.cpp.
void PANEL_BOARD_CLASS::BoardClassesUpdateData | ( | double | aUnitScale | ) |
Definition at line 126 of file panel_board_class.cpp.
References BRDCLASS_COUNT, clist, FMT, PANEL_BOARD_CLASS_BASE::m_gridClassesValuesDisplay, and NO_VALUE.
Referenced by LoadSettings(), and OnBoardClassesUnitsSelection().
|
overridevirtual |
Load the settings into the panel.
aCfg | is 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.
|
overridevirtual |
Reimplemented from PANEL_BOARD_CLASS_BASE.
Definition at line 120 of file panel_board_class.cpp.
References BoardClassesUpdateData(), UNIT_SELECTOR_LEN::GetUnitScale(), and PANEL_BOARD_CLASS_BASE::m_BoardClassesUnitsSelector.
|
overridevirtual |
Save the settings from the panel.
aCfg | is 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.
|
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.
|
protectedinherited |
Definition at line 38 of file panel_board_class_base.h.
Referenced by LoadSettings(), OnBoardClassesUnitsSelection(), PANEL_BOARD_CLASS_BASE::PANEL_BOARD_CLASS_BASE(), SaveSettings(), and PANEL_BOARD_CLASS_BASE::~PANEL_BOARD_CLASS_BASE().
|
protectedinherited |
Definition at line 40 of file panel_board_class_base.h.
Referenced by BoardClassesUpdateData(), PANEL_BOARD_CLASS(), and PANEL_BOARD_CLASS_BASE::PANEL_BOARD_CLASS_BASE().
|
protectedinherited |
Definition at line 41 of file panel_board_class_base.h.
Referenced by PANEL_BOARD_CLASS_BASE::PANEL_BOARD_CLASS_BASE().
|
protectedinherited |
Definition at line 39 of file panel_board_class_base.h.
Referenced by PANEL_BOARD_CLASS_BASE::PANEL_BOARD_CLASS_BASE().