KiCad PCB EDA Suite
|
#include <panel_electrical_spacing.h>
Public Member Functions | |
PANEL_ELECTRICAL_SPACING (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString) | |
~PANEL_ELECTRICAL_SPACING () | |
void | LoadSettings (PCB_CALCULATOR_SETTINGS *aCfg) override |
Load the settings into the panel. More... | |
void | SaveSettings (PCB_CALCULATOR_SETTINGS *aCfg) override |
Save the settings from the panel. More... | |
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. More... | |
void | OnElectricalSpacingUnitsSelection (wxCommandEvent &event) override |
void | OnElectricalSpacingRefresh (wxCommandEvent &event) override |
void | ElectricalSpacingUpdateData (double aUnitScale) |
Protected Attributes | |
UNIT_SELECTOR_LEN * | m_ElectricalSpacingUnitsSelector |
wxStaticLine * | m_staticline2 |
wxStaticText * | m_staticText891 |
wxTextCtrl * | m_ElectricalSpacingVoltage |
wxButton * | m_buttonElectSpacingRefresh |
wxBoxSizer * | m_electricalSpacingSizer |
wxStaticText * | m_staticTextElectricalSpacing |
wxGrid * | m_gridElectricalSpacingValues |
wxStaticText * | m_staticText88 |
Definition at line 28 of file panel_electrical_spacing.h.
PANEL_ELECTRICAL_SPACING::PANEL_ELECTRICAL_SPACING | ( | 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 111 of file panel_electrical_spacing.cpp.
References PANEL_ELECTRICAL_SPACING_BASE::m_gridElectricalSpacingValues.
PANEL_ELECTRICAL_SPACING::~PANEL_ELECTRICAL_SPACING | ( | ) |
Definition at line 124 of file panel_electrical_spacing.cpp.
void PANEL_ELECTRICAL_SPACING::ElectricalSpacingUpdateData | ( | double | aUnitScale | ) |
Definition at line 163 of file panel_electrical_spacing.cpp.
References CLASS_COUNT, clist, DoubleFromString(), PANEL_ELECTRICAL_SPACING_BASE::m_ElectricalSpacingVoltage, PANEL_ELECTRICAL_SPACING_BASE::m_gridElectricalSpacingValues, and VALUE_COUNT.
Referenced by LoadSettings(), OnElectricalSpacingRefresh(), and OnElectricalSpacingUnitsSelection().
|
overridevirtual |
Load the settings into the panel.
aCfg | is the settings structure to load from |
Implements CALCULATOR_PANEL.
Definition at line 142 of file panel_electrical_spacing.cpp.
References ElectricalSpacingUpdateData(), UNIT_SELECTOR_LEN::GetUnitScale(), PCB_CALCULATOR_SETTINGS::m_Electrical, PANEL_ELECTRICAL_SPACING_BASE::m_ElectricalSpacingUnitsSelector, PANEL_ELECTRICAL_SPACING_BASE::m_ElectricalSpacingVoltage, PCB_CALCULATOR_SETTINGS::ELECTRICAL::spacing_units, and PCB_CALCULATOR_SETTINGS::ELECTRICAL::spacing_voltage.
|
overridevirtual |
Reimplemented from PANEL_ELECTRICAL_SPACING_BASE.
Definition at line 157 of file panel_electrical_spacing.cpp.
References ElectricalSpacingUpdateData(), UNIT_SELECTOR_LEN::GetUnitScale(), and PANEL_ELECTRICAL_SPACING_BASE::m_ElectricalSpacingUnitsSelector.
|
overridevirtual |
Reimplemented from PANEL_ELECTRICAL_SPACING_BASE.
Definition at line 152 of file panel_electrical_spacing.cpp.
References ElectricalSpacingUpdateData(), UNIT_SELECTOR_LEN::GetUnitScale(), and PANEL_ELECTRICAL_SPACING_BASE::m_ElectricalSpacingUnitsSelector.
|
overridevirtual |
Save the settings from the panel.
aCfg | is the settings structure to save to |
Implements CALCULATOR_PANEL.
Definition at line 135 of file panel_electrical_spacing.cpp.
References PCB_CALCULATOR_SETTINGS::m_Electrical, PANEL_ELECTRICAL_SPACING_BASE::m_ElectricalSpacingUnitsSelector, PANEL_ELECTRICAL_SPACING_BASE::m_ElectricalSpacingVoltage, PCB_CALCULATOR_SETTINGS::ELECTRICAL::spacing_units, and PCB_CALCULATOR_SETTINGS::ELECTRICAL::spacing_voltage.
|
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 129 of file panel_electrical_spacing.cpp.
|
protectedinherited |
Definition at line 48 of file panel_electrical_spacing_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_BASE::PANEL_ELECTRICAL_SPACING_BASE(), and PANEL_ELECTRICAL_SPACING_BASE::~PANEL_ELECTRICAL_SPACING_BASE().
|
protectedinherited |
Definition at line 49 of file panel_electrical_spacing_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_BASE::PANEL_ELECTRICAL_SPACING_BASE().
|
protectedinherited |
Definition at line 44 of file panel_electrical_spacing_base.h.
Referenced by LoadSettings(), OnElectricalSpacingRefresh(), OnElectricalSpacingUnitsSelection(), PANEL_ELECTRICAL_SPACING_BASE::PANEL_ELECTRICAL_SPACING_BASE(), SaveSettings(), and PANEL_ELECTRICAL_SPACING_BASE::~PANEL_ELECTRICAL_SPACING_BASE().
|
protectedinherited |
Definition at line 47 of file panel_electrical_spacing_base.h.
Referenced by ElectricalSpacingUpdateData(), LoadSettings(), PANEL_ELECTRICAL_SPACING_BASE::PANEL_ELECTRICAL_SPACING_BASE(), and SaveSettings().
|
protectedinherited |
Definition at line 51 of file panel_electrical_spacing_base.h.
Referenced by ElectricalSpacingUpdateData(), PANEL_ELECTRICAL_SPACING(), and PANEL_ELECTRICAL_SPACING_BASE::PANEL_ELECTRICAL_SPACING_BASE().
|
protectedinherited |
Definition at line 45 of file panel_electrical_spacing_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_BASE::PANEL_ELECTRICAL_SPACING_BASE().
|
protectedinherited |
Definition at line 52 of file panel_electrical_spacing_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_BASE::PANEL_ELECTRICAL_SPACING_BASE().
|
protectedinherited |
Definition at line 46 of file panel_electrical_spacing_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_BASE::PANEL_ELECTRICAL_SPACING_BASE().
|
protectedinherited |
Definition at line 50 of file panel_electrical_spacing_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_BASE::PANEL_ELECTRICAL_SPACING_BASE().