KiCad PCB EDA Suite
dialog_sim_settings_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jul 31 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_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_simPages->SetMinSize( wxSize( 650,-1 ) );
21 
22  m_pgAC = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
23  wxBoxSizer* bSizer3;
24  bSizer3 = new wxBoxSizer( wxVERTICAL );
25 
26 
27  bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
28 
29  wxString m_acScaleChoices[] = { _("Decade"), _("Octave"), _("Linear") };
30  int m_acScaleNChoices = sizeof( m_acScaleChoices ) / sizeof( wxString );
31  m_acScale = new wxRadioBox( m_pgAC, wxID_ANY, _("Frequency scale"), wxDefaultPosition, wxDefaultSize, m_acScaleNChoices, m_acScaleChoices, 1, wxRA_SPECIFY_COLS );
32  m_acScale->SetSelection( 0 );
33  m_acScale->Hide();
34 
35  bSizer3->Add( m_acScale, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
36 
37 
38  bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
39 
40  wxFlexGridSizer* fgSizer1;
41  fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
42  fgSizer1->SetFlexibleDirection( wxBOTH );
43  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
44 
45  m_staticText1 = new wxStaticText( m_pgAC, wxID_ANY, _("Number of points"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_staticText1->Wrap( -1 );
47  fgSizer1->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
48 
49  m_acPointsNumber = new wxTextCtrl( m_pgAC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
50  fgSizer1->Add( m_acPointsNumber, 0, wxALL|wxEXPAND, 5 );
51 
52  m_staticText2 = new wxStaticText( m_pgAC, wxID_ANY, _("Start frequency [Hz]"), wxDefaultPosition, wxDefaultSize, 0 );
53  m_staticText2->Wrap( -1 );
54  fgSizer1->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
55 
56  m_acFreqStart = new wxTextCtrl( m_pgAC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
57  fgSizer1->Add( m_acFreqStart, 0, wxALL|wxEXPAND, 5 );
58 
59  m_staticText3 = new wxStaticText( m_pgAC, wxID_ANY, _("Stop frequency [Hz]"), wxDefaultPosition, wxDefaultSize, 0 );
60  m_staticText3->Wrap( -1 );
61  fgSizer1->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
62 
63  m_acFreqStop = new wxTextCtrl( m_pgAC, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
64  fgSizer1->Add( m_acFreqStop, 0, wxALL|wxEXPAND, 5 );
65 
66 
67  bSizer3->Add( fgSizer1, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
68 
69 
70  bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
71 
72 
73  m_pgAC->SetSizer( bSizer3 );
74  m_pgAC->Layout();
75  bSizer3->Fit( m_pgAC );
76  m_simPages->AddPage( m_pgAC, _("AC"), true );
77  m_pgDC = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
78  wxBoxSizer* bSizer4;
79  bSizer4 = new wxBoxSizer( wxVERTICAL );
80 
81  wxStaticBoxSizer* sbSizer21;
82  sbSizer21 = new wxStaticBoxSizer( new wxStaticBox( m_pgDC, wxID_ANY, _("DC sweep source 1") ), wxVERTICAL );
83 
84  m_dcEnable1 = new wxCheckBox( sbSizer21->GetStaticBox(), wxID_ANY, _("Enable"), wxDefaultPosition, wxDefaultSize, 0 );
85  sbSizer21->Add( m_dcEnable1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
86 
87  wxFlexGridSizer* fgSizer21;
88  fgSizer21 = new wxFlexGridSizer( 0, 2, 0, 0 );
89  fgSizer21->SetFlexibleDirection( wxBOTH );
90  fgSizer21->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
91 
92  m_staticText41 = new wxStaticText( sbSizer21->GetStaticBox(), wxID_ANY, _("DC source"), wxDefaultPosition, wxDefaultSize, 0 );
93  m_staticText41->Wrap( -1 );
94  fgSizer21->Add( m_staticText41, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
95 
96  m_dcSource1 = new wxComboBox( sbSizer21->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
97  fgSizer21->Add( m_dcSource1, 0, wxALL, 5 );
98 
99  m_staticText51 = new wxStaticText( sbSizer21->GetStaticBox(), wxID_ANY, _("Starting voltage [V]"), wxDefaultPosition, wxDefaultSize, 0 );
100  m_staticText51->Wrap( -1 );
101  fgSizer21->Add( m_staticText51, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
102 
103  m_dcStart1 = new wxTextCtrl( sbSizer21->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
104  fgSizer21->Add( m_dcStart1, 0, wxALL, 5 );
105 
106  m_staticText61 = new wxStaticText( sbSizer21->GetStaticBox(), wxID_ANY, _("Final voltage [V]"), wxDefaultPosition, wxDefaultSize, 0 );
107  m_staticText61->Wrap( -1 );
108  fgSizer21->Add( m_staticText61, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
109 
110  m_dcStop1 = new wxTextCtrl( sbSizer21->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
111  fgSizer21->Add( m_dcStop1, 0, wxALL, 5 );
112 
113  m_staticText71 = new wxStaticText( sbSizer21->GetStaticBox(), wxID_ANY, _("Increment step [V]"), wxDefaultPosition, wxDefaultSize, 0 );
114  m_staticText71->Wrap( -1 );
115  fgSizer21->Add( m_staticText71, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
116 
117  m_dcIncr1 = new wxTextCtrl( sbSizer21->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
118  fgSizer21->Add( m_dcIncr1, 0, wxALL, 5 );
119 
120 
121  sbSizer21->Add( fgSizer21, 1, wxALIGN_CENTER_HORIZONTAL, 5 );
122 
123 
124  bSizer4->Add( sbSizer21, 0, wxEXPAND, 5 );
125 
126  wxStaticBoxSizer* sbSizer2;
127  sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( m_pgDC, wxID_ANY, _("DC sweep source 2") ), wxVERTICAL );
128 
129  m_dcEnable2 = new wxCheckBox( sbSizer2->GetStaticBox(), wxID_ANY, _("Enable"), wxDefaultPosition, wxDefaultSize, 0 );
130  sbSizer2->Add( m_dcEnable2, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
131 
132  wxFlexGridSizer* fgSizer2;
133  fgSizer2 = new wxFlexGridSizer( 0, 2, 0, 0 );
134  fgSizer2->SetFlexibleDirection( wxBOTH );
135  fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
136 
137  m_staticText4 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("DC source"), wxDefaultPosition, wxDefaultSize, 0 );
138  m_staticText4->Wrap( -1 );
139  fgSizer2->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
140 
141  m_dcSource2 = new wxComboBox( sbSizer2->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
142  fgSizer2->Add( m_dcSource2, 0, wxALL, 5 );
143 
144  m_staticText5 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Starting voltage [V]"), wxDefaultPosition, wxDefaultSize, 0 );
145  m_staticText5->Wrap( -1 );
146  fgSizer2->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
147 
148  m_dcStart2 = new wxTextCtrl( sbSizer2->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
149  fgSizer2->Add( m_dcStart2, 0, wxALL, 5 );
150 
151  m_staticText6 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Final voltage [V]"), wxDefaultPosition, wxDefaultSize, 0 );
152  m_staticText6->Wrap( -1 );
153  fgSizer2->Add( m_staticText6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
154 
155  m_dcStop2 = new wxTextCtrl( sbSizer2->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
156  fgSizer2->Add( m_dcStop2, 0, wxALL, 5 );
157 
158  m_staticText7 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Increment step [V]"), wxDefaultPosition, wxDefaultSize, 0 );
159  m_staticText7->Wrap( -1 );
160  fgSizer2->Add( m_staticText7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
161 
162  m_dcIncr2 = new wxTextCtrl( sbSizer2->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
163  fgSizer2->Add( m_dcIncr2, 0, wxALL, 5 );
164 
165 
166  sbSizer2->Add( fgSizer2, 1, wxALIGN_CENTER_HORIZONTAL, 5 );
167 
168 
169  bSizer4->Add( sbSizer2, 0, wxEXPAND, 5 );
170 
171 
172  m_pgDC->SetSizer( bSizer4 );
173  m_pgDC->Layout();
174  bSizer4->Fit( m_pgDC );
175  m_simPages->AddPage( m_pgDC, _("DC Transfer"), false );
176  m_pgDistortion = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
177  m_pgDistortion->Hide();
178 
179  m_simPages->AddPage( m_pgDistortion, _("Distortion"), false );
180  m_pgNoise = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
181  m_pgNoise->Hide();
182 
183  wxBoxSizer* bSizer15;
184  bSizer15 = new wxBoxSizer( wxVERTICAL );
185 
186 
187  bSizer15->Add( 0, 0, 1, wxEXPAND, 5 );
188 
189  wxFlexGridSizer* fgSizer7;
190  fgSizer7 = new wxFlexGridSizer( 0, 3, 0, 0 );
191  fgSizer7->SetFlexibleDirection( wxBOTH );
192  fgSizer7->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
193 
194  m_staticText14 = new wxStaticText( m_pgNoise, wxID_ANY, _("Measured node"), wxDefaultPosition, wxDefaultSize, 0 );
195  m_staticText14->Wrap( -1 );
196  fgSizer7->Add( m_staticText14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
197 
198  m_noiseMeas = new wxComboBox( m_pgNoise, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
199  fgSizer7->Add( m_noiseMeas, 0, wxALL, 5 );
200 
201 
202  fgSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
203 
204  m_staticText15 = new wxStaticText( m_pgNoise, wxID_ANY, _("Reference node"), wxDefaultPosition, wxDefaultSize, 0 );
205  m_staticText15->Wrap( -1 );
206  fgSizer7->Add( m_staticText15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
207 
208  m_noiseRef = new wxComboBox( m_pgNoise, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
209  fgSizer7->Add( m_noiseRef, 0, wxALL, 5 );
210 
211  m_staticText23 = new wxStaticText( m_pgNoise, wxID_ANY, _("(optional; default GND)"), wxDefaultPosition, wxDefaultSize, 0 );
212  m_staticText23->Wrap( -1 );
213  fgSizer7->Add( m_staticText23, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
214 
215  m_staticText16 = new wxStaticText( m_pgNoise, wxID_ANY, _("Noise source"), wxDefaultPosition, wxDefaultSize, 0 );
216  m_staticText16->Wrap( -1 );
217  fgSizer7->Add( m_staticText16, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
218 
219  m_noiseSrc = new wxComboBox( m_pgNoise, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
220  fgSizer7->Add( m_noiseSrc, 0, wxALL, 5 );
221 
222 
223  fgSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
224 
225 
226  bSizer15->Add( fgSizer7, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
227 
228 
229  bSizer15->Add( 0, 0, 1, wxEXPAND, 5 );
230 
231  wxString m_noiseScaleChoices[] = { _("Decade"), _("Octave"), _("Linear") };
232  int m_noiseScaleNChoices = sizeof( m_noiseScaleChoices ) / sizeof( wxString );
233  m_noiseScale = new wxRadioBox( m_pgNoise, wxID_ANY, _("Frequency scale"), wxDefaultPosition, wxDefaultSize, m_noiseScaleNChoices, m_noiseScaleChoices, 1, wxRA_SPECIFY_COLS );
234  m_noiseScale->SetSelection( 0 );
235  bSizer15->Add( m_noiseScale, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
236 
237 
238  bSizer15->Add( 0, 0, 1, wxEXPAND, 5 );
239 
240  wxFlexGridSizer* fgSizer11;
241  fgSizer11 = new wxFlexGridSizer( 0, 2, 0, 0 );
242  fgSizer11->SetFlexibleDirection( wxBOTH );
243  fgSizer11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
244 
245  m_staticText11 = new wxStaticText( m_pgNoise, wxID_ANY, _("Number of points"), wxDefaultPosition, wxDefaultSize, 0 );
246  m_staticText11->Wrap( -1 );
247  fgSizer11->Add( m_staticText11, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
248 
249  m_noisePointsNumber = new wxTextCtrl( m_pgNoise, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
250  fgSizer11->Add( m_noisePointsNumber, 0, wxALL, 5 );
251 
252  m_staticText21 = new wxStaticText( m_pgNoise, wxID_ANY, _("Start frequency [Hz]"), wxDefaultPosition, wxDefaultSize, 0 );
253  m_staticText21->Wrap( -1 );
254  fgSizer11->Add( m_staticText21, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
255 
256  m_noiseFreqStart = new wxTextCtrl( m_pgNoise, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
257  fgSizer11->Add( m_noiseFreqStart, 0, wxALL, 5 );
258 
259  m_staticText31 = new wxStaticText( m_pgNoise, wxID_ANY, _("Stop frequency [Hz]"), wxDefaultPosition, wxDefaultSize, 0 );
260  m_staticText31->Wrap( -1 );
261  fgSizer11->Add( m_staticText31, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
262 
263  m_noiseFreqStop = new wxTextCtrl( m_pgNoise, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
264  fgSizer11->Add( m_noiseFreqStop, 0, wxALL, 5 );
265 
266 
267  bSizer15->Add( fgSizer11, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
268 
269 
270  bSizer15->Add( 0, 0, 1, wxEXPAND, 5 );
271 
272 
273  m_pgNoise->SetSizer( bSizer15 );
274  m_pgNoise->Layout();
275  bSizer15->Fit( m_pgNoise );
276  m_simPages->AddPage( m_pgNoise, _("Noise"), false );
277  m_pgOP = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
278  m_pgOP->Hide();
279 
280  wxBoxSizer* bSizer8;
281  bSizer8 = new wxBoxSizer( wxVERTICAL );
282 
283 
284  bSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
285 
286  m_staticText13 = new wxStaticText( m_pgOP, wxID_ANY, _("This tab has no settings"), wxDefaultPosition, wxDefaultSize, 0 );
287  m_staticText13->Wrap( -1 );
288  bSizer8->Add( m_staticText13, 0, wxALIGN_CENTER, 5 );
289 
290 
291  bSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
292 
293 
294  m_pgOP->SetSizer( bSizer8 );
295  m_pgOP->Layout();
296  bSizer8->Fit( m_pgOP );
297  m_simPages->AddPage( m_pgOP, _("Operating Point"), false );
298  m_pgPoleZero = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
299  m_pgPoleZero->Hide();
300 
301  m_simPages->AddPage( m_pgPoleZero, _("Pole-Zero"), false );
302  m_pgSensitivity = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
303  m_pgSensitivity->Hide();
304 
305  m_simPages->AddPage( m_pgSensitivity, _("Sensitivity"), false );
306  m_pgTransferFunction = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
307  m_pgTransferFunction->Hide();
308 
309  m_simPages->AddPage( m_pgTransferFunction, _("Transfer Function"), false );
310  m_pgTransient = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
311  wxBoxSizer* bSizer81;
312  bSizer81 = new wxBoxSizer( wxVERTICAL );
313 
314 
315  bSizer81->Add( 0, 0, 1, wxEXPAND, 5 );
316 
317  wxFlexGridSizer* fgSizer6;
318  fgSizer6 = new wxFlexGridSizer( 0, 3, 0, 0 );
319  fgSizer6->SetFlexibleDirection( wxBOTH );
320  fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
321 
322  m_staticText151 = new wxStaticText( m_pgTransient, wxID_ANY, _("Time step [s]"), wxDefaultPosition, wxDefaultSize, 0 );
323  m_staticText151->Wrap( -1 );
324  fgSizer6->Add( m_staticText151, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
325 
326  m_transStep = new wxTextCtrl( m_pgTransient, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
327  fgSizer6->Add( m_transStep, 0, wxALL, 5 );
328 
329 
330  fgSizer6->Add( 0, 0, 0, wxEXPAND, 5 );
331 
332  m_staticText161 = new wxStaticText( m_pgTransient, wxID_ANY, _("Final time [s]"), wxDefaultPosition, wxDefaultSize, 0 );
333  m_staticText161->Wrap( -1 );
334  fgSizer6->Add( m_staticText161, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
335 
336  m_transFinal = new wxTextCtrl( m_pgTransient, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
337  fgSizer6->Add( m_transFinal, 0, wxALL, 5 );
338 
339 
340  fgSizer6->Add( 0, 0, 0, wxEXPAND, 5 );
341 
342  m_staticText17 = new wxStaticText( m_pgTransient, wxID_ANY, _("Initial time [s]"), wxDefaultPosition, wxDefaultSize, 0 );
343  m_staticText17->Wrap( -1 );
344  fgSizer6->Add( m_staticText17, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
345 
346  m_transInitial = new wxTextCtrl( m_pgTransient, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
347  fgSizer6->Add( m_transInitial, 0, wxALL, 5 );
348 
349  m_staticText24 = new wxStaticText( m_pgTransient, wxID_ANY, _("(optional; default 0)"), wxDefaultPosition, wxDefaultSize, 0 );
350  m_staticText24->Wrap( -1 );
351  fgSizer6->Add( m_staticText24, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
352 
353 
354  bSizer81->Add( fgSizer6, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
355 
356 
357  bSizer81->Add( 0, 0, 1, wxEXPAND, 5 );
358 
359 
360  m_pgTransient->SetSizer( bSizer81 );
361  m_pgTransient->Layout();
362  bSizer81->Fit( m_pgTransient );
363  m_simPages->AddPage( m_pgTransient, _("Transient"), false );
364  m_pgCustom = new wxPanel( m_simPages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
365  wxBoxSizer* bSizer2;
366  bSizer2 = new wxBoxSizer( wxVERTICAL );
367 
368  m_staticText18 = new wxStaticText( m_pgCustom, wxID_ANY, _("Spice directives:"), wxDefaultPosition, wxDefaultSize, 0 );
369  m_staticText18->Wrap( -1 );
370  bSizer2->Add( m_staticText18, 0, wxALL, 5 );
371 
372  m_customTxt = new wxTextCtrl( m_pgCustom, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
373  m_customTxt->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
374 
375  bSizer2->Add( m_customTxt, 1, wxALL|wxEXPAND, 5 );
376 
377  m_loadDirectives = new wxButton( m_pgCustom, wxID_ANY, _("Load directives from schematic"), wxDefaultPosition, wxDefaultSize, 0 );
378  bSizer2->Add( m_loadDirectives, 0, wxALL|wxEXPAND, 5 );
379 
380 
381  m_pgCustom->SetSizer( bSizer2 );
382  m_pgCustom->Layout();
383  bSizer2->Fit( m_pgCustom );
384  m_simPages->AddPage( m_pgCustom, _("Custom"), false );
385 
386  bSizer1->Add( m_simPages, 1, wxEXPAND | wxALL, 5 );
387 
388  m_fixPassiveVals = new wxCheckBox( this, wxID_ANY, _("Adjust passive component values (e.g. M -> Meg; 100 nF -> 100n)"), wxDefaultPosition, wxDefaultSize, 0 );
389  bSizer1->Add( m_fixPassiveVals, 0, wxALL, 5 );
390 
391  m_fixIncludePaths = new wxCheckBox( this, wxID_ANY, _("Add full path for .include library directives"), wxDefaultPosition, wxDefaultSize, 0 );
392  m_fixIncludePaths->SetValue(true);
393  bSizer1->Add( m_fixIncludePaths, 0, wxALL, 5 );
394 
395  m_sdbSizer = new wxStdDialogButtonSizer();
396  m_sdbSizerOK = new wxButton( this, wxID_OK );
397  m_sdbSizer->AddButton( m_sdbSizerOK );
398  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
399  m_sdbSizer->AddButton( m_sdbSizerCancel );
400  m_sdbSizer->Realize();
401 
402  bSizer1->Add( m_sdbSizer, 0, wxALL|wxEXPAND|wxALIGN_RIGHT, 5 );
403 
404 
405  this->SetSizer( bSizer1 );
406  this->Layout();
407 
408  this->Centre( wxBOTH );
409 
410  // Connect Events
411  this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SIM_SETTINGS_BASE::onInitDlg ) );
412  m_loadDirectives->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onLoadDirectives ), NULL, this );
413 }
414 
416 {
417  // Disconnect Events
418  this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SIM_SETTINGS_BASE::onInitDlg ) );
419  m_loadDirectives->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SIM_SETTINGS_BASE::onLoadDirectives ), NULL, this );
420 
421 }
DIALOG_SIM_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Simulation settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(685, 518), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
virtual void onInitDlg(wxInitDialogEvent &event)
virtual void onLoadDirectives(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer