KiCad PCB EDA Suite
PANEL_VIA_SIZE_BASE Class Referenceabstract

Class PANEL_VIA_SIZE_BASE. More...

#include <panel_via_size_base.h>

Inheritance diagram for PANEL_VIA_SIZE_BASE:
CALCULATOR_PANEL PANEL_VIA_SIZE

Public Member Functions

 PANEL_VIA_SIZE_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~PANEL_VIA_SIZE_BASE ()
 
virtual void LoadSettings (PCB_CALCULATOR_SETTINGS *aCfg)=0
 Load the settings into the panel. More...
 
virtual void SaveSettings (PCB_CALCULATOR_SETTINGS *aCfg)=0
 Save the settings from the panel. More...
 
virtual void ThemeChanged ()=0
 Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme. More...
 

Protected Member Functions

virtual void OnViaCalculate (wxCommandEvent &event)
 
virtual void OnViaRho_Button (wxCommandEvent &event)
 
virtual void OnViaEpsilonR_Button (wxCommandEvent &event)
 
virtual void onUpdateViaCalcErrorText (wxUpdateUIEvent &event)
 
virtual void OnViaResetButtonClick (wxCommandEvent &event)
 

Protected Attributes

wxStaticText * m_staticTextHoleDia
 
wxTextCtrl * m_textCtrlHoleDia
 
UNIT_SELECTOR_LENm_choiceHoleDia
 
wxStaticText * m_staticTextPlatingThickness
 
wxTextCtrl * m_textCtrlPlatingThickness
 
UNIT_SELECTOR_LENm_choicePlatingThickness
 
wxStaticText * m_staticTextViaLength
 
wxTextCtrl * m_textCtrlViaLength
 
UNIT_SELECTOR_LENm_choiceViaLength
 
wxStaticText * m_staticTextViaPadDia
 
wxTextCtrl * m_textCtrlViaPadDia
 
UNIT_SELECTOR_LENm_choiceViaPadDia
 
wxStaticText * m_staticTextClearanceDia
 
wxTextCtrl * m_textCtrlClearanceDia
 
UNIT_SELECTOR_LENm_choiceClearanceDia
 
wxStaticText * m_staticTextImpedance
 
wxTextCtrl * m_textCtrlImpedance
 
UNIT_SELECTOR_RESISTORm_choiceImpedance
 
wxStaticText * m_staticAppliedCurrent
 
wxTextCtrl * m_textCtrlAppliedCurrent
 
wxStaticText * m_staticTextAppliedCurrentUnits
 
wxStaticText * m_staticTextResistivity
 
wxTextCtrl * m_textCtrlPlatingResistivity
 
wxButton * m_button_ResistivityVia
 
wxStaticText * m_viaResistivityUnits
 
wxStaticText * m_staticTextPermittivity
 
wxTextCtrl * m_textCtrlPlatingPermittivity
 
wxButton * m_button_Permittivity
 
wxStaticText * m_staticTextTemperatureDiff
 
wxTextCtrl * m_textCtrlTemperatureDiff
 
wxStaticText * m_viaTempUnits
 
wxStaticText * m_staticTextRiseTime
 
wxTextCtrl * m_textCtrlRiseTime
 
wxStaticText * m_staticTextRiseTimeUnits
 
wxStaticText * m_staticTextWarning
 
wxStaticText * m_staticTextArea11
 
wxStaticText * m_ViaResistance
 
wxStaticText * m_viaResUnits
 
wxStaticText * m_staticText65111
 
wxStaticText * m_ViaVoltageDrop
 
wxStaticText * m_staticText8411
 
wxStaticText * m_staticText66111
 
wxStaticText * m_ViaPowerLoss
 
wxStaticText * m_staticText8311
 
wxStaticText * m_staticText79211
 
wxStaticText * m_ViaThermalResistance
 
wxStaticText * m_viaThermalResUnits
 
wxStaticText * m_staticTextAmpacity
 
wxStaticText * m_ViaAmpacity
 
wxStaticText * m_staticTextAmpacityUnits
 
wxStaticText * m_staticTextCapacitance
 
wxStaticText * m_ViaCapacitance
 
wxStaticText * m_staticTextCapacitanceUnits
 
wxStaticText * m_staticTextRiseTimeOutput
 
wxStaticText * m_RiseTimeOutput
 
wxStaticText * m_staticTextRiseTimeOutputUnits
 
wxStaticText * m_staticTextInductance
 
wxStaticText * m_Inductance
 
wxStaticText * m_staticTextInductanceUnits
 
wxStaticText * m_staticTextReactance
 
wxStaticText * m_Reactance
 
wxStaticText * m_viaReactanceUnits
 
wxStaticBitmap * m_viaBitmap
 
wxButton * m_buttonViaReset
 

Detailed Description

Class PANEL_VIA_SIZE_BASE.

Definition at line 40 of file panel_via_size_base.h.

Constructor & Destructor Documentation

◆ PANEL_VIA_SIZE_BASE()

PANEL_VIA_SIZE_BASE::PANEL_VIA_SIZE_BASE ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize( -1,-1 ),
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxEmptyString 
)

Definition at line 14 of file panel_via_size_base.cpp.

