KiCad PCB EDA Suite
dialog_sim_settings_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version Oct 26 2018)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_SIM_SETTINGS_BASE::DIALOG_SIM_SETTINGS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13{
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15
16 wxBoxSizer* bSizer1;
17 bSizer1 = new wxBoxSizer( wxVERTICAL );
18
19 m_simPages = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
20 m_pgAC = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
21 wxBoxSizer* bSizer3;
22 bSizer3 = new wxBoxSizer( wxVERTICAL );
23
24
25 bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
26
27 wxString m_acScaleChoices[] = { _("Decade"), _("Octave"), _("Linear") };
28 int m_acScaleNChoices = sizeof( m_acScaleChoices ) / sizeof( wxString );
29 m_acScale = new wxRadioBox( m_pgAC, wxID_ANY, _("Frequency scale"), wxDefaultPosition, wxDefaultSize, m_acScaleNChoices, m_acScaleChoices, 1, wxRA_SPECIFY_COLS );
30 m_acScale->SetSelection( 0 );
31 m_acScale->Hide();
32
33 bSizer3->Add( m_acScale, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
34
35
36 bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
37
38 wxFlexGridSizer* fgSizer1;
39 fgSizer1 = new wxFlexGridSizer( 0, 3, 0, 0 );
40 fgSizer1->SetFlexibleDirection( wxBOTH );
41 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
42
43 m_staticText1 = new wxStaticText( m_pgAC, wxID_ANY, _("Number of points:"), wxDefaultPosition, wxDefaultSize, 0 );
44 m_staticText1->Wrap( -1 );
45 fgSizer1->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
46
47 m_acPointsNumber = new wxTextCtrl( m_pgAC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
48 fgSizer1->Add( m_acPointsNumber, 0, wxALL|wxEXPAND, 5 );
49
50
51 fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
52
53 m_staticText2 = new wxStaticText( m_pgAC, wxID_ANY, _("Start frequency:"), wxDefaultPosition, wxDefaultSize, 0 );
54 m_staticText2->Wrap( -1 );
55 fgSizer1->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
56
57 m_acFreqStart = new wxTextCtrl( m_pgAC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
58 fgSizer1->Add( m_acFreqStart, 0, wxALL|wxEXPAND, 5 );
59
60 m_staticText19 = new wxStaticText( m_pgAC, wxID_ANY, _("Hertz"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_staticText19->Wrap( -1 );
62 fgSizer1->Add( m_staticText19, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
63
64 m_staticText3 = new wxStaticText( m_pgAC, wxID_ANY, _("Stop frequency:"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_staticText3->Wrap( -1 );
66 fgSizer1->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
67
68 m_acFreqStop = new wxTextCtrl( m_pgAC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
69 fgSizer1->Add( m_acFreqStop, 0, wxALL|wxEXPAND, 5 );
70
71 m_staticText110 = new wxStaticText( m_pgAC, wxID_ANY, _("Hertz"), wxDefaultPosition, wxDefaultSize, 0 );
72 m_staticText110->Wrap( -1 );
73 fgSizer1->Add( m_staticText110, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
74
75
76 bSizer3->Add( fgSizer1, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
77
78
79 bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
80
81
82 m_pgAC->SetSizer( bSizer3 );
83 m_pgAC->Layout();
84 bSizer3->Fit( m_pgAC );
85 m_simPages->AddPage( m_pgAC, _("AC"), false );
86 m_pgDC = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
87 wxBoxSizer* bSizer82;
88 bSizer82 = new wxBoxSizer( wxVERTICAL );
89
90
91 bSizer82->Add( 0, 0, 1, wxEXPAND, 5 );
92
93 wxGridBagSizer* gbSizer1;
94 gbSizer1 = new wxGridBagSizer( 0, 0 );
95 gbSizer1->SetFlexibleDirection( wxBOTH );
96 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
97
98 m_dcEnable2 = new wxCheckBox( m_pgDC, wxID_ANY, _("Source 2"), wxDefaultPosition, wxDefaultSize, 0 );
99 m_dcEnable2->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
100
101 gbSizer1->Add( m_dcEnable2, wxGBPosition( 0, 3 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
102
103 wxString m_dcSourceType1Choices[] = { _("V"), _("I"), _("R"), _("TEMP") };
104 int m_dcSourceType1NChoices = sizeof( m_dcSourceType1Choices ) / sizeof( wxString );
105 m_dcSourceType1 = new wxChoice( m_pgDC, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_dcSourceType1NChoices, m_dcSourceType1Choices, 0 );
106 m_dcSourceType1->SetSelection( 0 );
107 gbSizer1->Add( m_dcSourceType1, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
108
109 wxString m_dcSourceType2Choices[] = { _("V"), _("I"), _("R"), _("TEMP") };
110 int m_dcSourceType2NChoices = sizeof( m_dcSourceType2Choices ) / sizeof( wxString );
111 m_dcSourceType2 = new wxChoice( m_pgDC, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_dcSourceType2NChoices, m_dcSourceType2Choices, 0 );
112 m_dcSourceType2->SetSelection( 0 );
113 gbSizer1->Add( m_dcSourceType2, wxGBPosition( 1, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
114
115 m_staticText4 = new wxStaticText( m_pgDC, wxID_ANY, _("Source:"), wxDefaultPosition, wxDefaultSize, 0 );
116 m_staticText4->Wrap( -1 );
117 gbSizer1->Add( m_staticText4, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
118
119 m_staticText41 = new wxStaticText( m_pgDC, wxID_ANY, _("Sweep type:"), wxDefaultPosition, wxDefaultSize, 0 );
120 m_staticText41->Wrap( -1 );
121 gbSizer1->Add( m_staticText41, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALL, 5 );
122
123 m_staticText411 = new wxStaticText( m_pgDC, wxID_ANY, _("Source 1"), wxDefaultPosition, wxDefaultSize, 0 );
124 m_staticText411->Wrap( -1 );
125 m_staticText411->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
126
127 gbSizer1->Add( m_staticText411, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALL, 5 );
128
129 wxArrayString m_dcSource1Choices;
130 m_dcSource1 = new wxChoice( m_pgDC, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_dcSource1Choices, 0 );
131 m_dcSource1->SetSelection( 0 );
132 gbSizer1->Add( m_dcSource1, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
133
134 wxArrayString m_dcSource2Choices;
135 m_dcSource2 = new wxChoice( m_pgDC, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_dcSource2Choices, 0 );
136 m_dcSource2->SetSelection( 0 );
137 gbSizer1->Add( m_dcSource2, wxGBPosition( 2, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
138
139 m_staticText5 = new wxStaticText( m_pgDC, wxID_ANY, _("Starting value:"), wxDefaultPosition, wxDefaultSize, 0 );
140 m_staticText5->Wrap( -1 );
141 gbSizer1->Add( m_staticText5, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
142
143 m_dcStart1 = new wxTextCtrl( m_pgDC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
144 gbSizer1->Add( m_dcStart1, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
145
146 m_src1DCStartValUnit = new wxStaticText( m_pgDC, wxID_ANY, _("Volts"), wxDefaultPosition, wxDefaultSize, 0 );
147 m_src1DCStartValUnit->Wrap( -1 );
148 m_src1DCStartValUnit->SetMinSize( wxSize( 80,-1 ) );
149
150 gbSizer1->Add( m_src1DCStartValUnit, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
151
152 m_dcStart2 = new wxTextCtrl( m_pgDC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
153 gbSizer1->Add( m_dcStart2, wxGBPosition( 3, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
154
155 m_src2DCStartValUnit = new wxStaticText( m_pgDC, wxID_ANY, _("Volts"), wxDefaultPosition, wxDefaultSize, 0 );
156 m_src2DCStartValUnit->Wrap( -1 );
157 gbSizer1->Add( m_src2DCStartValUnit, wxGBPosition( 3, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
158
159 m_staticText6 = new wxStaticText( m_pgDC, wxID_ANY, _("Final value:"), wxDefaultPosition, wxDefaultSize, 0 );
160 m_staticText6->Wrap( -1 );
161 gbSizer1->Add( m_staticText6, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
162
163 m_dcStop1 = new wxTextCtrl( m_pgDC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
164 gbSizer1->Add( m_dcStop1, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
165
166 m_src1DCEndValUnit = new wxStaticText( m_pgDC, wxID_ANY, _("Volts"), wxDefaultPosition, wxDefaultSize, 0 );
167 m_src1DCEndValUnit->Wrap( -1 );
168 m_src1DCEndValUnit->SetMinSize( wxSize( 80,-1 ) );
169
170 gbSizer1->Add( m_src1DCEndValUnit, wxGBPosition( 4, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
171
172 m_dcStop2 = new wxTextCtrl( m_pgDC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
173 gbSizer1->Add( m_dcStop2, wxGBPosition( 4, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
174
175 m_src2DCEndValUnit = new wxStaticText( m_pgDC, wxID_ANY, _("Volts"), wxDefaultPosition, wxDefaultSize, 0 );
176 m_src2DCEndValUnit->Wrap( -1 );
177 gbSizer1->Add( m_src2DCEndValUnit, wxGBPosition( 4, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
178
179 m_staticText7 = new wxStaticText( m_pgDC, wxID_ANY, _("Increment step:"), wxDefaultPosition, wxDefaultSize, 0 );
180 m_staticText7->Wrap( -1 );
181 gbSizer1->Add( m_staticText7, wxGBPosition( 5, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
182
183 m_dcIncr1 = new wxTextCtrl( m_pgDC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
184 gbSizer1->Add( m_dcIncr1, wxGBPosition( 5, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
185
186 m_src1DCStepUnit = new wxStaticText( m_pgDC, wxID_ANY, _("Volts"), wxDefaultPosition, wxDefaultSize, 0 );
187 m_src1DCStepUnit->Wrap( -1 );
188 m_src1DCStepUnit->SetMinSize( wxSize( 80,-1 ) );
189
190 gbSizer1->Add( m_src1DCStepUnit, wxGBPosition( 5, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
191
192 m_dcIncr2 = new wxTextCtrl( m_pgDC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
193 gbSizer1->Add( m_dcIncr2, wxGBPosition( 5, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
194
195 m_src2DCStepUnit = new wxStaticText( m_pgDC, wxID_ANY, _("Volts"), wxDefaultPosition, wxDefaultSize, 0 );
196 m_src2DCStepUnit->Wrap( -1 );
197 gbSizer1->Add( m_src2DCStepUnit, wxGBPosition( 5, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
198
199 m_swapDCSources = new wxButton( m_pgDC, wxID_ANY, _("Swap sources"), wxDefaultPosition, wxDefaultSize, 0 );
200 gbSizer1->Add( m_swapDCSources, wxGBPosition( 6, 0 ), wxGBSpan( 1, 5 ), wxALL|wxEXPAND, 5 );
201
202
203 bSizer82->Add( gbSizer1, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
204
205
206 bSizer82->Add( 0, 0, 1, wxEXPAND, 5 );
207
208
209 m_pgDC->SetSizer( bSizer82 );
210 m_pgDC->Layout();
211 bSizer82->Fit( m_pgDC );
212 m_simPages->AddPage( m_pgDC, _("DC Transfer"), false );
213 m_pgDistortion = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
214 m_simPages->AddPage( m_pgDistortion, _("Distortion"), false );
215 m_pgNoise = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
216 m_pgNoise->Hide();
217
218 wxBoxSizer* bSizer15;
219 bSizer15 = new wxBoxSizer( wxVERTICAL );
220
221
222 bSizer15->Add( 0, 0, 1, wxEXPAND, 5 );
223
224 wxFlexGridSizer* fgSizer7;
225 fgSizer7 = new wxFlexGridSizer( 0, 3, 0, 0 );
226 fgSizer7->SetFlexibleDirection( wxBOTH );
227 fgSizer7->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
228
229 m_staticText14 = new wxStaticText( m_pgNoise, wxID_ANY, _("Measured node"), wxDefaultPosition, wxDefaultSize, 0 );
230 m_staticText14->Wrap( -1 );
231 fgSizer7->Add( m_staticText14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
232
233 m_noiseMeas = new wxComboBox( m_pgNoise, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
234 fgSizer7->Add( m_noiseMeas, 0, wxALL, 5 );
235
236
237 fgSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
238
239 m_staticText15 = new wxStaticText( m_pgNoise, wxID_ANY, _("Reference node"), wxDefaultPosition, wxDefaultSize, 0 );
240 m_staticText15->Wrap( -1 );
241 fgSizer7->Add( m_staticText15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
242
243 m_noiseRef = new wxComboBox( m_pgNoise, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
244 fgSizer7->Add( m_noiseRef, 0, wxALL, 5 );
245
246 m_staticText23 = new wxStaticText( m_pgNoise, wxID_ANY, _("(optional; default GND)"), wxDefaultPosition, wxDefaultSize, 0 );
247 m_staticText23->Wrap( -1 );
248 fgSizer7->Add( m_staticText23, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
249
250 m_staticText16 = new wxStaticText( m_pgNoise, wxID_ANY, _("Noise source"), wxDefaultPosition, wxDefaultSize, 0 );
251 m_staticText16->Wrap( -1 );
252 fgSizer7->Add( m_staticText16, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
253
254 m_noiseSrc = new wxComboBox( m_pgNoise, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
255 fgSizer7->Add( m_noiseSrc, 0, wxALL, 5 );
256
257
258 fgSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
259
260
261 bSizer15->Add( fgSizer7, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
262
263
264 bSizer15->Add( 0, 0, 1, wxEXPAND, 5 );
265
266 wxString m_noiseScaleChoices[] = { _("Decade"), _("Octave"), _("Linear") };
267 int m_noiseScaleNChoices = sizeof( m_noiseScaleChoices ) / sizeof( wxString );
268 m_noiseScale = new wxRadioBox( m_pgNoise, wxID_ANY, _("Frequency scale"), wxDefaultPosition, wxDefaultSize, m_noiseScaleNChoices, m_noiseScaleChoices, 1, wxRA_SPECIFY_COLS );
269 m_noiseScale->SetSelection( 0 );
270 bSizer15->Add( m_noiseScale, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
271
272
273 bSizer15->Add( 0, 0, 1, wxEXPAND, 5 );
274
275 wxFlexGridSizer* fgSizer11;
276 fgSizer11 = new wxFlexGridSizer( 0, 2, 0, 0 );
277 fgSizer11->SetFlexibleDirection( wxBOTH );
278 fgSizer11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
279
280 m_staticText11 = new wxStaticText( m_pgNoise, wxID_ANY, _("Number of points"), wxDefaultPosition, wxDefaultSize, 0 );
281 m_staticText11->Wrap( -1 );
282 fgSizer11->Add( m_staticText11, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
283
284 m_noisePointsNumber = new wxTextCtrl( m_pgNoise, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
285 fgSizer11->Add( m_noisePointsNumber, 0, wxALL, 5 );
286
287 m_staticText21 = new wxStaticText( m_pgNoise, wxID_ANY, _("Start frequency [Hz]"), wxDefaultPosition, wxDefaultSize, 0 );
288 m_staticText21->Wrap( -1 );
289 fgSizer11->Add( m_staticText21, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
290
291 m_noiseFreqStart = new wxTextCtrl( m_pgNoise, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
292 fgSizer11->Add( m_noiseFreqStart, 0, wxALL, 5 );
293
294 m_staticText31 = new wxStaticText( m_pgNoise, wxID_ANY, _("Stop frequency [Hz]"), wxDefaultPosition, wxDefaultSize, 0 );
295 m_staticText31->Wrap( -1 );
296 fgSizer11->Add( m_staticText31, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
297
298 m_noiseFreqStop = new wxTextCtrl( m_pgNoise, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
299 fgSizer11->Add( m_noiseFreqStop, 0, wxALL, 5 );
300
301
302 bSizer15->Add( fgSizer11, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
303
304
305 bSizer15->Add( 0, 0, 1, wxEXPAND, 5 );
306
307
308 m_pgNoise->SetSizer( bSizer15 );
309 m_pgNoise->Layout();
310 bSizer15->Fit( m_pgNoise );
311 m_simPages->AddPage( m_pgNoise, _("Noise"), false );
312 m_pgOP = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
313 wxBoxSizer* bSizer8;
314 bSizer8 = new wxBoxSizer( wxVERTICAL );
315
316
317 bSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
318
319 m_staticText13 = new wxStaticText( m_pgOP, wxID_ANY, _("This tab has no settings"), wxDefaultPosition, wxDefaultSize, 0 );
320 m_staticText13->Wrap( -1 );
321 bSizer8->Add( m_staticText13, 0, wxALIGN_CENTER, 5 );
322
323
324 bSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
325
326
327 m_pgOP->SetSizer( bSizer8 );
328 m_pgOP->Layout();
329 bSizer8->Fit( m_pgOP );
330 m_simPages->AddPage( m_pgOP, _("Operating Point"), false );
331 m_pgPoleZero = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
332 m_pgPoleZero->Hide();
333
334 m_simPages->AddPage( m_pgPoleZero, _("Pole-Zero"), false );
335 m_pgSensitivity = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
336 m_pgSensitivity->Hide();
337
338 m_simPages->AddPage( m_pgSensitivity, _("Sensitivity"), false );
339 m_pgTransferFunction = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
340 m_pgTransferFunction->Hide();
341
342 m_simPages->AddPage( m_pgTransferFunction, _("Transfer Function"), false );
343 m_pgTransient = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
344 wxBoxSizer* bSizer81;
345 bSizer81 = new wxBoxSizer( wxVERTICAL );
346
347
348 bSizer81->Add( 0, 0, 1, wxEXPAND, 5 );
349
350 wxFlexGridSizer* fgSizer6;
351 fgSizer6 = new wxFlexGridSizer( 0, 4, 0, 0 );
352 fgSizer6->SetFlexibleDirection( wxBOTH );
353 fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
354
355 m_staticText151 = new wxStaticText( m_pgTransient, wxID_ANY, _("Time step:"), wxDefaultPosition, wxDefaultSize, 0 );
356 m_staticText151->Wrap( -1 );
357 fgSizer6->Add( m_staticText151, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
358
359 m_transStep = new wxTextCtrl( m_pgTransient, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
360 fgSizer6->Add( m_transStep, 0, wxALL, 5 );
361
362 m_staticText1511 = new wxStaticText( m_pgTransient, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
363 m_staticText1511->Wrap( -1 );
364 fgSizer6->Add( m_staticText1511, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
365
366
367 fgSizer6->Add( 0, 0, 0, wxEXPAND, 5 );
368
369 m_staticText161 = new wxStaticText( m_pgTransient, wxID_ANY, _("Final time:"), wxDefaultPosition, wxDefaultSize, 0 );
370 m_staticText161->Wrap( -1 );
371 fgSizer6->Add( m_staticText161, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
372
373 m_transFinal = new wxTextCtrl( m_pgTransient, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
374 fgSizer6->Add( m_transFinal, 0, wxALL, 5 );
375
376 m_staticText1512 = new wxStaticText( m_pgTransient, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
377 m_staticText1512->Wrap( -1 );
378 fgSizer6->Add( m_staticText1512, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
379
380
381 fgSizer6->Add( 0, 0, 0, wxEXPAND, 5 );
382
383 m_staticText17 = new wxStaticText( m_pgTransient, wxID_ANY, _("Initial time:"), wxDefaultPosition, wxDefaultSize, 0 );
384 m_staticText17->Wrap( -1 );
385 fgSizer6->Add( m_staticText17, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
386
387 m_transInitial = new wxTextCtrl( m_pgTransient, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
388 fgSizer6->Add( m_transInitial, 0, wxALL, 5 );
389
390 m_staticText1513 = new wxStaticText( m_pgTransient, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
391 m_staticText1513->Wrap( -1 );
392 fgSizer6->Add( m_staticText1513, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxRIGHT, 5 );
393
394 m_staticText24 = new wxStaticText( m_pgTransient, wxID_ANY, _("(optional; default 0)"), wxDefaultPosition, wxDefaultSize, 0 );
395 m_staticText24->Wrap( -1 );
396 fgSizer6->Add( m_staticText24, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
397
398
399 bSizer81->Add( fgSizer6, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
400
401
402 bSizer81->Add( 0, 0, 1, wxEXPAND, 5 );
403
404
405 m_pgTransient->SetSizer( bSizer81 );
406 m_pgTransient->Layout();
407 bSizer81->Fit( m_pgTransient );
408 m_simPages->AddPage( m_pgTransient, _("Transient"), false );
409 m_pgCustom = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
410 wxBoxSizer* bSizer2;
411 bSizer2 = new wxBoxSizer( wxVERTICAL );
412
413 m_staticText18 = new wxStaticText( m_pgCustom, wxID_ANY, _("Spice directives:"), wxDefaultPosition, wxDefaultSize, 0 );
414 m_staticText18->Wrap( -1 );
415 bSizer2->Add( m_staticText18, 0, wxALL, 5 );
416
417 m_customTxt = new wxTextCtrl( m_pgCustom, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
418 m_customTxt->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
419
420 bSizer2->Add( m_customTxt, 1, wxALL|wxEXPAND, 5 );
421
422 m_loadDirectives = new wxButton( m_pgCustom, wxID_ANY, _("Load directives from schematic"), wxDefaultPosition, wxDefaultSize, 0 );
423 bSizer2->Add( m_loadDirectives, 0, wxALL|wxEXPAND, 5 );
424
425
426 m_pgCustom->SetSizer( bSizer2 );
427 m_pgCustom->Layout();
428 bSizer2->Fit( m_pgCustom );
429 m_simPages->AddPage( m_pgCustom, _("Custom"), false );
430
431 bSizer1->Add( m_simPages, 1, wxALL|wxEXPAND, 5 );
432
433 wxBoxSizer* bSizer88;
434 bSizer88 = new wxBoxSizer( wxVERTICAL );
435
436 m_fixPassiveVals = new wxCheckBox( this, wxID_ANY, _("Adjust passive symbol values (e.g. M -> Meg; 100 nF -> 100n)"), wxDefaultPosition, wxDefaultSize, 0 );
437 bSizer88->Add( m_fixPassiveVals, 0, wxBOTTOM|wxRIGHT|wxLEFT, 10 );
438
439 m_fixIncludePaths = new wxCheckBox( this, wxID_ANY, _("Add full path for .include library directives"), wxDefaultPosition, wxDefaultSize, 0 );
440 m_fixIncludePaths->SetValue(true);
441 bSizer88->Add( m_fixIncludePaths, 0, wxBOTTOM|wxRIGHT|wxLEFT, 10 );
442
443 m_compatibilityMode = new wxBoxSizer( wxHORIZONTAL );
444
445 wxStaticText* compatibilityLabel;
446 compatibilityLabel = new wxStaticText( this, wxID_ANY, _("Compatibility mode:"), wxDefaultPosition, wxDefaultSize, 0 );
447 compatibilityLabel->Wrap( -1 );
448 m_compatibilityMode->Add( compatibilityLabel, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 8 );
449
450 wxString m_compatibilityModeChoiceChoices[] = { _("User configuration"), _("Spice"), _("PSpice"), _("LTSpice"), _("PSpice and LTSpice"), _("HSpice") };
451 int m_compatibilityModeChoiceNChoices = sizeof( m_compatibilityModeChoiceChoices ) / sizeof( wxString );
452 m_compatibilityModeChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_compatibilityModeChoiceNChoices, m_compatibilityModeChoiceChoices, 0 );
453 m_compatibilityModeChoice->SetSelection( 0 );
454 m_compatibilityMode->Add( m_compatibilityModeChoice, 0, wxALIGN_CENTER_VERTICAL, 5 );
455
456
457 bSizer88->Add( m_compatibilityMode, 1, wxEXPAND|wxBOTTOM, 5 );
458
459 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
460 bSizer88->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
461
462
463 bSizer1->Add( bSizer88, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
464
465 m_sdbSizer = new wxStdDialogButtonSizer();
466 m_sdbSizerOK = new wxButton( this, wxID_OK );
467 m_sdbSizer->AddButton( m_sdbSizerOK );
468 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
469 m_sdbSizer->AddButton( m_sdbSizerCancel );
470 m_sdbSizer->Realize();
471
472 bSizer1->Add( m_sdbSizer, 0, wxALL|wxALIGN_RIGHT, 5 );
473
474
475 this->SetSizer( bSizer1 );
476 this->Layout();
477 bSizer1->Fit( this );
478
479 this->Centre( wxBOTH );
480
481 // Connect Events
482 this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SIM_SETTINGS_BASE::onInitDlg ) );
483 m_dcEnable2->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onDCEnableSecondSource ), NULL, this );
484 m_dcSourceType1->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onDCSource1Selected ), NULL, this );
485 m_dcSourceType2->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onDCSource2Selected ), NULL, this );
486 m_swapDCSources->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onSwapDCSources ), NULL, this );
487 m_loadDirectives->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onLoadDirectives ), NULL, this );
488}
489
491{
492 // Disconnect Events
493 this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SIM_SETTINGS_BASE::onInitDlg ) );
494 m_dcEnable2->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onDCEnableSecondSource ), NULL, this );
495 m_dcSourceType1->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onDCSource1Selected ), NULL, this );
496 m_dcSourceType2->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onDCSource2Selected ), NULL, this );
497 m_swapDCSources->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onSwapDCSources ), NULL, this );
498 m_loadDirectives->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onLoadDirectives ), NULL, this );
499
500}
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
virtual void onDCSource1Selected(wxCommandEvent &event)
virtual void onDCSource2Selected(wxCommandEvent &event)
virtual void onSwapDCSources(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
DIALOG_SIM_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Simulation settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onDCEnableSecondSource(wxCommandEvent &event)
virtual void onInitDlg(wxInitDialogEvent &event)
virtual void onLoadDirectives(wxCommandEvent &event)
#define _(s)