KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_via_size_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
10#include "panel_via_size_base.h"
11
13
14PANEL_VIA_SIZE_BASE::PANEL_VIA_SIZE_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : 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, 5 );
36
37 m_textCtrlHoleDia = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
38 fgSizerVS_Inputs->Add( m_textCtrlHoleDia, 0, wxEXPAND|wxLEFT|wxRIGHT, 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, 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, 5 );
48
49 m_textCtrlPlatingThickness = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
50 fgSizerVS_Inputs->Add( m_textCtrlPlatingThickness, 0, wxEXPAND|wxLEFT|wxRIGHT, 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, 5 );
62
63 m_textCtrlViaLength = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
64 fgSizerVS_Inputs->Add( m_textCtrlViaLength, 0, wxEXPAND|wxLEFT|wxRIGHT, 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, 5 );
76
77 m_textCtrlViaPadDia = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
78 fgSizerVS_Inputs->Add( m_textCtrlViaPadDia, 0, wxEXPAND|wxLEFT|wxRIGHT, 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, 5 );
90
91 m_textCtrlClearanceDia = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
92 fgSizerVS_Inputs->Add( m_textCtrlClearanceDia, 0, wxEXPAND|wxLEFT|wxRIGHT, 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, 5 );
104
105 m_textCtrlImpedance = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
106 fgSizerVS_Inputs->Add( m_textCtrlImpedance, 0, wxEXPAND|wxLEFT|wxRIGHT, 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, 5 );
116
117 m_textCtrlAppliedCurrent = new wxTextCtrl( sbSizerVS_Inputs->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
118 fgSizerVS_Inputs->Add( m_textCtrlAppliedCurrent, 0, wxEXPAND|wxLEFT|wxRIGHT, 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, 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, wxEXPAND|wxLEFT|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, 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, wxEXPAND|wxLEFT|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, 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, 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, wxALL|wxEXPAND, 5 );
197
198
199 bSizerViaLeftColumn->Add( sbSizerVS_Inputs, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 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_BOLD, 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, 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|wxLEFT|wxRIGHT, 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, 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, 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, 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, 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, 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, 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, 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, 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, wxALL|wxEXPAND, 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}
399
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}
const char * name
Definition: DXF_plotter.cpp:57
wxTextCtrl * m_textCtrlPlatingResistivity
wxTextCtrl * m_textCtrlClearanceDia
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)
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)