14 : CALCULATOR_PANEL( parent, id, pos, size, style, name )
15{
16 wxBoxSizer* bSizerViaSize;
17 bSizerViaSize = new wxBoxSizer( wxHORIZONTAL );
18
19 wxBoxSizer* bSizerViaLeftColumn;
20 bSizerViaLeftColumn = new wxBoxSizer( wxVERTICAL );
21
22 wxStaticBoxSizer* sbSizerVS_Inputs;
23 sbSizerVS_Inputs = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Parameters") ), wxVERTICAL );
24
25 wxFlexGridSizer* fgSizerVS_Inputs;
26 fgSizerVS_Inputs = new wxFlexGridSizer( 0, 3, 4, 0 );
27 fgSizerVS_Inputs->AddGrowableCol( 1 );
28 fgSizerVS_Inputs->SetFlexibleDirection( wxBOTH );
29 fgSizerVS_Inputs->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
30
31 m_staticTextHoleDia = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("Finished hole diameter (D):"), wxDefaultPosition, wxDefaultSize, 0 );
32 m_staticTextHoleDia->Wrap( -1 );
33 m_staticTextHoleDia->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
34
35 fgSizerVS_Inputs->Add( m_staticTextHoleDia, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
36
37 m_textCtrlHoleDia = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
38 fgSizerVS_Inputs->Add( m_textCtrlHoleDia, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
39
40 wxArrayString m_choiceHoleDiaChoices;
41 m_choiceHoleDia = new UNIT_SELECTOR_LEN( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceHoleDiaChoices, 0 );
42 m_choiceHoleDia->SetSelection( 0 );
43 fgSizerVS_Inputs->Add( m_choiceHoleDia, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
44
45 m_staticTextPlatingThickness = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("Plating thickness (T):"), wxDefaultPosition, wxDefaultSize, 0 );
47 fgSizerVS_Inputs->Add( m_staticTextPlatingThickness, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
48
49 m_textCtrlPlatingThickness = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
50 fgSizerVS_Inputs->Add( m_textCtrlPlatingThickness, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
51
52 wxArrayString m_choicePlatingThicknessChoices;
53 m_choicePlatingThickness = new UNIT_SELECTOR_LEN( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choicePlatingThicknessChoices, 0 );
54 m_choicePlatingThickness->SetSelection( 0 );
55 fgSizerVS_Inputs->Add( m_choicePlatingThickness, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
56
57 m_staticTextViaLength = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("Via length:"), wxDefaultPosition, wxDefaultSize, 0 );
58 m_staticTextViaLength->Wrap( -1 );
59 m_staticTextViaLength->SetToolTip( _("Via length is the board thickness for through hole vias") );
60
61 fgSizerVS_Inputs->Add( m_staticTextViaLength, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
62
63 m_textCtrlViaLength = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
64 fgSizerVS_Inputs->Add( m_textCtrlViaLength, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
65
66 wxArrayString m_choiceViaLengthChoices;
67 m_choiceViaLength = new UNIT_SELECTOR_LEN( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceViaLengthChoices, 0 );
68 m_choiceViaLength->SetSelection( 0 );
69 fgSizerVS_Inputs->Add( m_choiceViaLength, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
70
71 m_staticTextViaPadDia = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("Via pad diameter:"), wxDefaultPosition, wxDefaultSize, 0 );
72 m_staticTextViaPadDia->Wrap( -1 );
73 m_staticTextViaPadDia->SetToolTip( _("Diameter of pad surrounding via (annular ring)") );
74
75 fgSizerVS_Inputs->Add( m_staticTextViaPadDia, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
76
77 m_textCtrlViaPadDia = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
78 fgSizerVS_Inputs->Add( m_textCtrlViaPadDia, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
79
80 wxArrayString m_choiceViaPadDiaChoices;
81 m_choiceViaPadDia = new UNIT_SELECTOR_LEN( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceViaPadDiaChoices, 0 );
82 m_choiceViaPadDia->SetSelection( 0 );
83 fgSizerVS_Inputs->Add( m_choiceViaPadDia, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
84
85 m_staticTextClearanceDia = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("Clearance hole diameter:"), wxDefaultPosition, wxDefaultSize, 0 );
86 m_staticTextClearanceDia->Wrap( -1 );
87 m_staticTextClearanceDia->SetToolTip( _("Diameter of clearance hole in ground plane(s)") );
88
89 fgSizerVS_Inputs->Add( m_staticTextClearanceDia, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
90
91 m_textCtrlClearanceDia = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
92 fgSizerVS_Inputs->Add( m_textCtrlClearanceDia, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
93
94 wxArrayString m_choiceClearanceDiaChoices;
95 m_choiceClearanceDia = new UNIT_SELECTOR_LEN( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceClearanceDiaChoices, 0 );
96 m_choiceClearanceDia->SetSelection( 0 );
97 fgSizerVS_Inputs->Add( m_choiceClearanceDia, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
98
99 m_staticTextImpedance = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("Z0:"), wxDefaultPosition, wxDefaultSize, 0 );
100 m_staticTextImpedance->Wrap( -1 );
101 m_staticTextImpedance->SetToolTip( _("Characteristic impedance of conductor") );
102
103 fgSizerVS_Inputs->Add( m_staticTextImpedance, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
104
105 m_textCtrlImpedance = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
106 fgSizerVS_Inputs->Add( m_textCtrlImpedance, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
107
108 wxArrayString m_choiceImpedanceChoices;
109 m_choiceImpedance = new UNIT_SELECTOR_RESISTOR( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceImpedanceChoices, 0 );
110 m_choiceImpedance->SetSelection( 0 );
111 fgSizerVS_Inputs->Add( m_choiceImpedance, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
112
113 m_staticAppliedCurrent = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("Applied current:"), wxDefaultPosition, wxDefaultSize, 0 );
114 m_staticAppliedCurrent->Wrap( -1 );
115 fgSizerVS_Inputs->Add( m_staticAppliedCurrent, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
116
117 m_textCtrlAppliedCurrent = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
118 fgSizerVS_Inputs->Add( m_textCtrlAppliedCurrent, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
119
120 m_staticTextAppliedCurrentUnits = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("A"), wxDefaultPosition, wxDefaultSize, 0 );
122 fgSizerVS_Inputs->Add( m_staticTextAppliedCurrentUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
123
124 m_staticTextResistivity = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("Plating resistivity:"), wxDefaultPosition, wxDefaultSize, 0 );
125 m_staticTextResistivity->Wrap( -1 );
126 m_staticTextResistivity->SetToolTip( _("Specific resistance in ohms * meters") );
127
128 fgSizerVS_Inputs->Add( m_staticTextResistivity, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
129
130 wxBoxSizer* bSizerResistivity;
131 bSizerResistivity = new wxBoxSizer( wxHORIZONTAL );
132
133 m_textCtrlPlatingResistivity = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
134 bSizerResistivity->Add( m_textCtrlPlatingResistivity, 1, wxEXPAND|wxLEFT, 5 );
135
136 m_button_ResistivityVia = new wxButton( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
137 bSizerResistivity->Add( m_button_ResistivityVia, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
138
139
140 fgSizerVS_Inputs->Add( bSizerResistivity, 1, wxEXPAND, 5 );
141
142 m_viaResistivityUnits = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("ohm-meter"), wxDefaultPosition, wxDefaultSize, 0 );
143 m_viaResistivityUnits->Wrap( -1 );
144 fgSizerVS_Inputs->Add( m_viaResistivityUnits, 0, wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
145
146 m_staticTextPermittivity = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("Substrate relative permittivity:"), wxDefaultPosition, wxDefaultSize, 0 );
147 m_staticTextPermittivity->Wrap( -1 );
148 m_staticTextPermittivity->SetToolTip( _("Relative dielectric constant (epsilon r)") );
149
150 fgSizerVS_Inputs->Add( m_staticTextPermittivity, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
151
152 wxBoxSizer* bSizerPermittivity;
153 bSizerPermittivity = new wxBoxSizer( wxHORIZONTAL );
154
155 m_textCtrlPlatingPermittivity = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
156 bSizerPermittivity->Add( m_textCtrlPlatingPermittivity, 1, wxEXPAND|wxLEFT, 5 );
157
158 m_button_Permittivity = new wxButton( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
159 bSizerPermittivity->Add( m_button_Permittivity, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
160
161
162 fgSizerVS_Inputs->Add( bSizerPermittivity, 1, wxEXPAND, 5 );
163
164
165 fgSizerVS_Inputs->Add( 0, 0, 1, wxEXPAND, 5 );
166
167 m_staticTextTemperatureDiff = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("Temperature rise:"), wxDefaultPosition, wxDefaultSize, 0 );
168 m_staticTextTemperatureDiff->Wrap( -1 );
169 m_staticTextTemperatureDiff->SetToolTip( _("Maximum acceptable rise in temperature") );
170
171 fgSizerVS_Inputs->Add( m_staticTextTemperatureDiff, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
172
173 m_textCtrlTemperatureDiff = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
174 fgSizerVS_Inputs->Add( m_textCtrlTemperatureDiff, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
175
176 m_viaTempUnits = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("deg C"), wxDefaultPosition, wxDefaultSize, 0 );
177 m_viaTempUnits->Wrap( -1 );
178 fgSizerVS_Inputs->Add( m_viaTempUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
179
180 m_staticTextRiseTime = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("Pulse rise time:"), wxDefaultPosition, wxDefaultSize, 0 );
181 m_staticTextRiseTime->Wrap( -1 );
182 m_staticTextRiseTime->SetToolTip( _("Pulse rise time to calculate reactance") );
183
184 fgSizerVS_Inputs->Add( m_staticTextRiseTime, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
185
186 m_textCtrlRiseTime = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
187 fgSizerVS_Inputs->Add( m_textCtrlRiseTime, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
188
189 m_staticTextRiseTimeUnits = new wxStaticText( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, _("ns"), wxDefaultPosition, wxDefaultSize, 0 );
190 m_staticTextRiseTimeUnits->Wrap( -1 );
191 m_staticTextRiseTimeUnits->SetToolTip( _("nanoseconds") );
192
193 fgSizerVS_Inputs->Add( m_staticTextRiseTimeUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
194
195
196 sbSizerVS_Inputs->Add( fgSizerVS_Inputs, 0, wxEXPAND, 5 );
197
198
199 bSizerViaLeftColumn->Add( sbSizerVS_Inputs, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
200
201 m_staticTextWarning = new wxStaticText( this, wxID_ANY, _("Warning:\nVia pad diameter >= Clearance hole diameter.\nSome parameters cannot be calculated for a via inside a copper zone."), wxDefaultPosition, wxDefaultSize, 0 );
202 m_staticTextWarning->Wrap( -1 );
203 m_staticTextWarning->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
204
205 bSizerViaLeftColumn->Add( m_staticTextWarning, 0, wxALL|wxEXPAND, 10 );
206
207
208 bSizerViaSize->Add( bSizerViaLeftColumn, 0, wxEXPAND, 5 );
209
210 wxBoxSizer* bSizerRight;
211 bSizerRight = new wxBoxSizer( wxVERTICAL );
212
213 bSizerRight->SetMinSize( wxSize( -1,460 ) );
214 wxBoxSizer* bSizer6;
215 bSizer6 = new wxBoxSizer( wxVERTICAL );
216
217 wxStaticBoxSizer* sbSizerVS_Result;
218 sbSizerVS_Result = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Results") ), wxVERTICAL );
219
220 wxFlexGridSizer* fgSizerTW_Results11;
221 fgSizerTW_Results11 = new wxFlexGridSizer( 0, 3, 5, 0 );
222 fgSizerTW_Results11->AddGrowableCol( 1 );
223 fgSizerTW_Results11->SetFlexibleDirection( wxBOTH );
224 fgSizerTW_Results11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
225
226 m_staticTextArea11 = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("Resistance:"), wxDefaultPosition, wxDefaultSize, 0 );
227 m_staticTextArea11->Wrap( -1 );
228 fgSizerTW_Results11->Add( m_staticTextArea11, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
229
230 m_ViaResistance = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
231 m_ViaResistance->Wrap( -1 );
232 fgSizerTW_Results11->Add( m_ViaResistance, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
233
234 m_viaResUnits = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("ohm"), wxDefaultPosition, wxDefaultSize, 0 );
235 m_viaResUnits->Wrap( -1 );
236 fgSizerTW_Results11->Add( m_viaResUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
237
238 m_staticText65111 = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("Voltage drop:"), wxDefaultPosition, wxDefaultSize, 0 );
239 m_staticText65111->Wrap( -1 );
240 fgSizerTW_Results11->Add( m_staticText65111, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
241
242 m_ViaVoltageDrop = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
243 m_ViaVoltageDrop->Wrap( -1 );
244 fgSizerTW_Results11->Add( m_ViaVoltageDrop, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
245
246 m_staticText8411 = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("V"), wxDefaultPosition, wxDefaultSize, 0 );
247 m_staticText8411->Wrap( -1 );
248 fgSizerTW_Results11->Add( m_staticText8411, 0, wxALIGN_CENTER_VERTICAL, 5 );
249
250 m_staticText66111 = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("Power loss:"), wxDefaultPosition, wxDefaultSize, 0 );
251 m_staticText66111->Wrap( -1 );
252 fgSizerTW_Results11->Add( m_staticText66111, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
253
254 m_ViaPowerLoss = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
255 m_ViaPowerLoss->Wrap( -1 );
256 fgSizerTW_Results11->Add( m_ViaPowerLoss, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
257
258 m_staticText8311 = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("W"), wxDefaultPosition, wxDefaultSize, 0 );
259 m_staticText8311->Wrap( -1 );
260 fgSizerTW_Results11->Add( m_staticText8311, 0, wxALIGN_CENTER_VERTICAL, 5 );
261
262 m_staticText79211 = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("Thermal resistance:"), wxDefaultPosition, wxDefaultSize, 0 );
263 m_staticText79211->Wrap( -1 );
264 m_staticText79211->SetToolTip( _("Using thermal conductivity value 401 Watts/(meter-Kelvin)") );
265
266 fgSizerTW_Results11->Add( m_staticText79211, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
267
268 m_ViaThermalResistance = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
269 m_ViaThermalResistance->Wrap( -1 );
270 fgSizerTW_Results11->Add( m_ViaThermalResistance, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
271
272 m_viaThermalResUnits = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("deg C/W"), wxDefaultPosition, wxDefaultSize, 0 );
273 m_viaThermalResUnits->Wrap( -1 );
274 fgSizerTW_Results11->Add( m_viaThermalResUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
275
276 m_staticTextAmpacity = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("Estimated ampacity:"), wxDefaultPosition, wxDefaultSize, 0 );
277 m_staticTextAmpacity->Wrap( -1 );
278 m_staticTextAmpacity->SetToolTip( _("Based on temperature rise") );
279
280 fgSizerTW_Results11->Add( m_staticTextAmpacity, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
281
282 m_ViaAmpacity = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
283 m_ViaAmpacity->Wrap( -1 );
284 fgSizerTW_Results11->Add( m_ViaAmpacity, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
285
286 m_staticTextAmpacityUnits = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("A"), wxDefaultPosition, wxDefaultSize, 0 );
287 m_staticTextAmpacityUnits->Wrap( -1 );
288 fgSizerTW_Results11->Add( m_staticTextAmpacityUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
289
290 m_staticTextCapacitance = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("Capacitance:"), wxDefaultPosition, wxDefaultSize, 0 );
291 m_staticTextCapacitance->Wrap( -1 );
292 fgSizerTW_Results11->Add( m_staticTextCapacitance, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
293
294 m_ViaCapacitance = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
295 m_ViaCapacitance->Wrap( -1 );
296 fgSizerTW_Results11->Add( m_ViaCapacitance, 0, wxRIGHT|wxLEFT, 5 );
297
298 m_staticTextCapacitanceUnits = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("pF"), wxDefaultPosition, wxDefaultSize, 0 );
300 m_staticTextCapacitanceUnits->SetToolTip( _("pico-Farad") );
301
302 fgSizerTW_Results11->Add( m_staticTextCapacitanceUnits, 0, 0, 5 );
303
304 m_staticTextRiseTimeOutput = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("Rise time degradation:"), wxDefaultPosition, wxDefaultSize, 0 );
305 m_staticTextRiseTimeOutput->Wrap( -1 );
306 m_staticTextRiseTimeOutput->SetToolTip( _("Rise time degradation for given Z0 and calculated capacitance") );
307
308 fgSizerTW_Results11->Add( m_staticTextRiseTimeOutput, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
309
310 m_RiseTimeOutput = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
311 m_RiseTimeOutput->Wrap( -1 );
312 fgSizerTW_Results11->Add( m_RiseTimeOutput, 0, wxRIGHT|wxLEFT, 5 );
313
314 m_staticTextRiseTimeOutputUnits = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("ps"), wxDefaultPosition, wxDefaultSize, 0 );
316 m_staticTextRiseTimeOutputUnits->SetToolTip( _("picoseconds") );
317
318 fgSizerTW_Results11->Add( m_staticTextRiseTimeOutputUnits, 0, 0, 5 );
319
320 m_staticTextInductance = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("Inductance:"), wxDefaultPosition, wxDefaultSize, 0 );
321 m_staticTextInductance->Wrap( -1 );
322 fgSizerTW_Results11->Add( m_staticTextInductance, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
323
324 m_Inductance = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
325 m_Inductance->Wrap( -1 );
326 fgSizerTW_Results11->Add( m_Inductance, 0, wxRIGHT|wxLEFT, 5 );
327
328 m_staticTextInductanceUnits = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("nH"), wxDefaultPosition, wxDefaultSize, 0 );
329 m_staticTextInductanceUnits->Wrap( -1 );
330 m_staticTextInductanceUnits->SetToolTip( _("nano-Henry") );
331
332 fgSizerTW_Results11->Add( m_staticTextInductanceUnits, 0, 0, 5 );
333
334 m_staticTextReactance = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("Reactance:"), wxDefaultPosition, wxDefaultSize, 0 );
335 m_staticTextReactance->Wrap( -1 );
336 m_staticTextReactance->SetToolTip( _("Inductive reactance for given rise time and calculated inductance") );
337
338 fgSizerTW_Results11->Add( m_staticTextReactance, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
339
340 m_Reactance = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
341 m_Reactance->Wrap( -1 );
342 fgSizerTW_Results11->Add( m_Reactance, 0, wxRIGHT|wxLEFT, 5 );
343
344 m_viaReactanceUnits = new wxStaticText( sbSizerVS_Result->GetStaticBox(), wxID_ANY, _("ohm"), wxDefaultPosition, wxDefaultSize, 0 );
345 m_viaReactanceUnits->Wrap( -1 );
346 fgSizerTW_Results11->Add( m_viaReactanceUnits, 0, 0, 5 );
347
348
349 sbSizerVS_Result->Add( fgSizerTW_Results11, 0, wxEXPAND|wxBOTTOM, 5 );
350
351
352 bSizer6->Add( sbSizerVS_Result, 0, wxALL, 5 );
353
354 m_viaBitmap = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
355 m_viaBitmap->SetToolTip( _("Top view of via") );
356
357 bSizer6->Add( m_viaBitmap, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxRIGHT|wxLEFT, 10 );
358
359
360 bSizerRight->Add( bSizer6, 0, 0, 5 );
361
362
363 bSizerRight->Add( 0, 0, 1, 0, 5 );
364
365 m_buttonViaReset = new wxButton( this, wxID_ANY, _("Reset to Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
366 bSizerRight->Add( m_buttonViaReset, 0, wxALIGN_RIGHT|wxALL, 10 );
367
368
369 bSizerViaSize->Add( bSizerRight, 1, wxEXPAND, 5 );
370
371
372 this->SetSizer( bSizerViaSize );
373 this->Layout();
374 bSizerViaSize->Fit( this );
375
376 // Connect Events
377 m_textCtrlHoleDia->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
378 m_choiceHoleDia->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
379 m_textCtrlPlatingThickness->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
380 m_choicePlatingThickness->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
381 m_textCtrlViaLength->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
382 m_choiceViaLength->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
383 m_textCtrlViaPadDia->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
384 m_choiceViaPadDia->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
385 m_textCtrlClearanceDia->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
386 m_choiceClearanceDia->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
387 m_textCtrlImpedance->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
388 m_choiceImpedance->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
389 m_textCtrlAppliedCurrent->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
390 m_textCtrlPlatingResistivity->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
391 m_button_ResistivityVia->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaRho_Button ), NULL, this );
392 m_textCtrlPlatingPermittivity->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
393 m_button_Permittivity->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaEpsilonR_Button ), NULL, this );
394 m_textCtrlTemperatureDiff->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
395 m_textCtrlRiseTime->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
396 m_staticTextWarning->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_VIA_SIZE_BASE::onUpdateViaCalcErrorText ), NULL, this );
397 m_buttonViaReset->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaResetButtonClick ), NULL, this );
398}
const char * name
Definition: DXF_plotter.cpp:56
CALCULATOR_PANEL(wxWindow *aParent, wxWindowID aId, const wxPoint &aPos, const wxSize &aSize, long aStyle, const wxString &aName)
wxTextCtrl * m_textCtrlPlatingResistivity
wxTextCtrl * m_textCtrlClearanceDia
wxStaticText * m_RiseTimeOutput
wxStaticText * m_staticTextRiseTimeOutputUnits
wxTextCtrl * m_textCtrlPlatingThickness
wxButton * m_button_ResistivityVia
wxStaticText * m_staticTextWarning
UNIT_SELECTOR_LEN * m_choiceClearanceDia
wxStaticText * m_ViaThermalResistance
wxButton * m_button_Permittivity
wxStaticText * m_staticTextAppliedCurrentUnits
wxStaticText * m_staticTextViaLength
wxTextCtrl * m_textCtrlViaLength
wxTextCtrl * m_textCtrlAppliedCurrent
wxStaticText * m_staticTextRiseTimeUnits
virtual void OnViaRho_Button(wxCommandEvent &event)
wxStaticText * m_staticTextRiseTime
wxTextCtrl * m_textCtrlViaPadDia
wxTextCtrl * m_textCtrlRiseTime
wxStaticText * m_staticText66111
wxStaticText * m_staticTextPlatingThickness
virtual void OnViaEpsilonR_Button(wxCommandEvent &event)
wxStaticText * m_staticTextTemperatureDiff
wxStaticText * m_ViaAmpacity
wxStaticText * m_staticTextViaPadDia
wxStaticText * m_viaResUnits
wxStaticText * m_staticTextClearanceDia
wxTextCtrl * m_textCtrlHoleDia
wxStaticText * m_staticTextPermittivity
wxTextCtrl * m_textCtrlImpedance
wxStaticText * m_staticTextInductance
wxStaticText * m_staticTextReactance
wxStaticText * m_viaReactanceUnits
wxStaticText * m_staticTextRiseTimeOutput
wxStaticText * m_staticText8411
UNIT_SELECTOR_LEN * m_choiceViaPadDia
wxStaticText * m_ViaCapacitance
wxStaticText * m_staticAppliedCurrent
UNIT_SELECTOR_RESISTOR * m_choiceImpedance
wxStaticText * m_ViaResistance
wxStaticText * m_staticText79211
wxStaticText * m_staticTextAmpacityUnits
wxTextCtrl * m_textCtrlTemperatureDiff
virtual void OnViaCalculate(wxCommandEvent &event)
wxStaticText * m_Inductance
wxStaticText * m_staticTextCapacitance
wxStaticText * m_ViaVoltageDrop
wxStaticText * m_staticTextInductanceUnits
wxTextCtrl * m_textCtrlPlatingPermittivity
wxStaticText * m_staticTextHoleDia
wxStaticText * m_staticText65111
wxStaticBitmap * m_viaBitmap
wxStaticText * m_staticTextArea11
wxStaticText * m_viaResistivityUnits
wxStaticText * m_staticTextCapacitanceUnits
UNIT_SELECTOR_LEN * m_choiceViaLength
UNIT_SELECTOR_LEN * m_choiceHoleDia
wxStaticText * m_viaTempUnits
wxStaticText * m_Reactance
wxStaticText * m_staticTextResistivity
wxStaticText * m_ViaPowerLoss
UNIT_SELECTOR_LEN * m_choicePlatingThickness
wxStaticText * m_staticTextImpedance
wxStaticText * m_staticTextAmpacity
virtual void OnViaResetButtonClick(wxCommandEvent &event)
wxStaticText * m_staticText8311
virtual void onUpdateViaCalcErrorText(wxUpdateUIEvent &event)
wxStaticText * m_viaThermalResUnits
#define _(s)

References _, m_button_Permittivity, m_button_ResistivityVia, m_buttonViaReset, m_choiceClearanceDia, m_choiceHoleDia, m_choiceImpedance, m_choicePlatingThickness, m_choiceViaLength, m_choiceViaPadDia, m_Inductance, m_Reactance, m_RiseTimeOutput, m_staticAppliedCurrent, m_staticText65111, m_staticText66111, m_staticText79211, m_staticText8311, m_staticText8411, m_staticTextAmpacity, m_staticTextAmpacityUnits, m_staticTextAppliedCurrentUnits, m_staticTextArea11, m_staticTextCapacitance, m_staticTextCapacitanceUnits, m_staticTextClearanceDia, m_staticTextHoleDia, m_staticTextImpedance, m_staticTextInductance, m_staticTextInductanceUnits, m_staticTextPermittivity, m_staticTextPlatingThickness, m_staticTextReactance, m_staticTextResistivity, m_staticTextRiseTime, m_staticTextRiseTimeOutput, m_staticTextRiseTimeOutputUnits, m_staticTextRiseTimeUnits, m_staticTextTemperatureDiff, m_staticTextViaLength, m_staticTextViaPadDia, m_staticTextWarning, m_textCtrlAppliedCurrent, m_textCtrlClearanceDia, m_textCtrlHoleDia, m_textCtrlImpedance, m_textCtrlPlatingPermittivity, m_textCtrlPlatingResistivity, m_textCtrlPlatingThickness, m_textCtrlRiseTime, m_textCtrlTemperatureDiff, m_textCtrlViaLength, m_textCtrlViaPadDia, m_ViaAmpacity, m_viaBitmap, m_ViaCapacitance, m_ViaPowerLoss, m_viaReactanceUnits, m_ViaResistance, m_viaResistivityUnits, m_viaResUnits, m_viaTempUnits, m_ViaThermalResistance, m_viaThermalResUnits, m_ViaVoltageDrop, onUpdateViaCalcErrorText(), OnViaCalculate(), OnViaEpsilonR_Button(), OnViaResetButtonClick(), and OnViaRho_Button().

◆ ~PANEL_VIA_SIZE_BASE()

PANEL_VIA_SIZE_BASE::~PANEL_VIA_SIZE_BASE ( )

Definition at line 400 of file panel_via_size_base.cpp.

401{
402 // Disconnect Events
403 m_textCtrlHoleDia->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
404 m_choiceHoleDia->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
405 m_textCtrlPlatingThickness->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
406 m_choicePlatingThickness->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
407 m_textCtrlViaLength->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
408 m_choiceViaLength->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
409 m_textCtrlViaPadDia->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
410 m_choiceViaPadDia->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
411 m_textCtrlClearanceDia->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
412 m_choiceClearanceDia->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
413 m_textCtrlImpedance->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
414 m_choiceImpedance->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
415 m_textCtrlAppliedCurrent->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
416 m_textCtrlPlatingResistivity->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
417 m_button_ResistivityVia->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaRho_Button ), NULL, this );
418 m_textCtrlPlatingPermittivity->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
419 m_button_Permittivity->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaEpsilonR_Button ), NULL, this );
420 m_textCtrlTemperatureDiff->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
421 m_textCtrlRiseTime->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaCalculate ), NULL, this );
422 m_staticTextWarning->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( PANEL_VIA_SIZE_BASE::onUpdateViaCalcErrorText ), NULL, this );
423 m_buttonViaReset->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_VIA_SIZE_BASE::OnViaResetButtonClick ), NULL, this );
424
425}

References m_button_Permittivity, m_button_ResistivityVia, m_buttonViaReset, m_choiceClearanceDia, m_choiceHoleDia, m_choiceImpedance, m_choicePlatingThickness, m_choiceViaLength, m_choiceViaPadDia, m_staticTextWarning, m_textCtrlAppliedCurrent, m_textCtrlClearanceDia, m_textCtrlHoleDia, m_textCtrlImpedance, m_textCtrlPlatingPermittivity, m_textCtrlPlatingResistivity, m_textCtrlPlatingThickness, m_textCtrlRiseTime, m_textCtrlTemperatureDiff, m_textCtrlViaLength, m_textCtrlViaPadDia, onUpdateViaCalcErrorText(), OnViaCalculate(), OnViaEpsilonR_Button(), OnViaResetButtonClick(), and OnViaRho_Button().

Member Function Documentation

◆ LoadSettings()

virtual void CALCULATOR_PANEL::LoadSettings ( PCB_CALCULATOR_SETTINGS aCfg)
pure virtualinherited

◆ onUpdateViaCalcErrorText()

virtual void PANEL_VIA_SIZE_BASE::onUpdateViaCalcErrorText ( wxUpdateUIEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_VIA_SIZE.

Definition at line 114 of file panel_via_size_base.h.

114{ event.Skip(); }

Referenced by PANEL_VIA_SIZE_BASE(), and ~PANEL_VIA_SIZE_BASE().

◆ OnViaCalculate()

virtual void PANEL_VIA_SIZE_BASE::OnViaCalculate ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_VIA_SIZE.

Definition at line 111 of file panel_via_size_base.h.

111{ event.Skip(); }

Referenced by PANEL_VIA_SIZE_BASE(), and ~PANEL_VIA_SIZE_BASE().

◆ OnViaEpsilonR_Button()

virtual void PANEL_VIA_SIZE_BASE::OnViaEpsilonR_Button ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_VIA_SIZE.

Definition at line 113 of file panel_via_size_base.h.

113{ event.Skip(); }

Referenced by PANEL_VIA_SIZE_BASE(), and ~PANEL_VIA_SIZE_BASE().

◆ OnViaResetButtonClick()

virtual void PANEL_VIA_SIZE_BASE::OnViaResetButtonClick ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_VIA_SIZE.

Definition at line 115 of file panel_via_size_base.h.

115{ event.Skip(); }

Referenced by PANEL_VIA_SIZE_BASE(), and ~PANEL_VIA_SIZE_BASE().

◆ OnViaRho_Button()

virtual void PANEL_VIA_SIZE_BASE::OnViaRho_Button ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_VIA_SIZE.

Definition at line 112 of file panel_via_size_base.h.

112{ event.Skip(); }

Referenced by PANEL_VIA_SIZE_BASE(), and ~PANEL_VIA_SIZE_BASE().

◆ SaveSettings()

virtual void CALCULATOR_PANEL::SaveSettings ( PCB_CALCULATOR_SETTINGS aCfg)
pure virtualinherited

◆ ThemeChanged()

virtual void CALCULATOR_PANEL::ThemeChanged ( )
pure virtualinherited

Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme.

Implemented in PANEL_BOARD_CLASS, PANEL_CABLE_SIZE, PANEL_COLOR_CODE, PANEL_ELECTRICAL_SPACING, PANEL_E_SERIES, PANEL_FUSING_CURRENT, PANEL_GALVANIC_CORROSION, PANEL_REGULATOR, PANEL_RF_ATTENUATORS, PANEL_TRACK_WIDTH, PANEL_TRANSLINE, PANEL_VIA_SIZE, and PANEL_WAVELENGTH.

Member Data Documentation

◆ m_button_Permittivity

wxButton* PANEL_VIA_SIZE_BASE::m_button_Permittivity
protected

Definition at line 72 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE(), and ~PANEL_VIA_SIZE_BASE().

◆ m_button_ResistivityVia

wxButton* PANEL_VIA_SIZE_BASE::m_button_ResistivityVia
protected

Definition at line 68 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE(), and ~PANEL_VIA_SIZE_BASE().

◆ m_buttonViaReset

wxButton* PANEL_VIA_SIZE_BASE::m_buttonViaReset
protected

Definition at line 108 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE(), and ~PANEL_VIA_SIZE_BASE().

◆ m_choiceClearanceDia

◆ m_choiceHoleDia

◆ m_choiceImpedance

◆ m_choicePlatingThickness

◆ m_choiceViaLength

◆ m_choiceViaPadDia

◆ m_Inductance

wxStaticText* PANEL_VIA_SIZE_BASE::m_Inductance
protected

Definition at line 102 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE(), and PANEL_VIA_SIZE::VSDisplayValues().

◆ m_Reactance

wxStaticText* PANEL_VIA_SIZE_BASE::m_Reactance
protected

Definition at line 105 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE(), and PANEL_VIA_SIZE::VSDisplayValues().

◆ m_RiseTimeOutput

wxStaticText* PANEL_VIA_SIZE_BASE::m_RiseTimeOutput
protected

Definition at line 99 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE(), and PANEL_VIA_SIZE::VSDisplayValues().

◆ m_staticAppliedCurrent

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticAppliedCurrent
protected

Definition at line 63 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticText65111

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticText65111
protected

Definition at line 83 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticText66111

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticText66111
protected

Definition at line 86 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticText79211

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticText79211
protected

Definition at line 89 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticText8311

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticText8311
protected

Definition at line 88 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticText8411

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticText8411
protected

Definition at line 85 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextAmpacity

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextAmpacity
protected

Definition at line 92 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextAmpacityUnits

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextAmpacityUnits
protected

Definition at line 94 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextAppliedCurrentUnits

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextAppliedCurrentUnits
protected

Definition at line 65 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextArea11

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextArea11
protected

Definition at line 80 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextCapacitance

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextCapacitance
protected

Definition at line 95 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextCapacitanceUnits

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextCapacitanceUnits
protected

Definition at line 97 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextClearanceDia

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextClearanceDia
protected

Definition at line 57 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextHoleDia

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextHoleDia
protected

Definition at line 45 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextImpedance

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextImpedance
protected

Definition at line 60 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextInductance

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextInductance
protected

Definition at line 101 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextInductanceUnits

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextInductanceUnits
protected

Definition at line 103 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextPermittivity

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextPermittivity
protected

Definition at line 70 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextPlatingThickness

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextPlatingThickness
protected

Definition at line 48 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextReactance

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextReactance
protected

Definition at line 104 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextResistivity

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextResistivity
protected

Definition at line 66 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextRiseTime

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextRiseTime
protected

Definition at line 76 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextRiseTimeOutput

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextRiseTimeOutput
protected

Definition at line 98 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextRiseTimeOutputUnits

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextRiseTimeOutputUnits
protected

Definition at line 100 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextRiseTimeUnits

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextRiseTimeUnits
protected

Definition at line 78 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextTemperatureDiff

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextTemperatureDiff
protected

Definition at line 73 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextViaLength

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextViaLength
protected

Definition at line 51 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextViaPadDia

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextViaPadDia
protected

Definition at line 54 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE().

◆ m_staticTextWarning

wxStaticText* PANEL_VIA_SIZE_BASE::m_staticTextWarning
protected

◆ m_textCtrlAppliedCurrent

◆ m_textCtrlClearanceDia

◆ m_textCtrlHoleDia

◆ m_textCtrlImpedance

◆ m_textCtrlPlatingPermittivity

◆ m_textCtrlPlatingResistivity

◆ m_textCtrlPlatingThickness

◆ m_textCtrlRiseTime

◆ m_textCtrlTemperatureDiff

◆ m_textCtrlViaLength

◆ m_textCtrlViaPadDia

◆ m_ViaAmpacity

wxStaticText* PANEL_VIA_SIZE_BASE::m_ViaAmpacity
protected

Definition at line 93 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE(), and PANEL_VIA_SIZE::VSDisplayValues().

◆ m_viaBitmap

wxStaticBitmap* PANEL_VIA_SIZE_BASE::m_viaBitmap
protected

◆ m_ViaCapacitance

wxStaticText* PANEL_VIA_SIZE_BASE::m_ViaCapacitance
protected

Definition at line 96 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE(), and PANEL_VIA_SIZE::VSDisplayValues().

◆ m_ViaPowerLoss

wxStaticText* PANEL_VIA_SIZE_BASE::m_ViaPowerLoss
protected

Definition at line 87 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE(), and PANEL_VIA_SIZE::VSDisplayValues().

◆ m_viaReactanceUnits

wxStaticText* PANEL_VIA_SIZE_BASE::m_viaReactanceUnits
protected

Definition at line 106 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE::PANEL_VIA_SIZE(), and PANEL_VIA_SIZE_BASE().

◆ m_ViaResistance

wxStaticText* PANEL_VIA_SIZE_BASE::m_ViaResistance
protected

Definition at line 81 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE(), and PANEL_VIA_SIZE::VSDisplayValues().

◆ m_viaResistivityUnits

wxStaticText* PANEL_VIA_SIZE_BASE::m_viaResistivityUnits
protected

Definition at line 69 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE::PANEL_VIA_SIZE(), and PANEL_VIA_SIZE_BASE().

◆ m_viaResUnits

wxStaticText* PANEL_VIA_SIZE_BASE::m_viaResUnits
protected

Definition at line 82 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE::PANEL_VIA_SIZE(), and PANEL_VIA_SIZE_BASE().

◆ m_viaTempUnits

wxStaticText* PANEL_VIA_SIZE_BASE::m_viaTempUnits
protected

Definition at line 75 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE::PANEL_VIA_SIZE(), and PANEL_VIA_SIZE_BASE().

◆ m_ViaThermalResistance

wxStaticText* PANEL_VIA_SIZE_BASE::m_ViaThermalResistance
protected

Definition at line 90 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE(), and PANEL_VIA_SIZE::VSDisplayValues().

◆ m_viaThermalResUnits

wxStaticText* PANEL_VIA_SIZE_BASE::m_viaThermalResUnits
protected

Definition at line 91 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE::PANEL_VIA_SIZE(), and PANEL_VIA_SIZE_BASE().

◆ m_ViaVoltageDrop

wxStaticText* PANEL_VIA_SIZE_BASE::m_ViaVoltageDrop
protected

Definition at line 84 of file panel_via_size_base.h.

Referenced by PANEL_VIA_SIZE_BASE(), and PANEL_VIA_SIZE::VSDisplayValues().


The documentation for this class was generated from the following files: