KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_transline_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6-dirty)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
10
12
14
15PANEL_TRANSLINE_BASE::PANEL_TRANSLINE_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{
17 wxBoxSizer* bSizeTransline;
18 bSizeTransline = new wxBoxSizer( wxHORIZONTAL );
19
20 wxBoxSizer* bLeftSizer;
21 bLeftSizer = new wxBoxSizer( wxVERTICAL );
22
23 wxString m_TranslineSelectionChoices[] = { _("Microstrip Line"), _("Coplanar wave guide"), _("Coplanar wave guide w/ ground plane"), _("Rectangular Waveguide"), _("Coaxial Line"), _("Coupled Microstrip Line"), _("Stripline"), _("Twisted Pair") };
24 int m_TranslineSelectionNChoices = sizeof( m_TranslineSelectionChoices ) / sizeof( wxString );
25 m_TranslineSelection = new wxRadioBox( this, wxID_ANY, _("Transmission Line Type"), wxDefaultPosition, wxDefaultSize, m_TranslineSelectionNChoices, m_TranslineSelectionChoices, 1, wxRA_SPECIFY_COLS );
26 m_TranslineSelection->SetSelection( 1 );
27 bLeftSizer->Add( m_TranslineSelection, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 5 );
28
29
30 bLeftSizer->Add( 0, 5, 0, wxEXPAND, 5 );
31
32 m_translineBitmap = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
33 bLeftSizer->Add( m_translineBitmap, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxBOTTOM, 10 );
34
35
36 bSizeTransline->Add( bLeftSizer, 0, wxEXPAND|wxBOTTOM, 5 );
37
38 wxBoxSizer* bMiddleSizer;
39 bMiddleSizer = new wxBoxSizer( wxVERTICAL );
40
41 wxStaticBoxSizer* sbSubstrateBoxSizer;
42 sbSubstrateBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Substrate Parameters") ), wxVERTICAL );
43
44 wxFlexGridSizer* fgSizerSubstPrms;
45 fgSizerSubstPrms = new wxFlexGridSizer( 9, 3, 3, 0 );
46 fgSizerSubstPrms->AddGrowableCol( 1 );
47 fgSizerSubstPrms->SetFlexibleDirection( wxBOTH );
48 fgSizerSubstPrms->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
49
50 m_EpsilonR_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Er:"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_EpsilonR_label->Wrap( -1 );
52 fgSizerSubstPrms->Add( m_EpsilonR_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
53
54 wxBoxSizer* bSizer441;
55 bSizer441 = new wxBoxSizer( wxHORIZONTAL );
56
57 m_Value_EpsilonR = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
58 bSizer441->Add( m_Value_EpsilonR, 1, wxEXPAND|wxLEFT, 5 );
59
60 m_button_EpsilonR = new wxButton( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
61 bSizer441->Add( m_button_EpsilonR, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
62
63
64 fgSizerSubstPrms->Add( bSizer441, 1, wxEXPAND, 5 );
65
66
67 fgSizerSubstPrms->Add( 0, 0, 1, wxEXPAND, 5 );
68
69 m_TanD_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Tan delta:"), wxDefaultPosition, wxDefaultSize, 0 );
70 m_TanD_label->Wrap( -1 );
71 fgSizerSubstPrms->Add( m_TanD_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
72
73 wxBoxSizer* bSizer442;
74 bSizer442 = new wxBoxSizer( wxHORIZONTAL );
75
76 m_Value_TanD = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
77 bSizer442->Add( m_Value_TanD, 1, wxEXPAND|wxLEFT, 5 );
78
79 m_button_TanD = new wxButton( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
80 bSizer442->Add( m_button_TanD, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
81
82
83 fgSizerSubstPrms->Add( bSizer442, 1, wxEXPAND, 5 );
84
85
86 fgSizerSubstPrms->Add( 0, 0, 1, wxEXPAND, 5 );
87
88 m_Rho_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Rho:"), wxDefaultPosition, wxDefaultSize, 0 );
89 m_Rho_label->Wrap( -1 );
90 m_Rho_label->SetToolTip( _("Specific resistance in ohms * meters") );
91
92 fgSizerSubstPrms->Add( m_Rho_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
93
94 wxBoxSizer* bSizer443;
95 bSizer443 = new wxBoxSizer( wxHORIZONTAL );
96
97 m_Value_Rho = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
98 bSizer443->Add( m_Value_Rho, 1, wxEXPAND|wxLEFT, 5 );
99
100 m_button_Rho = new wxButton( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
101 bSizer443->Add( m_button_Rho, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
102
103
104 fgSizerSubstPrms->Add( bSizer443, 1, wxEXPAND, 5 );
105
106 m_substrate_prm3_labelUnit = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("ohm-meter"), wxDefaultPosition, wxDefaultSize, 0 );
107 m_substrate_prm3_labelUnit->Wrap( -1 );
108 fgSizerSubstPrms->Add( m_substrate_prm3_labelUnit, 0, wxALL, 5 );
109
110 m_substrate_prm4_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("H:"), wxDefaultPosition, wxDefaultSize, 0 );
111 m_substrate_prm4_label->Wrap( -1 );
112 fgSizerSubstPrms->Add( m_substrate_prm4_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
113
114 m_Substrate_prm4_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
115 fgSizerSubstPrms->Add( m_Substrate_prm4_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
116
117 wxArrayString m_SubsPrm4_choiceUnitChoices;
118 m_SubsPrm4_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm4_choiceUnitChoices, 0 );
119 m_SubsPrm4_choiceUnit->SetSelection( 0 );
120 fgSizerSubstPrms->Add( m_SubsPrm4_choiceUnit, 0, wxEXPAND, 5 );
121
122 m_substrate_prm5_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("H_t:"), wxDefaultPosition, wxDefaultSize, 0 );
123 m_substrate_prm5_label->Wrap( -1 );
124 fgSizerSubstPrms->Add( m_substrate_prm5_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
125
126 m_Substrate_prm5_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
127 fgSizerSubstPrms->Add( m_Substrate_prm5_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
128
129 wxArrayString m_SubsPrm5_choiceUnitChoices;
130 m_SubsPrm5_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm5_choiceUnitChoices, 0 );
131 m_SubsPrm5_choiceUnit->SetSelection( 0 );
132 fgSizerSubstPrms->Add( m_SubsPrm5_choiceUnit, 0, wxEXPAND, 5 );
133
134 m_substrate_prm6_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("T:"), wxDefaultPosition, wxDefaultSize, 0 );
135 m_substrate_prm6_label->Wrap( -1 );
136 fgSizerSubstPrms->Add( m_substrate_prm6_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
137
138 m_Substrate_prm6_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
139 fgSizerSubstPrms->Add( m_Substrate_prm6_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
140
141 wxArrayString m_SubsPrm6_choiceUnitChoices;
142 m_SubsPrm6_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm6_choiceUnitChoices, 0 );
143 m_SubsPrm6_choiceUnit->SetSelection( 0 );
144 fgSizerSubstPrms->Add( m_SubsPrm6_choiceUnit, 0, wxEXPAND, 5 );
145
146 m_substrate_prm7_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Rough:"), wxDefaultPosition, wxDefaultSize, 0 );
147 m_substrate_prm7_label->Wrap( -1 );
148 fgSizerSubstPrms->Add( m_substrate_prm7_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
149
150 m_Substrate_prm7_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
151 fgSizerSubstPrms->Add( m_Substrate_prm7_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
152
153 wxArrayString m_SubsPrm7_choiceUnitChoices;
154 m_SubsPrm7_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm7_choiceUnitChoices, 0 );
155 m_SubsPrm7_choiceUnit->SetSelection( 0 );
156 fgSizerSubstPrms->Add( m_SubsPrm7_choiceUnit, 0, wxEXPAND, 5 );
157
158 m_substrate_prm8_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Insulator mu:"), wxDefaultPosition, wxDefaultSize, 0 );
159 m_substrate_prm8_label->Wrap( -1 );
160 fgSizerSubstPrms->Add( m_substrate_prm8_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
161
162 m_Substrate_prm8_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
163 fgSizerSubstPrms->Add( m_Substrate_prm8_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
164
165 wxArrayString m_SubsPrm8_choiceUnitChoices;
166 m_SubsPrm8_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm8_choiceUnitChoices, 0 );
167 m_SubsPrm8_choiceUnit->SetSelection( 0 );
168 fgSizerSubstPrms->Add( m_SubsPrm8_choiceUnit, 0, wxEXPAND, 5 );
169
170 m_substrate_prm9_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Conductor mu:"), wxDefaultPosition, wxDefaultSize, 0 );
171 m_substrate_prm9_label->Wrap( -1 );
172 fgSizerSubstPrms->Add( m_substrate_prm9_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
173
174 m_Substrate_prm9_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
175 fgSizerSubstPrms->Add( m_Substrate_prm9_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
176
177 wxArrayString m_SubsPrm9_choiceUnitChoices;
178 m_SubsPrm9_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm9_choiceUnitChoices, 0 );
179 m_SubsPrm9_choiceUnit->SetSelection( 0 );
180 fgSizerSubstPrms->Add( m_SubsPrm9_choiceUnit, 0, wxEXPAND, 5 );
181
182
183 sbSubstrateBoxSizer->Add( fgSizerSubstPrms, 1, wxALL|wxEXPAND, 5 );
184
185
186 bMiddleSizer->Add( sbSubstrateBoxSizer, 0, wxEXPAND|wxBOTTOM, 5 );
187
188 wxStaticBoxSizer* sbCmpPrmsSizer;
189 sbCmpPrmsSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Component Parameters") ), wxVERTICAL );
190
191 wxFlexGridSizer* fgSizeCmpPrms;
192 fgSizeCmpPrms = new wxFlexGridSizer( 1, 3, 0, 0 );
193 fgSizeCmpPrms->AddGrowableCol( 1 );
194 fgSizeCmpPrms->SetFlexibleDirection( wxBOTH );
195 fgSizeCmpPrms->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
196
197 m_Frequency_label = new wxStaticText( sbCmpPrmsSizer->GetStaticBox(), wxID_ANY, _("Frequency:"), wxDefaultPosition, wxDefaultSize, 0 );
198 m_Frequency_label->Wrap( -1 );
199 fgSizeCmpPrms->Add( m_Frequency_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
200
201 m_Value_Frequency_Ctrl = new wxTextCtrl( sbCmpPrmsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
202 fgSizeCmpPrms->Add( m_Value_Frequency_Ctrl, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
203
204 wxArrayString m_choiceUnit_FrequencyChoices;
205 m_choiceUnit_Frequency = new UNIT_SELECTOR_FREQUENCY( sbCmpPrmsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_FrequencyChoices, 0 );
206 m_choiceUnit_Frequency->SetSelection( 0 );
207 fgSizeCmpPrms->Add( m_choiceUnit_Frequency, 0, wxEXPAND, 5 );
208
209
210 sbCmpPrmsSizer->Add( fgSizeCmpPrms, 0, wxALL|wxEXPAND, 5 );
211
212
213 bMiddleSizer->Add( sbCmpPrmsSizer, 0, wxEXPAND|wxTOP, 5 );
214
215 wxBoxSizer* bSizerHelpBitmaps;
216 bSizerHelpBitmaps = new wxBoxSizer( wxVERTICAL );
217
218 m_bmCMicrostripZoddZeven = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
219 bSizerHelpBitmaps->Add( m_bmCMicrostripZoddZeven, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxBOTTOM, 10 );
220
221
222 bMiddleSizer->Add( bSizerHelpBitmaps, 1, wxALIGN_CENTER_HORIZONTAL, 5 );
223
224
225 bSizeTransline->Add( bMiddleSizer, 0, wxALL|wxEXPAND, 5 );
226
227 wxBoxSizer* bRightSizer;
228 bRightSizer = new wxBoxSizer( wxVERTICAL );
229
230 wxBoxSizer* bSizer11;
231 bSizer11 = new wxBoxSizer( wxVERTICAL );
232
233 wxStaticBoxSizer* btranslineRightSizer;
234 btranslineRightSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Physical Parameters") ), wxVERTICAL );
235
236 wxFlexGridSizer* fgSizerPhysPrms;
237 fgSizerPhysPrms = new wxFlexGridSizer( 4, 4, 3, 0 );
238 fgSizerPhysPrms->AddGrowableCol( 1 );
239 fgSizerPhysPrms->SetFlexibleDirection( wxBOTH );
240 fgSizerPhysPrms->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
241
242 m_phys_prm1_label = new wxStaticText( btranslineRightSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
243 m_phys_prm1_label->Wrap( -1 );
244 fgSizerPhysPrms->Add( m_phys_prm1_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
245
246 m_Phys_prm1_Value = new wxTextCtrl( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
247 fgSizerPhysPrms->Add( m_Phys_prm1_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
248
249 wxArrayString m_choiceUnit_Param1Choices;
250 m_choiceUnit_Param1 = new UNIT_SELECTOR_LEN( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_Param1Choices, 0 );
251 m_choiceUnit_Param1->SetSelection( 0 );
252 fgSizerPhysPrms->Add( m_choiceUnit_Param1, 0, wxEXPAND, 5 );
253
254 m_radioBtnPrm1 = new wxRadioButton( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
255 fgSizerPhysPrms->Add( m_radioBtnPrm1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
256
257 m_phys_prm2_label = new wxStaticText( btranslineRightSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
258 m_phys_prm2_label->Wrap( -1 );
259 fgSizerPhysPrms->Add( m_phys_prm2_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
260
261 m_Phys_prm2_Value = new wxTextCtrl( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
262 fgSizerPhysPrms->Add( m_Phys_prm2_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
263
264 wxArrayString m_choiceUnit_Param2Choices;
265 m_choiceUnit_Param2 = new UNIT_SELECTOR_LEN( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_Param2Choices, 0 );
266 m_choiceUnit_Param2->SetSelection( 0 );
267 fgSizerPhysPrms->Add( m_choiceUnit_Param2, 0, wxEXPAND, 5 );
268
269 m_radioBtnPrm2 = new wxRadioButton( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
270 fgSizerPhysPrms->Add( m_radioBtnPrm2, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
271
272 m_phys_prm3_label = new wxStaticText( btranslineRightSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
273 m_phys_prm3_label->Wrap( -1 );
274 fgSizerPhysPrms->Add( m_phys_prm3_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
275
276 m_Phys_prm3_Value = new wxTextCtrl( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
277 fgSizerPhysPrms->Add( m_Phys_prm3_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
278
279 wxArrayString m_choiceUnit_Param3Choices;
280 m_choiceUnit_Param3 = new UNIT_SELECTOR_LEN( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_Param3Choices, 0 );
281 m_choiceUnit_Param3->SetSelection( 0 );
282 fgSizerPhysPrms->Add( m_choiceUnit_Param3, 0, wxEXPAND, 5 );
283
284
285 fgSizerPhysPrms->Add( 0, 0, 0, 0, 5 );
286
287
288 btranslineRightSizer->Add( fgSizerPhysPrms, 0, wxALL|wxEXPAND, 5 );
289
290
291 bSizer11->Add( btranslineRightSizer, 0, wxALL|wxEXPAND, 5 );
292
293 wxBoxSizer* btranslineButtonsSizer;
294 btranslineButtonsSizer = new wxBoxSizer( wxVERTICAL );
295
296 wxBoxSizer* bSizerButtons;
297 bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
298
299 m_AnalyseButton = new wxButton( this, wxID_ANY, _("Analyze"), wxDefaultPosition, wxDefaultSize, 0 );
300 bSizerButtons->Add( m_AnalyseButton, 0, wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
301
302 m_bpButtonAnalyze = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
303 bSizerButtons->Add( m_bpButtonAnalyze, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
304
305
306 bSizerButtons->Add( 30, 0, 1, wxEXPAND, 5 );
307
308 m_SynthetizeButton = new wxButton( this, wxID_ANY, _("Synthesize"), wxDefaultPosition, wxDefaultSize, 0 );
309 bSizerButtons->Add( m_SynthetizeButton, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
310
311 m_bpButtonSynthetize = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
312 bSizerButtons->Add( m_bpButtonSynthetize, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
313
314
315 btranslineButtonsSizer->Add( bSizerButtons, 0, wxLEFT, 5 );
316
317
318 bSizer11->Add( btranslineButtonsSizer, 0, 0, 5 );
319
320 wxStaticBoxSizer* sbElectricalResultsSizer;
321 sbElectricalResultsSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Electrical Parameters") ), wxVERTICAL );
322
323 wxFlexGridSizer* fgSizerResults;
324 fgSizerResults = new wxFlexGridSizer( 3, 3, 3, 0 );
325 fgSizerResults->AddGrowableCol( 1 );
326 fgSizerResults->SetFlexibleDirection( wxBOTH );
327 fgSizerResults->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
328
329 m_elec_prm1_label = new wxStaticText( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, _("Z:"), wxDefaultPosition, wxDefaultSize, 0 );
330 m_elec_prm1_label->Wrap( -1 );
331 fgSizerResults->Add( m_elec_prm1_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
332
333 m_Elec_prm1_Value = new wxTextCtrl( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
334 fgSizerResults->Add( m_Elec_prm1_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
335
336 wxArrayString m_choiceUnit_ElecPrm1Choices;
337 m_choiceUnit_ElecPrm1 = new UNIT_SELECTOR_RESISTOR( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_ElecPrm1Choices, 0 );
338 m_choiceUnit_ElecPrm1->SetSelection( 0 );
339 fgSizerResults->Add( m_choiceUnit_ElecPrm1, 0, wxEXPAND, 5 );
340
341 m_elec_prm2_label = new wxStaticText( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, _("Z:"), wxDefaultPosition, wxDefaultSize, 0 );
342 m_elec_prm2_label->Wrap( -1 );
343 fgSizerResults->Add( m_elec_prm2_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
344
345 m_Elec_prm2_Value = new wxTextCtrl( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
346 fgSizerResults->Add( m_Elec_prm2_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
347
348 wxArrayString m_choiceUnit_ElecPrm2Choices;
349 m_choiceUnit_ElecPrm2 = new UNIT_SELECTOR_RESISTOR( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_ElecPrm2Choices, 0 );
350 m_choiceUnit_ElecPrm2->SetSelection( 0 );
351 fgSizerResults->Add( m_choiceUnit_ElecPrm2, 0, wxEXPAND, 5 );
352
353 m_elec_prm3_label = new wxStaticText( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, _("Angle:"), wxDefaultPosition, wxDefaultSize, 0 );
354 m_elec_prm3_label->Wrap( -1 );
355 fgSizerResults->Add( m_elec_prm3_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
356
357 m_Elec_prm3_Value = new wxTextCtrl( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
358 fgSizerResults->Add( m_Elec_prm3_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
359
360 wxArrayString m_choiceUnit_ElecPrm3Choices;
361 m_choiceUnit_ElecPrm3 = new UNIT_SELECTOR_ANGLE( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_ElecPrm3Choices, 0 );
362 m_choiceUnit_ElecPrm3->SetSelection( 0 );
363 fgSizerResults->Add( m_choiceUnit_ElecPrm3, 0, 0, 5 );
364
365
366 sbElectricalResultsSizer->Add( fgSizerResults, 0, wxALL|wxEXPAND, 5 );
367
368
369 bSizer11->Add( sbElectricalResultsSizer, 0, wxEXPAND|wxALL, 5 );
370
371 wxStaticBoxSizer* sbMessagesSizer;
372 sbMessagesSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Results") ), wxVERTICAL );
373
374 wxFlexGridSizer* fgSizerTranslResults;
375 fgSizerTranslResults = new wxFlexGridSizer( 8, 2, 4, 0 );
376 fgSizerTranslResults->AddGrowableCol( 1 );
377 fgSizerTranslResults->SetFlexibleDirection( wxBOTH );
378 fgSizerTranslResults->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
379
380 m_left_message1 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
381 m_left_message1->Wrap( -1 );
382 fgSizerTranslResults->Add( m_left_message1, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
383
384 m_Message1 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
385 m_Message1->Wrap( -1 );
386 fgSizerTranslResults->Add( m_Message1, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
387
388 m_left_message2 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
389 m_left_message2->Wrap( -1 );
390 fgSizerTranslResults->Add( m_left_message2, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
391
392 m_Message2 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
393 m_Message2->Wrap( -1 );
394 fgSizerTranslResults->Add( m_Message2, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
395
396 m_left_message3 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
397 m_left_message3->Wrap( -1 );
398 fgSizerTranslResults->Add( m_left_message3, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
399
400 m_Message3 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
401 m_Message3->Wrap( -1 );
402 fgSizerTranslResults->Add( m_Message3, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
403
404 m_left_message4 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
405 m_left_message4->Wrap( -1 );
406 fgSizerTranslResults->Add( m_left_message4, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
407
408 m_Message4 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
409 m_Message4->Wrap( -1 );
410 fgSizerTranslResults->Add( m_Message4, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
411
412 m_left_message5 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
413 m_left_message5->Wrap( -1 );
414 fgSizerTranslResults->Add( m_left_message5, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
415
416 m_Message5 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
417 m_Message5->Wrap( -1 );
418 fgSizerTranslResults->Add( m_Message5, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
419
420 m_left_message6 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
421 m_left_message6->Wrap( -1 );
422 fgSizerTranslResults->Add( m_left_message6, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
423
424 m_Message6 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
425 m_Message6->Wrap( -1 );
426 fgSizerTranslResults->Add( m_Message6, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
427
428 m_left_message7 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
429 m_left_message7->Wrap( -1 );
430 fgSizerTranslResults->Add( m_left_message7, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
431
432 m_Message7 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
433 m_Message7->Wrap( -1 );
434 fgSizerTranslResults->Add( m_Message7, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
435
436 m_left_message8 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
437 m_left_message8->Wrap( -1 );
438 fgSizerTranslResults->Add( m_left_message8, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
439
440 m_Message8 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
441 m_Message8->Wrap( -1 );
442 fgSizerTranslResults->Add( m_Message8, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
443
444
445 sbMessagesSizer->Add( fgSizerTranslResults, 1, wxALL|wxEXPAND, 5 );
446
447
448 bSizer11->Add( sbMessagesSizer, 0, wxEXPAND|wxALL, 5 );
449
450
451 bRightSizer->Add( bSizer11, 0, 0, 5 );
452
453
454 bRightSizer->Add( 0, 0, 1, wxEXPAND, 5 );
455
456 m_buttonTransLineReset = new wxButton( this, wxID_ANY, _("Reset to Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
457 bRightSizer->Add( m_buttonTransLineReset, 0, wxALIGN_RIGHT|wxALL, 10 );
458
459
460 bSizeTransline->Add( bRightSizer, 1, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
461
462
463 this->SetSizer( bSizeTransline );
464 this->Layout();
465 bSizeTransline->Fit( this );
466
467 // Connect Events
468 m_TranslineSelection->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSelection ), NULL, this );
469 m_button_EpsilonR->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineEpsilonR_Button ), NULL, this );
470 m_button_TanD->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineTanD_Button ), NULL, this );
471 m_button_Rho->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineRho_Button ), NULL, this );
472 m_AnalyseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineAnalyse ), NULL, this );
473 m_bpButtonAnalyze->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineAnalyse ), NULL, this );
474 m_SynthetizeButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSynthetize ), NULL, this );
475 m_bpButtonSynthetize->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSynthetize ), NULL, this );
476 m_buttonTransLineReset->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTransLineResetButtonClick ), NULL, this );
477}
478
480{
481 // Disconnect Events
482 m_TranslineSelection->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSelection ), NULL, this );
483 m_button_EpsilonR->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineEpsilonR_Button ), NULL, this );
484 m_button_TanD->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineTanD_Button ), NULL, this );
485 m_button_Rho->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineRho_Button ), NULL, this );
486 m_AnalyseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineAnalyse ), NULL, this );
487 m_bpButtonAnalyze->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineAnalyse ), NULL, this );
488 m_SynthetizeButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSynthetize ), NULL, this );
489 m_bpButtonSynthetize->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSynthetize ), NULL, this );
490 m_buttonTransLineReset->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTransLineResetButtonClick ), NULL, this );
491
492}
const char * name
Definition: DXF_plotter.cpp:59
virtual void OnTranslineRho_Button(wxCommandEvent &event)
wxTextCtrl * m_Substrate_prm5_Value
UNIT_SELECTOR_RESISTOR * m_choiceUnit_ElecPrm2
virtual void OnTranslineAnalyse(wxCommandEvent &event)
PANEL_TRANSLINE_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_left_message5
UNIT_SELECTOR_LEN * m_SubsPrm9_choiceUnit
wxStaticText * m_substrate_prm9_label
wxStaticText * m_left_message3
wxTextCtrl * m_Substrate_prm9_Value
wxStaticText * m_left_message8
UNIT_SELECTOR_LEN * m_SubsPrm4_choiceUnit
wxStaticText * m_phys_prm2_label
wxStaticText * m_EpsilonR_label
wxStaticText * m_substrate_prm7_label
wxStaticText * m_Frequency_label
wxTextCtrl * m_Substrate_prm7_Value
wxStaticBitmap * m_bmCMicrostripZoddZeven
wxStaticText * m_substrate_prm6_label
UNIT_SELECTOR_LEN * m_SubsPrm7_choiceUnit
wxStaticText * m_phys_prm1_label
wxStaticText * m_elec_prm2_label
UNIT_SELECTOR_LEN * m_choiceUnit_Param3
virtual void OnTranslineEpsilonR_Button(wxCommandEvent &event)
wxTextCtrl * m_Substrate_prm4_Value
wxRadioButton * m_radioBtnPrm2
wxStaticText * m_left_message2
UNIT_SELECTOR_LEN * m_SubsPrm5_choiceUnit
wxStaticText * m_left_message6
wxTextCtrl * m_Substrate_prm6_Value
wxRadioButton * m_radioBtnPrm1
wxStaticText * m_substrate_prm3_labelUnit
wxStaticText * m_substrate_prm8_label
wxStaticText * m_elec_prm1_label
UNIT_SELECTOR_ANGLE * m_choiceUnit_ElecPrm3
wxStaticText * m_phys_prm3_label
wxStaticText * m_left_message7
UNIT_SELECTOR_LEN * m_SubsPrm6_choiceUnit
virtual void OnTranslineTanD_Button(wxCommandEvent &event)
wxStaticText * m_elec_prm3_label
wxStaticBitmap * m_translineBitmap
STD_BITMAP_BUTTON * m_bpButtonSynthetize
wxRadioBox * m_TranslineSelection
UNIT_SELECTOR_LEN * m_choiceUnit_Param2
virtual void OnTranslineSynthetize(wxCommandEvent &event)
UNIT_SELECTOR_FREQUENCY * m_choiceUnit_Frequency
virtual void OnTranslineSelection(wxCommandEvent &event)
UNIT_SELECTOR_LEN * m_SubsPrm8_choiceUnit
wxTextCtrl * m_Substrate_prm8_Value
wxStaticText * m_left_message4
STD_BITMAP_BUTTON * m_bpButtonAnalyze
UNIT_SELECTOR_RESISTOR * m_choiceUnit_ElecPrm1
virtual void OnTransLineResetButtonClick(wxCommandEvent &event)
wxStaticText * m_left_message1
wxStaticText * m_substrate_prm4_label
UNIT_SELECTOR_LEN * m_choiceUnit_Param1
wxStaticText * m_substrate_prm5_label
wxTextCtrl * m_Value_Frequency_Ctrl
A bitmap button widget that behaves like a standard dialog button except with an icon.
#define _(s)