KiCad PCB EDA Suite
|
#include <panel_electrical_spacing_ipc2221.h>
Public Member Functions | |
PANEL_ELECTRICAL_SPACING_IPC2221 (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_IPC2221 () | |
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 | OnElectricalSpacingUnitsSelection (wxCommandEvent &event) override |
void | OnElectricalSpacingRefresh (wxCommandEvent &event) override |
void | ElectricalSpacingUpdateData (double aUnitScale) |
Protected Attributes | |
wxStaticText * | m_stSpacingUnit |
UNIT_SELECTOR_LEN * | m_ElectricalSpacingUnitsSelector |
wxStaticLine * | m_staticline2 |
wxStaticText * | m_stVoltage |
wxTextCtrl * | m_ElectricalSpacingVoltage |
wxButton * | m_buttonElectSpacingRefresh |
wxBoxSizer * | m_electricalSpacingSizer |
wxStaticText * | m_staticTextElectricalSpacing |
wxGrid * | m_gridElectricalSpacingValues |
wxStaticText * | m_stHelp |
Definition at line 28 of file panel_electrical_spacing_ipc2221.h.
PANEL_ELECTRICAL_SPACING_IPC2221::PANEL_ELECTRICAL_SPACING_IPC2221 | ( | 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_ipc2221.cpp.
References PANEL_ELECTRICAL_SPACING_IPC2221_BASE::m_gridElectricalSpacingValues.
PANEL_ELECTRICAL_SPACING_IPC2221::~PANEL_ELECTRICAL_SPACING_IPC2221 | ( | ) |
Definition at line 124 of file panel_electrical_spacing_ipc2221.cpp.
void PANEL_ELECTRICAL_SPACING_IPC2221::ElectricalSpacingUpdateData | ( | double | aUnitScale | ) |
Definition at line 163 of file panel_electrical_spacing_ipc2221.cpp.
References CLASS_COUNT, clist, DoubleFromString(), PANEL_ELECTRICAL_SPACING_IPC2221_BASE::m_ElectricalSpacingVoltage, PANEL_ELECTRICAL_SPACING_IPC2221_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_ipc2221.cpp.
References ElectricalSpacingUpdateData(), UNIT_SELECTOR_LEN::GetUnitScale(), PCB_CALCULATOR_SETTINGS::m_Electrical, PANEL_ELECTRICAL_SPACING_IPC2221_BASE::m_ElectricalSpacingUnitsSelector, PANEL_ELECTRICAL_SPACING_IPC2221_BASE::m_ElectricalSpacingVoltage, PCB_CALCULATOR_SETTINGS::ELECTRICAL::spacing_units, and PCB_CALCULATOR_SETTINGS::ELECTRICAL::spacing_voltage.
|
overridevirtual |
Reimplemented from PANEL_ELECTRICAL_SPACING_IPC2221_BASE.
Definition at line 157 of file panel_electrical_spacing_ipc2221.cpp.
References ElectricalSpacingUpdateData(), UNIT_SELECTOR_LEN::GetUnitScale(), and PANEL_ELECTRICAL_SPACING_IPC2221_BASE::m_ElectricalSpacingUnitsSelector.
|
overridevirtual |
Reimplemented from PANEL_ELECTRICAL_SPACING_IPC2221_BASE.
Definition at line 152 of file panel_electrical_spacing_ipc2221.cpp.
References ElectricalSpacingUpdateData(), UNIT_SELECTOR_LEN::GetUnitScale(), and PANEL_ELECTRICAL_SPACING_IPC2221_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_ipc2221.cpp.
References PCB_CALCULATOR_SETTINGS::m_Electrical, PANEL_ELECTRICAL_SPACING_IPC2221_BASE::m_ElectricalSpacingUnitsSelector, PANEL_ELECTRICAL_SPACING_IPC2221_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_ipc2221.cpp.
|
protectedinherited |
Definition at line 49 of file panel_electrical_spacing_ipc2221_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IPC2221_BASE::PANEL_ELECTRICAL_SPACING_IPC2221_BASE(), and PANEL_ELECTRICAL_SPACING_IPC2221_BASE::~PANEL_ELECTRICAL_SPACING_IPC2221_BASE().
|
protectedinherited |
Definition at line 50 of file panel_electrical_spacing_ipc2221_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IPC2221_BASE::PANEL_ELECTRICAL_SPACING_IPC2221_BASE().
|
protectedinherited |
Definition at line 45 of file panel_electrical_spacing_ipc2221_base.h.
Referenced by LoadSettings(), OnElectricalSpacingRefresh(), OnElectricalSpacingUnitsSelection(), PANEL_ELECTRICAL_SPACING_IPC2221_BASE::PANEL_ELECTRICAL_SPACING_IPC2221_BASE(), SaveSettings(), and PANEL_ELECTRICAL_SPACING_IPC2221_BASE::~PANEL_ELECTRICAL_SPACING_IPC2221_BASE().
|
protectedinherited |
Definition at line 48 of file panel_electrical_spacing_ipc2221_base.h.
Referenced by ElectricalSpacingUpdateData(), LoadSettings(), PANEL_ELECTRICAL_SPACING_IPC2221_BASE::PANEL_ELECTRICAL_SPACING_IPC2221_BASE(), and SaveSettings().
|
protectedinherited |
Definition at line 52 of file panel_electrical_spacing_ipc2221_base.h.
Referenced by ElectricalSpacingUpdateData(), PANEL_ELECTRICAL_SPACING_IPC2221(), and PANEL_ELECTRICAL_SPACING_IPC2221_BASE::PANEL_ELECTRICAL_SPACING_IPC2221_BASE().
|
protectedinherited |
Definition at line 46 of file panel_electrical_spacing_ipc2221_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IPC2221_BASE::PANEL_ELECTRICAL_SPACING_IPC2221_BASE().
|
protectedinherited |
Definition at line 51 of file panel_electrical_spacing_ipc2221_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IPC2221_BASE::PANEL_ELECTRICAL_SPACING_IPC2221_BASE().
|
protectedinherited |
Definition at line 53 of file panel_electrical_spacing_ipc2221_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IPC2221_BASE::PANEL_ELECTRICAL_SPACING_IPC2221_BASE().
|
protectedinherited |
Definition at line 44 of file panel_electrical_spacing_ipc2221_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IPC2221_BASE::PANEL_ELECTRICAL_SPACING_IPC2221_BASE().
|
protectedinherited |
Definition at line 47 of file panel_electrical_spacing_ipc2221_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IPC2221_BASE::PANEL_ELECTRICAL_SPACING_IPC2221_BASE().