14PANEL_ELECTRICAL_SPACING_IPC2221_BASE::PANEL_ELECTRICAL_SPACING_IPC2221_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
CALCULATOR_PANEL( parent, id, pos, size, style,
name )
16 wxBoxSizer* bSizerElectricalClearance;
17 bSizerElectricalClearance =
new wxBoxSizer( wxHORIZONTAL );
19 wxBoxSizer* bLeftSizerElectricalClearance;
20 bLeftSizerElectricalClearance =
new wxBoxSizer( wxVERTICAL );
22 m_stSpacingUnit =
new wxStaticText(
this, wxID_ANY,
_(
"Unit:"), wxDefaultPosition, wxDefaultSize, 0 );
24 bLeftSizerElectricalClearance->Add(
m_stSpacingUnit, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
26 wxArrayString m_ElectricalSpacingUnitsSelectorChoices;
29 m_ElectricalSpacingUnitsSelector->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_LIGHT,
false, wxEmptyString ) );
33 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
34 bLeftSizerElectricalClearance->Add(
m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 10 );
36 m_stVoltage =
new wxStaticText(
this, wxID_ANY,
_(
"Voltage > 500 V:"), wxDefaultPosition, wxDefaultSize, 0 );
38 bLeftSizerElectricalClearance->Add(
m_stVoltage, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
47 bSizerElectricalClearance->Add( bLeftSizerElectricalClearance, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
51 m_staticTextElectricalSpacing =
new wxStaticText(
this, wxID_ANY,
_(
"Note: Values are minimal values (from IPC 2221)"), wxDefaultPosition, wxDefaultSize, 0 );
53 m_staticTextElectricalSpacing->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_ITALIC, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
117 m_stHelp =
new wxStaticText(
this, wxID_ANY,
_(
"* B1 - Internal Conductors\n* B2 - External Conductors, uncoated, sea level to 3050 m\n* B3 - External Conductors, uncoated, over 3050 m\n* B4 - External Conductors, with permanent polymer coating (any elevation)\n* A5 - External Conductors, with conformal coating over assembly (any elevation)\n* A6 - External Component lead/termination, uncoated\n* A7 - External Component lead termination, with conformal coating (any elevation)"), wxDefaultPosition, wxDefaultSize, 0 );
125 this->SetSizer( bSizerElectricalClearance );
UNIT_SELECTOR_LEN * m_ElectricalSpacingUnitsSelector
wxTextCtrl * m_ElectricalSpacingVoltage
wxBoxSizer * m_electricalSpacingSizer
wxStaticLine * m_staticline2
~PANEL_ELECTRICAL_SPACING_IPC2221_BASE()
wxButton * m_buttonElectSpacingRefresh
wxStaticText * m_stSpacingUnit
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)
wxStaticText * m_stVoltage
wxStaticText * m_staticTextElectricalSpacing
virtual void OnElectricalSpacingRefresh(wxCommandEvent &event)
wxGrid * m_gridElectricalSpacingValues
virtual void OnElectricalSpacingUnitsSelection(wxCommandEvent &event)