112 const wxPoint& pos,
const wxSize& size,
113 long style,
const wxString&
name ) :
120 GetSizer()->SetSizeHints(
this );
166 double voltage = 500.0;
169 if( ! txt.IsEmpty() )
172 if( voltage < 500.0 )
175 txt.Printf( wxT(
"%g" ), voltage );
182 txt.Printf( wxT(
"%g" ),
clist[ii][jj] / aUnitScale );
191 spacing += spacing_extra * ( voltage - 500.0 );
192 txt.Printf( wxT(
"%g" ), spacing / aUnitScale );
Class PANEL_ELECTRICAL_SPACING_IPC2221_BASE.
UNIT_SELECTOR_LEN * m_ElectricalSpacingUnitsSelector
wxTextCtrl * m_ElectricalSpacingVoltage
wxGrid * m_gridElectricalSpacingValues
~PANEL_ELECTRICAL_SPACING_IPC2221()
void ThemeChanged() override
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appr...
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 OnElectricalSpacingRefresh(wxCommandEvent &event) override
void ElectricalSpacingUpdateData(double aUnitScale)
void OnElectricalSpacingUnitsSelection(wxCommandEvent &event) override
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)
double GetUnitScale() override
Function GetUnitScale.
static BOARD_MIN_SIZE_VALUES clist[BRDCLASS_COUNT]
double DoubleFromString(const wxString &TextValue)
const double copper_resistivity
double DoubleFromString(const wxString &TextValue)
static double clist[CLASS_COUNT][VALUE_COUNT]