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 3.10.1-0-g8feb16b)
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
107 fgSizerSubstPrms->Add( 0, 0, 1, wxEXPAND, 5 );
108
109 m_substrate_prm4_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("H:"), wxDefaultPosition, wxDefaultSize, 0 );
110 m_substrate_prm4_label->Wrap( -1 );
111 fgSizerSubstPrms->Add( m_substrate_prm4_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
112
113 m_Substrate_prm4_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
114 fgSizerSubstPrms->Add( m_Substrate_prm4_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
115
116 wxArrayString m_SubsPrm4_choiceUnitChoices;
117 m_SubsPrm4_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm4_choiceUnitChoices, 0 );
118 m_SubsPrm4_choiceUnit->SetSelection( 0 );
119 fgSizerSubstPrms->Add( m_SubsPrm4_choiceUnit, 0, wxEXPAND, 5 );
120
121 m_substrate_prm5_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("H_t:"), wxDefaultPosition, wxDefaultSize, 0 );
122 m_substrate_prm5_label->Wrap( -1 );
123 fgSizerSubstPrms->Add( m_substrate_prm5_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
124
125 m_Substrate_prm5_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
126 fgSizerSubstPrms->Add( m_Substrate_prm5_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
127
128 wxArrayString m_SubsPrm5_choiceUnitChoices;
129 m_SubsPrm5_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm5_choiceUnitChoices, 0 );
130 m_SubsPrm5_choiceUnit->SetSelection( 0 );
131 fgSizerSubstPrms->Add( m_SubsPrm5_choiceUnit, 0, wxEXPAND, 5 );
132
133 m_substrate_prm6_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("T:"), wxDefaultPosition, wxDefaultSize, 0 );
134 m_substrate_prm6_label->Wrap( -1 );
135 fgSizerSubstPrms->Add( m_substrate_prm6_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
136
137 m_Substrate_prm6_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
138 fgSizerSubstPrms->Add( m_Substrate_prm6_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
139
140 wxArrayString m_SubsPrm6_choiceUnitChoices;
141 m_SubsPrm6_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm6_choiceUnitChoices, 0 );
142 m_SubsPrm6_choiceUnit->SetSelection( 0 );
143 fgSizerSubstPrms->Add( m_SubsPrm6_choiceUnit, 0, wxEXPAND, 5 );
144
145 m_substrate_prm7_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Rough:"), wxDefaultPosition, wxDefaultSize, 0 );
146 m_substrate_prm7_label->Wrap( -1 );
147 fgSizerSubstPrms->Add( m_substrate_prm7_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
148
149 m_Substrate_prm7_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
150 fgSizerSubstPrms->Add( m_Substrate_prm7_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
151
152 wxArrayString m_SubsPrm7_choiceUnitChoices;
153 m_SubsPrm7_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm7_choiceUnitChoices, 0 );
154 m_SubsPrm7_choiceUnit->SetSelection( 0 );
155 fgSizerSubstPrms->Add( m_SubsPrm7_choiceUnit, 0, wxEXPAND, 5 );
156
157 m_substrate_prm8_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Insulator mu:"), wxDefaultPosition, wxDefaultSize, 0 );
158 m_substrate_prm8_label->Wrap( -1 );
159 fgSizerSubstPrms->Add( m_substrate_prm8_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
160
161 m_Substrate_prm8_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
162 fgSizerSubstPrms->Add( m_Substrate_prm8_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
163
164 wxArrayString m_SubsPrm8_choiceUnitChoices;
165 m_SubsPrm8_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm8_choiceUnitChoices, 0 );
166 m_SubsPrm8_choiceUnit->SetSelection( 0 );
167 fgSizerSubstPrms->Add( m_SubsPrm8_choiceUnit, 0, wxEXPAND, 5 );
168
169 m_substrate_prm9_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("Conductor mu:"), wxDefaultPosition, wxDefaultSize, 0 );
170 m_substrate_prm9_label->Wrap( -1 );
171 fgSizerSubstPrms->Add( m_substrate_prm9_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
172
173 m_Substrate_prm9_Value = new wxTextCtrl( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
174 fgSizerSubstPrms->Add( m_Substrate_prm9_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
175
176 wxArrayString m_SubsPrm9_choiceUnitChoices;
177 m_SubsPrm9_choiceUnit = new UNIT_SELECTOR_LEN( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_SubsPrm9_choiceUnitChoices, 0 );
178 m_SubsPrm9_choiceUnit->SetSelection( 0 );
179 fgSizerSubstPrms->Add( m_SubsPrm9_choiceUnit, 0, wxEXPAND, 5 );
180
181
182 sbSubstrateBoxSizer->Add( fgSizerSubstPrms, 1, wxALL|wxEXPAND, 5 );
183
184
185 bMiddleSizer->Add( sbSubstrateBoxSizer, 0, wxEXPAND|wxBOTTOM, 5 );
186
187 wxStaticBoxSizer* sbCmpPrmsSizer;
188 sbCmpPrmsSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Component Parameters") ), wxVERTICAL );
189
190 wxFlexGridSizer* fgSizeCmpPrms;
191 fgSizeCmpPrms = new wxFlexGridSizer( 1, 3, 0, 0 );
192 fgSizeCmpPrms->AddGrowableCol( 1 );
193 fgSizeCmpPrms->SetFlexibleDirection( wxBOTH );
194 fgSizeCmpPrms->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
195
196 m_Frequency_label = new wxStaticText( sbCmpPrmsSizer->GetStaticBox(), wxID_ANY, _("Frequency:"), wxDefaultPosition, wxDefaultSize, 0 );
197 m_Frequency_label->Wrap( -1 );
198 fgSizeCmpPrms->Add( m_Frequency_label, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
199
200 m_Value_Frequency_Ctrl = new wxTextCtrl( sbCmpPrmsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
201 fgSizeCmpPrms->Add( m_Value_Frequency_Ctrl, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
202
203 wxArrayString m_choiceUnit_FrequencyChoices;
204 m_choiceUnit_Frequency = new UNIT_SELECTOR_FREQUENCY( sbCmpPrmsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_FrequencyChoices, 0 );
205 m_choiceUnit_Frequency->SetSelection( 0 );
206 fgSizeCmpPrms->Add( m_choiceUnit_Frequency, 0, wxEXPAND, 5 );
207
208
209 sbCmpPrmsSizer->Add( fgSizeCmpPrms, 0, wxALL|wxEXPAND, 5 );
210
211
212 bMiddleSizer->Add( sbCmpPrmsSizer, 0, wxEXPAND|wxTOP, 5 );
213
214 wxBoxSizer* bSizerHelpBitmaps;
215 bSizerHelpBitmaps = new wxBoxSizer( wxVERTICAL );
216
217 m_bmCMicrostripZoddZeven = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
218 bSizerHelpBitmaps->Add( m_bmCMicrostripZoddZeven, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxBOTTOM, 10 );
219
220
221 bMiddleSizer->Add( bSizerHelpBitmaps, 1, wxALIGN_CENTER_HORIZONTAL, 5 );
222
223
224 bSizeTransline->Add( bMiddleSizer, 0, wxALL|wxEXPAND, 5 );
225
226 wxBoxSizer* bRightSizer;
227 bRightSizer = new wxBoxSizer( wxVERTICAL );
228
229 wxBoxSizer* bSizer11;
230 bSizer11 = new wxBoxSizer( wxVERTICAL );
231
232 wxStaticBoxSizer* btranslineRightSizer;
233 btranslineRightSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Physical Parameters") ), wxVERTICAL );
234
235 wxFlexGridSizer* fgSizerPhysPrms;
236 fgSizerPhysPrms = new wxFlexGridSizer( 4, 4, 3, 0 );
237 fgSizerPhysPrms->AddGrowableCol( 1 );
238 fgSizerPhysPrms->SetFlexibleDirection( wxBOTH );
239 fgSizerPhysPrms->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
240
241 m_phys_prm1_label = new wxStaticText( btranslineRightSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
242 m_phys_prm1_label->Wrap( -1 );
243 fgSizerPhysPrms->Add( m_phys_prm1_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
244
245 m_Phys_prm1_Value = new wxTextCtrl( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
246 fgSizerPhysPrms->Add( m_Phys_prm1_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
247
248 wxArrayString m_choiceUnit_Param1Choices;
249 m_choiceUnit_Param1 = new UNIT_SELECTOR_LEN( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_Param1Choices, 0 );
250 m_choiceUnit_Param1->SetSelection( 0 );
251 fgSizerPhysPrms->Add( m_choiceUnit_Param1, 0, wxEXPAND, 5 );
252
253 m_radioBtnPrm1 = new wxRadioButton( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
254 fgSizerPhysPrms->Add( m_radioBtnPrm1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
255
256 m_phys_prm2_label = new wxStaticText( btranslineRightSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
257 m_phys_prm2_label->Wrap( -1 );
258 fgSizerPhysPrms->Add( m_phys_prm2_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
259
260 m_Phys_prm2_Value = new wxTextCtrl( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
261 fgSizerPhysPrms->Add( m_Phys_prm2_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
262
263 wxArrayString m_choiceUnit_Param2Choices;
264 m_choiceUnit_Param2 = new UNIT_SELECTOR_LEN( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_Param2Choices, 0 );
265 m_choiceUnit_Param2->SetSelection( 0 );
266 fgSizerPhysPrms->Add( m_choiceUnit_Param2, 0, wxEXPAND, 5 );
267
268 m_radioBtnPrm2 = new wxRadioButton( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
269 fgSizerPhysPrms->Add( m_radioBtnPrm2, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
270
271 m_phys_prm3_label = new wxStaticText( btranslineRightSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
272 m_phys_prm3_label->Wrap( -1 );
273 fgSizerPhysPrms->Add( m_phys_prm3_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
274
275 m_Phys_prm3_Value = new wxTextCtrl( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
276 fgSizerPhysPrms->Add( m_Phys_prm3_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
277
278 wxArrayString m_choiceUnit_Param3Choices;
279 m_choiceUnit_Param3 = new UNIT_SELECTOR_LEN( btranslineRightSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_Param3Choices, 0 );
280 m_choiceUnit_Param3->SetSelection( 0 );
281 fgSizerPhysPrms->Add( m_choiceUnit_Param3, 0, wxEXPAND, 5 );
282
283
284 fgSizerPhysPrms->Add( 0, 0, 0, 0, 5 );
285
286
287 btranslineRightSizer->Add( fgSizerPhysPrms, 0, wxALL|wxEXPAND, 5 );
288
289
290 bSizer11->Add( btranslineRightSizer, 0, wxALL|wxEXPAND, 5 );
291
292 wxBoxSizer* btranslineButtonsSizer;
293 btranslineButtonsSizer = new wxBoxSizer( wxVERTICAL );
294
295 wxBoxSizer* bSizerButtons;
296 bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
297
298 m_AnalyseButton = new wxButton( this, wxID_ANY, _("Analyze"), wxDefaultPosition, wxDefaultSize, 0 );
299 bSizerButtons->Add( m_AnalyseButton, 0, wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
300
301 m_bpButtonAnalyze = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
302 bSizerButtons->Add( m_bpButtonAnalyze, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
303
304
305 bSizerButtons->Add( 30, 0, 1, wxEXPAND, 5 );
306
307 m_SynthetizeButton = new wxButton( this, wxID_ANY, _("Synthesize"), wxDefaultPosition, wxDefaultSize, 0 );
308 bSizerButtons->Add( m_SynthetizeButton, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
309
310 m_bpButtonSynthetize = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
311 bSizerButtons->Add( m_bpButtonSynthetize, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
312
313
314 btranslineButtonsSizer->Add( bSizerButtons, 0, wxLEFT, 5 );
315
316
317 bSizer11->Add( btranslineButtonsSizer, 0, 0, 5 );
318
319 wxStaticBoxSizer* sbElectricalResultsSizer;
320 sbElectricalResultsSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Electrical Parameters") ), wxVERTICAL );
321
322 wxFlexGridSizer* fgSizerResults;
323 fgSizerResults = new wxFlexGridSizer( 3, 3, 3, 0 );
324 fgSizerResults->AddGrowableCol( 1 );
325 fgSizerResults->SetFlexibleDirection( wxBOTH );
326 fgSizerResults->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
327
328 m_elec_prm1_label = new wxStaticText( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, _("Z:"), wxDefaultPosition, wxDefaultSize, 0 );
329 m_elec_prm1_label->Wrap( -1 );
330 fgSizerResults->Add( m_elec_prm1_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
331
332 m_Elec_prm1_Value = new wxTextCtrl( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
333 fgSizerResults->Add( m_Elec_prm1_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
334
335 wxArrayString m_choiceUnit_ElecPrm1Choices;
336 m_choiceUnit_ElecPrm1 = new UNIT_SELECTOR_RESISTOR( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_ElecPrm1Choices, 0 );
337 m_choiceUnit_ElecPrm1->SetSelection( 0 );
338 fgSizerResults->Add( m_choiceUnit_ElecPrm1, 0, wxEXPAND, 5 );
339
340 m_elec_prm2_label = new wxStaticText( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, _("Z:"), wxDefaultPosition, wxDefaultSize, 0 );
341 m_elec_prm2_label->Wrap( -1 );
342 fgSizerResults->Add( m_elec_prm2_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
343
344 m_Elec_prm2_Value = new wxTextCtrl( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
345 fgSizerResults->Add( m_Elec_prm2_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
346
347 wxArrayString m_choiceUnit_ElecPrm2Choices;
348 m_choiceUnit_ElecPrm2 = new UNIT_SELECTOR_RESISTOR( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_ElecPrm2Choices, 0 );
349 m_choiceUnit_ElecPrm2->SetSelection( 0 );
350 fgSizerResults->Add( m_choiceUnit_ElecPrm2, 0, wxEXPAND, 5 );
351
352 m_elec_prm3_label = new wxStaticText( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, _("Angle:"), wxDefaultPosition, wxDefaultSize, 0 );
353 m_elec_prm3_label->Wrap( -1 );
354 fgSizerResults->Add( m_elec_prm3_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
355
356 m_Elec_prm3_Value = new wxTextCtrl( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
357 fgSizerResults->Add( m_Elec_prm3_Value, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
358
359 wxArrayString m_choiceUnit_ElecPrm3Choices;
360 m_choiceUnit_ElecPrm3 = new UNIT_SELECTOR_ANGLE( sbElectricalResultsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnit_ElecPrm3Choices, 0 );
361 m_choiceUnit_ElecPrm3->SetSelection( 0 );
362 fgSizerResults->Add( m_choiceUnit_ElecPrm3, 0, 0, 5 );
363
364
365 sbElectricalResultsSizer->Add( fgSizerResults, 0, wxALL|wxEXPAND, 5 );
366
367
368 bSizer11->Add( sbElectricalResultsSizer, 0, wxEXPAND|wxALL, 5 );
369
370 wxStaticBoxSizer* sbMessagesSizer;
371 sbMessagesSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Results") ), wxVERTICAL );
372
373 wxFlexGridSizer* fgSizerTranslResults;
374 fgSizerTranslResults = new wxFlexGridSizer( 8, 2, 4, 0 );
375 fgSizerTranslResults->AddGrowableCol( 1 );
376 fgSizerTranslResults->SetFlexibleDirection( wxBOTH );
377 fgSizerTranslResults->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
378
379 m_left_message1 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
380 m_left_message1->Wrap( -1 );
381 fgSizerTranslResults->Add( m_left_message1, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
382
383 m_Message1 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
384 m_Message1->Wrap( -1 );
385 fgSizerTranslResults->Add( m_Message1, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
386
387 m_left_message2 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
388 m_left_message2->Wrap( -1 );
389 fgSizerTranslResults->Add( m_left_message2, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
390
391 m_Message2 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
392 m_Message2->Wrap( -1 );
393 fgSizerTranslResults->Add( m_Message2, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
394
395 m_left_message3 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
396 m_left_message3->Wrap( -1 );
397 fgSizerTranslResults->Add( m_left_message3, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
398
399 m_Message3 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
400 m_Message3->Wrap( -1 );
401 fgSizerTranslResults->Add( m_Message3, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
402
403 m_left_message4 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
404 m_left_message4->Wrap( -1 );
405 fgSizerTranslResults->Add( m_left_message4, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
406
407 m_Message4 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
408 m_Message4->Wrap( -1 );
409 fgSizerTranslResults->Add( m_Message4, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
410
411 m_left_message5 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
412 m_left_message5->Wrap( -1 );
413 fgSizerTranslResults->Add( m_left_message5, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
414
415 m_Message5 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
416 m_Message5->Wrap( -1 );
417 fgSizerTranslResults->Add( m_Message5, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
418
419 m_left_message6 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
420 m_left_message6->Wrap( -1 );
421 fgSizerTranslResults->Add( m_left_message6, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
422
423 m_Message6 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
424 m_Message6->Wrap( -1 );
425 fgSizerTranslResults->Add( m_Message6, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
426
427 m_left_message7 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
428 m_left_message7->Wrap( -1 );
429 fgSizerTranslResults->Add( m_left_message7, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
430
431 m_Message7 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
432 m_Message7->Wrap( -1 );
433 fgSizerTranslResults->Add( m_Message7, 0, wxRIGHT|wxLEFT|wxEXPAND, 5 );
434
435 m_left_message8 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
436 m_left_message8->Wrap( -1 );
437 fgSizerTranslResults->Add( m_left_message8, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
438
439 m_Message8 = new wxStaticText( sbMessagesSizer->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
440 m_Message8->Wrap( -1 );
441 fgSizerTranslResults->Add( m_Message8, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
442
443
444 sbMessagesSizer->Add( fgSizerTranslResults, 1, wxALL|wxEXPAND, 5 );
445
446
447 bSizer11->Add( sbMessagesSizer, 0, wxEXPAND|wxALL, 5 );
448
449
450 bRightSizer->Add( bSizer11, 0, 0, 5 );
451
452
453 bRightSizer->Add( 0, 0, 1, wxEXPAND, 5 );
454
455 m_buttonTransLineReset = new wxButton( this, wxID_ANY, _("Reset to Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
456 bRightSizer->Add( m_buttonTransLineReset, 0, wxALIGN_RIGHT|wxALL, 10 );
457
458
459 bSizeTransline->Add( bRightSizer, 1, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
460
461
462 this->SetSizer( bSizeTransline );
463 this->Layout();
464 bSizeTransline->Fit( this );
465
466 // Connect Events
467 m_TranslineSelection->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSelection ), NULL, this );
468 m_button_EpsilonR->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineEpsilonR_Button ), NULL, this );
469 m_button_TanD->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineTanD_Button ), NULL, this );
470 m_button_Rho->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineRho_Button ), NULL, this );
471 m_AnalyseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineAnalyse ), NULL, this );
472 m_bpButtonAnalyze->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineAnalyse ), NULL, this );
473 m_SynthetizeButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSynthetize ), NULL, this );
474 m_bpButtonSynthetize->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSynthetize ), NULL, this );
475 m_buttonTransLineReset->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTransLineResetButtonClick ), NULL, this );
476}
477
479{
480 // Disconnect Events
481 m_TranslineSelection->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSelection ), NULL, this );
482 m_button_EpsilonR->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineEpsilonR_Button ), NULL, this );
483 m_button_TanD->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineTanD_Button ), NULL, this );
484 m_button_Rho->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineRho_Button ), NULL, this );
485 m_AnalyseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineAnalyse ), NULL, this );
486 m_bpButtonAnalyze->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineAnalyse ), NULL, this );
487 m_SynthetizeButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSynthetize ), NULL, this );
488 m_bpButtonSynthetize->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTranslineSynthetize ), NULL, this );
489 m_buttonTransLineReset->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_TRANSLINE_BASE::OnTransLineResetButtonClick ), NULL, this );
490
491}
const char * name
Definition: DXF_plotter.cpp:57
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_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)