31#include <units_scales.h> 
  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 );
 
 
UNIT_SELECTOR_LEN * m_ElectricalSpacingUnitsSelector
 
wxTextCtrl * m_ElectricalSpacingVoltage
 
PANEL_ELECTRICAL_SPACING_IPC2221_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(551, 450), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
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)
 
static BOARD_MIN_SIZE_VALUES clist[BRDCLASS_COUNT]
 
double DoubleFromString(const wxString &TextValue)
 
const double copper_resistivity
 
double DoubleFromString(const wxString &TextValue)