KiCad PCB EDA Suite
dialog_spice_model_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version 3.9.0 Sep 3 2020)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_SPICE_MODEL_BASE::DIALOG_SPICE_MODEL_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( wxSize( -1,-1 ), wxDefaultSize );
15 
16  wxBoxSizer* bSizer1;
17  bSizer1 = new wxBoxSizer( wxVERTICAL );
18 
19  m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
20  m_passive = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
21  wxBoxSizer* bSizer41;
22  bSizer41 = new wxBoxSizer( wxVERTICAL );
23 
24  wxFlexGridSizer* fgSizer1;
25  fgSizer1 = new wxFlexGridSizer( 0, 3, 0, 0 );
26  fgSizer1->AddGrowableCol( 1 );
27  fgSizer1->SetFlexibleDirection( wxBOTH );
28  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
29 
30  m_staticTextPtype = new wxStaticText( m_passive, wxID_ANY, _("Type:"), wxDefaultPosition, wxDefaultSize, 0 );
31  m_staticTextPtype->Wrap( -1 );
32  fgSizer1->Add( m_staticTextPtype, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
33 
34  m_pasType = new wxComboBox( m_passive, wxID_ANY, _("Resistor"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
35  m_pasType->Append( _("Resistor") );
36  m_pasType->Append( _("Capacitor") );
37  m_pasType->Append( _("Inductor") );
38  m_pasType->SetSelection( 0 );
39  fgSizer1->Add( m_pasType, 0, wxALL|wxEXPAND, 5 );
40 
41  m_staticText62 = new wxStaticText( m_passive, wxID_ANY, _("Passive type"), wxDefaultPosition, wxDefaultSize, 0 );
42  m_staticText62->Wrap( -1 );
43  fgSizer1->Add( m_staticText62, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
44 
45  m_staticTextPvalue = new wxStaticText( m_passive, wxID_ANY, _("Value:"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_staticTextPvalue->Wrap( -1 );
47  fgSizer1->Add( m_staticTextPvalue, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
48 
49  m_pasValue = new wxTextCtrl( m_passive, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
50  m_pasValue->SetMinSize( wxSize( 200,-1 ) );
51 
52  fgSizer1->Add( m_pasValue, 0, wxALL|wxEXPAND, 5 );
53 
54  m_staticTextSpVal = new wxStaticText( m_passive, wxID_ANY, _("Spice value in simulation"), wxDefaultPosition, wxDefaultSize, 0 );
55  m_staticTextSpVal->Wrap( -1 );
56  fgSizer1->Add( m_staticTextSpVal, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
57 
58 
59  bSizer41->Add( fgSizer1, 0, wxEXPAND|wxALL, 5 );
60 
61  m_staticline1 = new wxStaticLine( m_passive, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
62  bSizer41->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
63 
64  wxBoxSizer* bSizerUnits;
65  bSizerUnits = new wxBoxSizer( wxVERTICAL );
66 
67  m_staticText32 = new wxStaticText( m_passive, wxID_ANY, _("In Spice values, the decimal separator is the point.\nValues can use Spice unit symbols."), wxDefaultPosition, wxDefaultSize, 0 );
68  m_staticText32->Wrap( -1 );
69  bSizerUnits->Add( m_staticText32, 0, wxALL, 5 );
70 
71  m_staticText321 = new wxStaticText( m_passive, wxID_ANY, _("Spice unit symbols in values (case insensitive):"), wxDefaultPosition, wxDefaultSize, 0 );
72  m_staticText321->Wrap( -1 );
73  bSizerUnits->Add( m_staticText321, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
74 
75  wxFlexGridSizer* fgSizerUnitSymbols;
76  fgSizerUnitSymbols = new wxFlexGridSizer( 0, 3, 0, 0 );
77  fgSizerUnitSymbols->AddGrowableCol( 1 );
78  fgSizerUnitSymbols->SetFlexibleDirection( wxBOTH );
79  fgSizerUnitSymbols->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
80 
81  m_staticTextF1 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
82  m_staticTextF1->Wrap( -1 );
83  fgSizerUnitSymbols->Add( m_staticTextF1, 0, wxALL, 5 );
84 
85  m_staticTextF2 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
86  m_staticTextF2->Wrap( -1 );
87  fgSizerUnitSymbols->Add( m_staticTextF2, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
88 
89  m_staticTextF3 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
90  m_staticTextF3->Wrap( -1 );
91  fgSizerUnitSymbols->Add( m_staticTextF3, 0, wxALL, 5 );
92 
93  m_staticTextP1 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
94  m_staticTextP1->Wrap( -1 );
95  fgSizerUnitSymbols->Add( m_staticTextP1, 0, wxALL, 5 );
96 
97  m_staticTextP2 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
98  m_staticTextP2->Wrap( -1 );
99  fgSizerUnitSymbols->Add( m_staticTextP2, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
100 
101  m_staticTextP3 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
102  m_staticTextP3->Wrap( -1 );
103  fgSizerUnitSymbols->Add( m_staticTextP3, 0, wxALL, 5 );
104 
105  m_staticTextN1 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
106  m_staticTextN1->Wrap( -1 );
107  fgSizerUnitSymbols->Add( m_staticTextN1, 0, wxALL, 5 );
108 
109  m_staticTextN2 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
110  m_staticTextN2->Wrap( -1 );
111  fgSizerUnitSymbols->Add( m_staticTextN2, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
112 
113  m_staticTextN3 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
114  m_staticTextN3->Wrap( -1 );
115  fgSizerUnitSymbols->Add( m_staticTextN3, 0, wxALL, 5 );
116 
117  m_staticTextU1 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
118  m_staticTextU1->Wrap( -1 );
119  fgSizerUnitSymbols->Add( m_staticTextU1, 0, wxALL, 5 );
120 
121  m_staticTextU2 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
122  m_staticTextU2->Wrap( -1 );
123  fgSizerUnitSymbols->Add( m_staticTextU2, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
124 
125  m_staticTextU3 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
126  m_staticTextU3->Wrap( -1 );
127  fgSizerUnitSymbols->Add( m_staticTextU3, 0, wxALL, 5 );
128 
129  m_staticTextM1 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
130  m_staticTextM1->Wrap( -1 );
131  fgSizerUnitSymbols->Add( m_staticTextM1, 0, wxALL, 5 );
132 
133  m_staticTextM2 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
134  m_staticTextM2->Wrap( -1 );
135  fgSizerUnitSymbols->Add( m_staticTextM2, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
136 
137  m_staticTextM3 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
138  m_staticTextM3->Wrap( -1 );
139  fgSizerUnitSymbols->Add( m_staticTextM3, 0, wxALL, 5 );
140 
141  m_staticTextK1 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
142  m_staticTextK1->Wrap( -1 );
143  fgSizerUnitSymbols->Add( m_staticTextK1, 0, wxALL, 5 );
144 
145  m_staticTextK2 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
146  m_staticTextK2->Wrap( -1 );
147  fgSizerUnitSymbols->Add( m_staticTextK2, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
148 
149  m_staticTextK3 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
150  m_staticTextK3->Wrap( -1 );
151  fgSizerUnitSymbols->Add( m_staticTextK3, 0, wxALL, 5 );
152 
153  m_staticTextMeg1 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
154  m_staticTextMeg1->Wrap( -1 );
155  fgSizerUnitSymbols->Add( m_staticTextMeg1, 0, wxALL, 5 );
156 
157  m_staticTextMeg2 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
158  m_staticTextMeg2->Wrap( -1 );
159  fgSizerUnitSymbols->Add( m_staticTextMeg2, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
160 
161  m_staticTextMeg3 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
162  m_staticTextMeg3->Wrap( -1 );
163  fgSizerUnitSymbols->Add( m_staticTextMeg3, 0, wxALL, 5 );
164 
165  m_staticTextG1 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
166  m_staticTextG1->Wrap( -1 );
167  fgSizerUnitSymbols->Add( m_staticTextG1, 0, wxALL, 5 );
168 
169  m_staticTextG2 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
170  m_staticTextG2->Wrap( -1 );
171  fgSizerUnitSymbols->Add( m_staticTextG2, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
172 
173  m_staticTextG3 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
174  m_staticTextG3->Wrap( -1 );
175  fgSizerUnitSymbols->Add( m_staticTextG3, 0, wxALL, 5 );
176 
177  m_staticTextT1 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
178  m_staticTextT1->Wrap( -1 );
179  fgSizerUnitSymbols->Add( m_staticTextT1, 0, wxALL, 5 );
180 
181  m_staticTextT2 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
182  m_staticTextT2->Wrap( -1 );
183  fgSizerUnitSymbols->Add( m_staticTextT2, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
184 
185  m_staticTextT3 = new wxStaticText( m_passive, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
186  m_staticTextT3->Wrap( -1 );
187  fgSizerUnitSymbols->Add( m_staticTextT3, 0, wxALL, 5 );
188 
189 
190  bSizerUnits->Add( fgSizerUnitSymbols, 1, wxEXPAND, 5 );
191 
192 
193  bSizer41->Add( bSizerUnits, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
194 
195 
196  m_passive->SetSizer( bSizer41 );
197  m_passive->Layout();
198  bSizer41->Fit( m_passive );
199  m_notebook->AddPage( m_passive, _("Passive"), true );
200  m_model = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
201  wxBoxSizer* bSizer6;
202  bSizer6 = new wxBoxSizer( wxVERTICAL );
203 
204  wxFlexGridSizer* fgSizer3;
205  fgSizer3 = new wxFlexGridSizer( 0, 2, 0, 0 );
206  fgSizer3->AddGrowableCol( 1 );
207  fgSizer3->SetFlexibleDirection( wxBOTH );
208  fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
209 
210  m_staticText7 = new wxStaticText( m_model, wxID_ANY, _("Library:"), wxDefaultPosition, wxDefaultSize, 0 );
211  m_staticText7->Wrap( -1 );
212  fgSizer3->Add( m_staticText7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
213 
214  wxBoxSizer* bSizer7;
215  bSizer7 = new wxBoxSizer( wxHORIZONTAL );
216 
217  m_modelLibrary = new wxTextCtrl( m_model, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
218  bSizer7->Add( m_modelLibrary, 1, wxALL|wxEXPAND, 5 );
219 
220  m_selectLibrary = new wxButton( m_model, wxID_ANY, _("Select file..."), wxDefaultPosition, wxDefaultSize, 0 );
221  bSizer7->Add( m_selectLibrary, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
222 
223 
224  fgSizer3->Add( bSizer7, 1, wxEXPAND, 5 );
225 
226  m_staticText5 = new wxStaticText( m_model, wxID_ANY, _("Model:"), wxDefaultPosition, wxDefaultSize, 0 );
227  m_staticText5->Wrap( -1 );
228  fgSizer3->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
229 
230  m_modelName = new wxComboBox( m_model, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_SORT );
231  fgSizer3->Add( m_modelName, 0, wxALL|wxEXPAND, 5 );
232 
233  m_staticText4 = new wxStaticText( m_model, wxID_ANY, _("Type:"), wxDefaultPosition, wxDefaultSize, 0 );
234  m_staticText4->Wrap( -1 );
235  fgSizer3->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
236 
237  m_modelType = new wxComboBox( m_model, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
238  fgSizer3->Add( m_modelType, 0, wxALL|wxEXPAND, 5 );
239 
240  m_staticTextNote = new wxStaticText( m_model, wxID_ANY, _("Note:"), wxDefaultPosition, wxDefaultSize, 0 );
241  m_staticTextNote->Wrap( -1 );
242  fgSizer3->Add( m_staticTextNote, 0, wxALL, 5 );
243 
244  m_stInfoNote = new wxStaticText( m_model, wxID_ANY, _("note"), wxDefaultPosition, wxDefaultSize, 0 );
245  m_stInfoNote->Wrap( -1 );
246  fgSizer3->Add( m_stInfoNote, 0, wxALL, 5 );
247 
248 
249  bSizer6->Add( fgSizer3, 0, wxEXPAND, 5 );
250 
251  m_libraryContents = new wxStyledTextCtrl( m_model, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, wxEmptyString );
252  m_libraryContents->SetUseTabs( false );
253  m_libraryContents->SetTabWidth( 4 );
254  m_libraryContents->SetIndent( 4 );
255  m_libraryContents->SetTabIndents( true );
256  m_libraryContents->SetBackSpaceUnIndents( true );
257  m_libraryContents->SetViewEOL( false );
258  m_libraryContents->SetViewWhiteSpace( false );
259  m_libraryContents->SetMarginWidth( 2, 0 );
260  m_libraryContents->SetIndentationGuides( false );
261  m_libraryContents->SetMarginWidth( 1, 0 );
262  m_libraryContents->SetMarginType( 0, wxSTC_MARGIN_NUMBER );
263  m_libraryContents->SetMarginWidth( 0, m_libraryContents->TextWidth( wxSTC_STYLE_LINENUMBER, wxT("_99999") ) );
264  {
265  wxFont font = wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString );
266  m_libraryContents->StyleSetFont( wxSTC_STYLE_DEFAULT, font );
267  }
268  m_libraryContents->MarkerDefine( wxSTC_MARKNUM_FOLDER, wxSTC_MARK_BOXPLUS );
269  m_libraryContents->MarkerSetBackground( wxSTC_MARKNUM_FOLDER, wxColour( wxT("BLACK") ) );
270  m_libraryContents->MarkerSetForeground( wxSTC_MARKNUM_FOLDER, wxColour( wxT("WHITE") ) );
271  m_libraryContents->MarkerDefine( wxSTC_MARKNUM_FOLDEROPEN, wxSTC_MARK_BOXMINUS );
272  m_libraryContents->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT("BLACK") ) );
273  m_libraryContents->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT("WHITE") ) );
274  m_libraryContents->MarkerDefine( wxSTC_MARKNUM_FOLDERSUB, wxSTC_MARK_EMPTY );
275  m_libraryContents->MarkerDefine( wxSTC_MARKNUM_FOLDEREND, wxSTC_MARK_BOXPLUS );
276  m_libraryContents->MarkerSetBackground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT("BLACK") ) );
277  m_libraryContents->MarkerSetForeground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT("WHITE") ) );
278  m_libraryContents->MarkerDefine( wxSTC_MARKNUM_FOLDEROPENMID, wxSTC_MARK_BOXMINUS );
279  m_libraryContents->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT("BLACK") ) );
280  m_libraryContents->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT("WHITE") ) );
281  m_libraryContents->MarkerDefine( wxSTC_MARKNUM_FOLDERMIDTAIL, wxSTC_MARK_EMPTY );
282  m_libraryContents->MarkerDefine( wxSTC_MARKNUM_FOLDERTAIL, wxSTC_MARK_EMPTY );
283  m_libraryContents->SetSelBackground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) );
284  m_libraryContents->SetSelForeground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
285  m_libraryContents->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
286 
287  bSizer6->Add( m_libraryContents, 1, wxEXPAND | wxALL, 5 );
288 
289 
290  m_model->SetSizer( bSizer6 );
291  m_model->Layout();
292  bSizer6->Fit( m_model );
293  m_notebook->AddPage( m_model, _("Model"), false );
294  m_power = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
295  m_power->SetMinSize( wxSize( 650,-1 ) );
296 
297  wxBoxSizer* bSizer4;
298  bSizer4 = new wxBoxSizer( wxVERTICAL );
299 
300  wxStaticBoxSizer* sbSizer1;
301  sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( m_power, wxID_ANY, _("DC/AC Analysis") ), wxVERTICAL );
302 
303  wxFlexGridSizer* fgSizer6;
304  fgSizer6 = new wxFlexGridSizer( 0, 6, 0, 0 );
305  fgSizer6->AddGrowableCol( 1 );
306  fgSizer6->AddGrowableCol( 3 );
307  fgSizer6->SetFlexibleDirection( wxBOTH );
308  fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
309 
310  m_staticText10 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("DC:"), wxDefaultPosition, wxDefaultSize, 0 );
311  m_staticText10->Wrap( -1 );
312  fgSizer6->Add( m_staticText10, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
313 
314  m_genDc = new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
315  m_genDc->SetMinSize( wxSize( 60,-1 ) );
316 
317  fgSizer6->Add( m_genDc, 0, wxALL|wxEXPAND, 5 );
318 
319  m_staticText113 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
320  m_staticText113->Wrap( -1 );
321  fgSizer6->Add( m_staticText113, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
322 
323 
324  fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
325 
326 
327  fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
328 
329 
330  fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
331 
332  m_staticText11 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("AC magnitude:"), wxDefaultPosition, wxDefaultSize, 0 );
333  m_staticText11->Wrap( -1 );
334  fgSizer6->Add( m_staticText11, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
335 
336  m_genAcMag = new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
337  m_genAcMag->SetMinSize( wxSize( 60,-1 ) );
338 
339  fgSizer6->Add( m_genAcMag, 0, wxALL|wxEXPAND, 5 );
340 
341  m_staticText111 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
342  m_staticText111->Wrap( -1 );
343  fgSizer6->Add( m_staticText111, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
344 
345  m_staticText12 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("AC phase:"), wxDefaultPosition, wxDefaultSize, 0 );
346  m_staticText12->Wrap( -1 );
347  fgSizer6->Add( m_staticText12, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
348 
349  m_genAcPhase = new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
350  m_genAcPhase->SetMinSize( wxSize( 60,-1 ) );
351 
352  fgSizer6->Add( m_genAcPhase, 0, wxALL|wxEXPAND, 5 );
353 
354  m_staticText112 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("radians"), wxDefaultPosition, wxDefaultSize, 0 );
355  m_staticText112->Wrap( -1 );
356  fgSizer6->Add( m_staticText112, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
357 
358 
359  sbSizer1->Add( fgSizer6, 1, wxEXPAND, 5 );
360 
361 
362  bSizer4->Add( sbSizer1, 0, wxALL|wxEXPAND, 5 );
363 
364  wxStaticBoxSizer* sbSizer3;
365  sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( m_power, wxID_ANY, _("Transient Analysis") ), wxVERTICAL );
366 
367  m_powerNotebook = new wxNotebook( sbSizer3->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
368  m_pwrPulse = new wxPanel( m_powerNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
369  wxFlexGridSizer* fgSizer7;
370  fgSizer7 = new wxFlexGridSizer( 0, 3, 0, 0 );
371  fgSizer7->AddGrowableCol( 1 );
372  fgSizer7->SetFlexibleDirection( wxBOTH );
373  fgSizer7->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
374 
375  m_staticText13 = new wxStaticText( m_pwrPulse, wxID_ANY, _("Initial value:"), wxDefaultPosition, wxDefaultSize, 0 );
376  m_staticText13->Wrap( -1 );
377  fgSizer7->Add( m_staticText13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
378 
379  m_pulseInit = new wxTextCtrl( m_pwrPulse, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
380  m_pulseInit->SetMinSize( wxSize( 100,-1 ) );
381 
382  fgSizer7->Add( m_pulseInit, 0, wxALL|wxEXPAND, 5 );
383 
384  m_staticText131 = new wxStaticText( m_pwrPulse, wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
385  m_staticText131->Wrap( -1 );
386  fgSizer7->Add( m_staticText131, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
387 
388  m_staticText14 = new wxStaticText( m_pwrPulse, wxID_ANY, _("Pulsed value:"), wxDefaultPosition, wxDefaultSize, 0 );
389  m_staticText14->Wrap( -1 );
390  fgSizer7->Add( m_staticText14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
391 
392  m_pulseNominal = new wxTextCtrl( m_pwrPulse, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
393  fgSizer7->Add( m_pulseNominal, 0, wxALL|wxEXPAND, 5 );
394 
395  m_staticText132 = new wxStaticText( m_pwrPulse, wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
396  m_staticText132->Wrap( -1 );
397  fgSizer7->Add( m_staticText132, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
398 
399  m_staticText15 = new wxStaticText( m_pwrPulse, wxID_ANY, _("Delay time:"), wxDefaultPosition, wxDefaultSize, 0 );
400  m_staticText15->Wrap( -1 );
401  fgSizer7->Add( m_staticText15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
402 
403  m_pulseDelay = new wxTextCtrl( m_pwrPulse, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
404  fgSizer7->Add( m_pulseDelay, 0, wxALL|wxEXPAND, 5 );
405 
406  m_staticText133 = new wxStaticText( m_pwrPulse, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
407  m_staticText133->Wrap( -1 );
408  fgSizer7->Add( m_staticText133, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
409 
410  m_staticText16 = new wxStaticText( m_pwrPulse, wxID_ANY, _("Rise time:"), wxDefaultPosition, wxDefaultSize, 0 );
411  m_staticText16->Wrap( -1 );
412  fgSizer7->Add( m_staticText16, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
413 
414  m_pulseRise = new wxTextCtrl( m_pwrPulse, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
415  fgSizer7->Add( m_pulseRise, 0, wxALL|wxEXPAND, 5 );
416 
417  m_staticText134 = new wxStaticText( m_pwrPulse, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
418  m_staticText134->Wrap( -1 );
419  fgSizer7->Add( m_staticText134, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
420 
421  m_staticText17 = new wxStaticText( m_pwrPulse, wxID_ANY, _("Fall time:"), wxDefaultPosition, wxDefaultSize, 0 );
422  m_staticText17->Wrap( -1 );
423  fgSizer7->Add( m_staticText17, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
424 
425  m_pulseFall = new wxTextCtrl( m_pwrPulse, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
426  fgSizer7->Add( m_pulseFall, 0, wxALL|wxEXPAND, 5 );
427 
428  m_staticText135 = new wxStaticText( m_pwrPulse, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
429  m_staticText135->Wrap( -1 );
430  fgSizer7->Add( m_staticText135, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
431 
432  m_staticText18 = new wxStaticText( m_pwrPulse, wxID_ANY, _("Pulse width:"), wxDefaultPosition, wxDefaultSize, 0 );
433  m_staticText18->Wrap( -1 );
434  fgSizer7->Add( m_staticText18, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
435 
436  m_pulseWidth = new wxTextCtrl( m_pwrPulse, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
437  fgSizer7->Add( m_pulseWidth, 0, wxALL|wxEXPAND, 5 );
438 
439  m_staticText136 = new wxStaticText( m_pwrPulse, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
440  m_staticText136->Wrap( -1 );
441  fgSizer7->Add( m_staticText136, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
442 
443  m_staticText20 = new wxStaticText( m_pwrPulse, wxID_ANY, _("Period:"), wxDefaultPosition, wxDefaultSize, 0 );
444  m_staticText20->Wrap( -1 );
445  fgSizer7->Add( m_staticText20, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
446 
447  m_pulsePeriod = new wxTextCtrl( m_pwrPulse, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
448  fgSizer7->Add( m_pulsePeriod, 0, wxALL|wxEXPAND, 5 );
449 
450  m_staticText137 = new wxStaticText( m_pwrPulse, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
451  m_staticText137->Wrap( -1 );
452  fgSizer7->Add( m_staticText137, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
453 
454 
455  m_pwrPulse->SetSizer( fgSizer7 );
456  m_pwrPulse->Layout();
457  fgSizer7->Fit( m_pwrPulse );
458  m_powerNotebook->AddPage( m_pwrPulse, _("Pulse"), true );
459  m_pwrSin = new wxPanel( m_powerNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
460  wxFlexGridSizer* fgSizer8;
461  fgSizer8 = new wxFlexGridSizer( 0, 3, 0, 0 );
462  fgSizer8->AddGrowableCol( 1 );
463  fgSizer8->SetFlexibleDirection( wxBOTH );
464  fgSizer8->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
465 
466  m_staticText21 = new wxStaticText( m_pwrSin, wxID_ANY, _("DC offset:"), wxDefaultPosition, wxDefaultSize, 0 );
467  m_staticText21->Wrap( -1 );
468  fgSizer8->Add( m_staticText21, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
469 
470  m_sinOffset = new wxTextCtrl( m_pwrSin, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
471  m_sinOffset->SetMinSize( wxSize( 100,-1 ) );
472 
473  fgSizer8->Add( m_sinOffset, 0, wxALL|wxEXPAND, 5 );
474 
475  m_staticText211 = new wxStaticText( m_pwrSin, wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
476  m_staticText211->Wrap( -1 );
477  fgSizer8->Add( m_staticText211, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
478 
479  m_staticText22 = new wxStaticText( m_pwrSin, wxID_ANY, _("Amplitude:"), wxDefaultPosition, wxDefaultSize, 0 );
480  m_staticText22->Wrap( -1 );
481  fgSizer8->Add( m_staticText22, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
482 
483  m_sinAmplitude = new wxTextCtrl( m_pwrSin, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
484  fgSizer8->Add( m_sinAmplitude, 0, wxALL|wxEXPAND, 5 );
485 
486  m_staticText212 = new wxStaticText( m_pwrSin, wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
487  m_staticText212->Wrap( -1 );
488  fgSizer8->Add( m_staticText212, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
489 
490  m_staticText23 = new wxStaticText( m_pwrSin, wxID_ANY, _("Frequency:"), wxDefaultPosition, wxDefaultSize, 0 );
491  m_staticText23->Wrap( -1 );
492  fgSizer8->Add( m_staticText23, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
493 
494  m_sinFreq = new wxTextCtrl( m_pwrSin, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
495  fgSizer8->Add( m_sinFreq, 0, wxALL|wxEXPAND, 5 );
496 
497  m_staticText213 = new wxStaticText( m_pwrSin, wxID_ANY, _("Hz"), wxDefaultPosition, wxDefaultSize, 0 );
498  m_staticText213->Wrap( -1 );
499  fgSizer8->Add( m_staticText213, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
500 
501  m_staticText24 = new wxStaticText( m_pwrSin, wxID_ANY, _("Delay:"), wxDefaultPosition, wxDefaultSize, 0 );
502  m_staticText24->Wrap( -1 );
503  fgSizer8->Add( m_staticText24, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
504 
505  m_sinDelay = new wxTextCtrl( m_pwrSin, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
506  fgSizer8->Add( m_sinDelay, 0, wxALL|wxEXPAND, 5 );
507 
508  m_staticText214 = new wxStaticText( m_pwrSin, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
509  m_staticText214->Wrap( -1 );
510  fgSizer8->Add( m_staticText214, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
511 
512  m_staticText25 = new wxStaticText( m_pwrSin, wxID_ANY, _("Damping factor:"), wxDefaultPosition, wxDefaultSize, 0 );
513  m_staticText25->Wrap( -1 );
514  fgSizer8->Add( m_staticText25, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
515 
516  m_sinDampFactor = new wxTextCtrl( m_pwrSin, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
517  fgSizer8->Add( m_sinDampFactor, 0, wxALL|wxEXPAND, 5 );
518 
519  m_staticText215 = new wxStaticText( m_pwrSin, wxID_ANY, _("1/seconds"), wxDefaultPosition, wxDefaultSize, 0 );
520  m_staticText215->Wrap( -1 );
521  fgSizer8->Add( m_staticText215, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
522 
523 
524  m_pwrSin->SetSizer( fgSizer8 );
525  m_pwrSin->Layout();
526  fgSizer8->Fit( m_pwrSin );
527  m_powerNotebook->AddPage( m_pwrSin, _("Sinusoidal"), false );
528  m_pwrExp = new wxPanel( m_powerNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
529  wxFlexGridSizer* fgSizer9;
530  fgSizer9 = new wxFlexGridSizer( 0, 3, 0, 0 );
531  fgSizer9->AddGrowableCol( 1 );
532  fgSizer9->SetFlexibleDirection( wxBOTH );
533  fgSizer9->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
534 
535  m_staticText26 = new wxStaticText( m_pwrExp, wxID_ANY, _("Initial value:"), wxDefaultPosition, wxDefaultSize, 0 );
536  m_staticText26->Wrap( -1 );
537  fgSizer9->Add( m_staticText26, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
538 
539  m_expInit = new wxTextCtrl( m_pwrExp, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
540  m_expInit->SetMinSize( wxSize( 100,-1 ) );
541 
542  fgSizer9->Add( m_expInit, 0, wxALL|wxEXPAND, 5 );
543 
544  m_staticText261 = new wxStaticText( m_pwrExp, wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
545  m_staticText261->Wrap( -1 );
546  fgSizer9->Add( m_staticText261, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
547 
548  m_staticText27 = new wxStaticText( m_pwrExp, wxID_ANY, _("Pulsed value:"), wxDefaultPosition, wxDefaultSize, 0 );
549  m_staticText27->Wrap( -1 );
550  fgSizer9->Add( m_staticText27, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
551 
552  m_expPulsed = new wxTextCtrl( m_pwrExp, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
553  fgSizer9->Add( m_expPulsed, 0, wxALL|wxEXPAND, 5 );
554 
555  m_staticText262 = new wxStaticText( m_pwrExp, wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
556  m_staticText262->Wrap( -1 );
557  fgSizer9->Add( m_staticText262, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
558 
559  m_staticText28 = new wxStaticText( m_pwrExp, wxID_ANY, _("Rise delay time:"), wxDefaultPosition, wxDefaultSize, 0 );
560  m_staticText28->Wrap( -1 );
561  fgSizer9->Add( m_staticText28, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
562 
563  m_expRiseDelay = new wxTextCtrl( m_pwrExp, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
564  fgSizer9->Add( m_expRiseDelay, 0, wxALL|wxEXPAND, 5 );
565 
566  m_staticText263 = new wxStaticText( m_pwrExp, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
567  m_staticText263->Wrap( -1 );
568  fgSizer9->Add( m_staticText263, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
569 
570  m_staticText29 = new wxStaticText( m_pwrExp, wxID_ANY, _("Rise time constant:"), wxDefaultPosition, wxDefaultSize, 0 );
571  m_staticText29->Wrap( -1 );
572  fgSizer9->Add( m_staticText29, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
573 
574  m_expRiseConst = new wxTextCtrl( m_pwrExp, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
575  fgSizer9->Add( m_expRiseConst, 0, wxALL|wxEXPAND, 5 );
576 
577  m_staticText264 = new wxStaticText( m_pwrExp, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
578  m_staticText264->Wrap( -1 );
579  fgSizer9->Add( m_staticText264, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
580 
581  m_staticText30 = new wxStaticText( m_pwrExp, wxID_ANY, _("Fall delay time:"), wxDefaultPosition, wxDefaultSize, 0 );
582  m_staticText30->Wrap( -1 );
583  fgSizer9->Add( m_staticText30, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
584 
585  m_expFallDelay = new wxTextCtrl( m_pwrExp, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
586  fgSizer9->Add( m_expFallDelay, 0, wxALL|wxEXPAND, 5 );
587 
588  m_staticText265 = new wxStaticText( m_pwrExp, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
589  m_staticText265->Wrap( -1 );
590  fgSizer9->Add( m_staticText265, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
591 
592  m_staticText31 = new wxStaticText( m_pwrExp, wxID_ANY, _("Fall time constant:"), wxDefaultPosition, wxDefaultSize, 0 );
593  m_staticText31->Wrap( -1 );
594  fgSizer9->Add( m_staticText31, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
595 
596  m_expFallConst = new wxTextCtrl( m_pwrExp, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
597  fgSizer9->Add( m_expFallConst, 0, wxALL|wxEXPAND, 5 );
598 
599  m_staticText266 = new wxStaticText( m_pwrExp, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
600  m_staticText266->Wrap( -1 );
601  fgSizer9->Add( m_staticText266, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
602 
603 
604  m_pwrExp->SetSizer( fgSizer9 );
605  m_pwrExp->Layout();
606  fgSizer9->Fit( m_pwrExp );
607  m_powerNotebook->AddPage( m_pwrExp, _("Exponential"), false );
608  m_pwrPwl = new wxPanel( m_powerNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
609  m_pwrPwl->SetToolTip( _("Piece-wise linear") );
610 
611  wxFlexGridSizer* fgSizer15;
612  fgSizer15 = new wxFlexGridSizer( 0, 2, 0, 0 );
613  fgSizer15->AddGrowableCol( 0 );
614  fgSizer15->AddGrowableRow( 1 );
615  fgSizer15->SetFlexibleDirection( wxBOTH );
616  fgSizer15->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
617 
618  wxFlexGridSizer* fgSizer10;
619  fgSizer10 = new wxFlexGridSizer( 0, 3, 0, 0 );
620  fgSizer10->AddGrowableCol( 1 );
621  fgSizer10->SetFlexibleDirection( wxBOTH );
622  fgSizer10->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
623 
624  m_staticText34 = new wxStaticText( m_pwrPwl, wxID_ANY, _("Time:"), wxDefaultPosition, wxDefaultSize, 0 );
625  m_staticText34->Wrap( -1 );
626  fgSizer10->Add( m_staticText34, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
627 
628  m_pwlTime = new wxTextCtrl( m_pwrPwl, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
629  m_pwlTime->SetMinSize( wxSize( 100,-1 ) );
630 
631  fgSizer10->Add( m_pwlTime, 0, wxALL|wxEXPAND, 5 );
632 
633  m_staticText342 = new wxStaticText( m_pwrPwl, wxID_ANY, _("second"), wxDefaultPosition, wxDefaultSize, 0 );
634  m_staticText342->Wrap( -1 );
635  fgSizer10->Add( m_staticText342, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
636 
637  m_staticText35 = new wxStaticText( m_pwrPwl, wxID_ANY, _("Value:"), wxDefaultPosition, wxDefaultSize, 0 );
638  m_staticText35->Wrap( -1 );
639  fgSizer10->Add( m_staticText35, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
640 
641  m_pwlValue = new wxTextCtrl( m_pwrPwl, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
642  fgSizer10->Add( m_pwlValue, 0, wxALL|wxEXPAND, 5 );
643 
644  m_staticText343 = new wxStaticText( m_pwrPwl, wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
645  m_staticText343->Wrap( -1 );
646  fgSizer10->Add( m_staticText343, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
647 
648 
649  fgSizer15->Add( fgSizer10, 1, wxEXPAND, 5 );
650 
651  m_pwlAddButton = new wxButton( m_pwrPwl, wxID_ANY, _("Add"), wxDefaultPosition, wxDefaultSize, 0 );
652  fgSizer15->Add( m_pwlAddButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
653 
654  m_pwlValList = new wxListCtrl( m_pwrPwl, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL );
655  m_pwlValList->SetMinSize( wxSize( 200,-1 ) );
656 
657  fgSizer15->Add( m_pwlValList, 0, wxALL|wxEXPAND, 5 );
658 
659  m_pwlRemoveBtn = new wxButton( m_pwrPwl, wxID_ANY, _("Remove"), wxDefaultPosition, wxDefaultSize, 0 );
660  fgSizer15->Add( m_pwlRemoveBtn, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
661 
662 
663  m_pwrPwl->SetSizer( fgSizer15 );
664  m_pwrPwl->Layout();
665  fgSizer15->Fit( m_pwrPwl );
666  m_powerNotebook->AddPage( m_pwrPwl, _("Piece-wise Linear"), false );
667  m_pwrFm = new wxPanel( m_powerNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
668  wxFlexGridSizer* fgSizer11;
669  fgSizer11 = new wxFlexGridSizer( 0, 3, 0, 0 );
670  fgSizer11->AddGrowableCol( 1 );
671  fgSizer11->SetFlexibleDirection( wxBOTH );
672  fgSizer11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
673 
674  m_staticText138 = new wxStaticText( m_pwrFm, wxID_ANY, _("Offset:"), wxDefaultPosition, wxDefaultSize, 0 );
675  m_staticText138->Wrap( -1 );
676  fgSizer11->Add( m_staticText138, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
677 
678  m_fmOffset = new wxTextCtrl( m_pwrFm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
679  m_fmOffset->SetMinSize( wxSize( 100,-1 ) );
680 
681  fgSizer11->Add( m_fmOffset, 0, wxALL|wxEXPAND, 5 );
682 
683  m_staticText1311 = new wxStaticText( m_pwrFm, wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
684  m_staticText1311->Wrap( -1 );
685  fgSizer11->Add( m_staticText1311, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
686 
687  m_staticText141 = new wxStaticText( m_pwrFm, wxID_ANY, _("Amplitude:"), wxDefaultPosition, wxDefaultSize, 0 );
688  m_staticText141->Wrap( -1 );
689  fgSizer11->Add( m_staticText141, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
690 
691  m_fmAmplitude = new wxTextCtrl( m_pwrFm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
692  fgSizer11->Add( m_fmAmplitude, 0, wxALL|wxEXPAND, 5 );
693 
694  m_staticText1321 = new wxStaticText( m_pwrFm, wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
695  m_staticText1321->Wrap( -1 );
696  fgSizer11->Add( m_staticText1321, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
697 
698  m_staticText151 = new wxStaticText( m_pwrFm, wxID_ANY, _("Carrier frequency:"), wxDefaultPosition, wxDefaultSize, 0 );
699  m_staticText151->Wrap( -1 );
700  fgSizer11->Add( m_staticText151, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
701 
702  m_fmFcarrier = new wxTextCtrl( m_pwrFm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
703  fgSizer11->Add( m_fmFcarrier, 0, wxALL|wxEXPAND, 5 );
704 
705  m_staticText1331 = new wxStaticText( m_pwrFm, wxID_ANY, _("Hertz"), wxDefaultPosition, wxDefaultSize, 0 );
706  m_staticText1331->Wrap( -1 );
707  fgSizer11->Add( m_staticText1331, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
708 
709  m_staticText161 = new wxStaticText( m_pwrFm, wxID_ANY, _("Modulation index:"), wxDefaultPosition, wxDefaultSize, 0 );
710  m_staticText161->Wrap( -1 );
711  fgSizer11->Add( m_staticText161, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
712 
713  m_fmModIndex = new wxTextCtrl( m_pwrFm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
714  fgSizer11->Add( m_fmModIndex, 0, wxALL|wxEXPAND, 5 );
715 
716  m_staticText1341 = new wxStaticText( m_pwrFm, wxID_ANY, _("-"), wxDefaultPosition, wxDefaultSize, 0 );
717  m_staticText1341->Wrap( -1 );
718  fgSizer11->Add( m_staticText1341, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
719 
720  m_staticText171 = new wxStaticText( m_pwrFm, wxID_ANY, _("Signal frequency:"), wxDefaultPosition, wxDefaultSize, 0 );
721  m_staticText171->Wrap( -1 );
722  fgSizer11->Add( m_staticText171, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
723 
724  m_fmFsignal = new wxTextCtrl( m_pwrFm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
725  fgSizer11->Add( m_fmFsignal, 0, wxALL|wxEXPAND, 5 );
726 
727  m_staticText1351 = new wxStaticText( m_pwrFm, wxID_ANY, _("Hertz"), wxDefaultPosition, wxDefaultSize, 0 );
728  m_staticText1351->Wrap( -1 );
729  fgSizer11->Add( m_staticText1351, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
730 
731  m_staticText181 = new wxStaticText( m_pwrFm, wxID_ANY, _("Carrier phase:"), wxDefaultPosition, wxDefaultSize, 0 );
732  m_staticText181->Wrap( -1 );
733  fgSizer11->Add( m_staticText181, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
734 
735  m_fmPhaseC = new wxTextCtrl( m_pwrFm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
736  fgSizer11->Add( m_fmPhaseC, 0, wxALL|wxEXPAND, 5 );
737 
738  m_staticText1361 = new wxStaticText( m_pwrFm, wxID_ANY, _("degrees"), wxDefaultPosition, wxDefaultSize, 0 );
739  m_staticText1361->Wrap( -1 );
740  fgSizer11->Add( m_staticText1361, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
741 
742  m_staticText201 = new wxStaticText( m_pwrFm, wxID_ANY, _("Signal phase:"), wxDefaultPosition, wxDefaultSize, 0 );
743  m_staticText201->Wrap( -1 );
744  fgSizer11->Add( m_staticText201, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
745 
746  m_fmPhaseS = new wxTextCtrl( m_pwrFm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
747  fgSizer11->Add( m_fmPhaseS, 0, wxALL|wxEXPAND, 5 );
748 
749  m_staticText1371 = new wxStaticText( m_pwrFm, wxID_ANY, _("degrees"), wxDefaultPosition, wxDefaultSize, 0 );
750  m_staticText1371->Wrap( -1 );
751  fgSizer11->Add( m_staticText1371, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
752 
753 
754  m_pwrFm->SetSizer( fgSizer11 );
755  m_pwrFm->Layout();
756  fgSizer11->Fit( m_pwrFm );
757  m_powerNotebook->AddPage( m_pwrFm, _("FM"), false );
758  m_pwrAm = new wxPanel( m_powerNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
759  wxFlexGridSizer* fgSizer12;
760  fgSizer12 = new wxFlexGridSizer( 0, 3, 0, 0 );
761  fgSizer12->AddGrowableCol( 1 );
762  fgSizer12->SetFlexibleDirection( wxBOTH );
763  fgSizer12->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
764 
765  m_staticText1381 = new wxStaticText( m_pwrAm, wxID_ANY, _("Amplitude:"), wxDefaultPosition, wxDefaultSize, 0 );
766  m_staticText1381->Wrap( -1 );
767  fgSizer12->Add( m_staticText1381, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
768 
769  m_amAmplitude = new wxTextCtrl( m_pwrAm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
770  m_amAmplitude->SetMinSize( wxSize( 100,-1 ) );
771 
772  fgSizer12->Add( m_amAmplitude, 0, wxALL|wxEXPAND, 5 );
773 
774  m_staticText13111 = new wxStaticText( m_pwrAm, wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
775  m_staticText13111->Wrap( -1 );
776  fgSizer12->Add( m_staticText13111, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
777 
778  m_staticText1411 = new wxStaticText( m_pwrAm, wxID_ANY, _("Offset:"), wxDefaultPosition, wxDefaultSize, 0 );
779  m_staticText1411->Wrap( -1 );
780  fgSizer12->Add( m_staticText1411, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
781 
782  m_amOffset = new wxTextCtrl( m_pwrAm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
783  fgSizer12->Add( m_amOffset, 0, wxALL|wxEXPAND, 5 );
784 
785  m_staticText13211 = new wxStaticText( m_pwrAm, wxID_ANY, _("Volts/Amps"), wxDefaultPosition, wxDefaultSize, 0 );
786  m_staticText13211->Wrap( -1 );
787  fgSizer12->Add( m_staticText13211, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
788 
789  m_staticText1511 = new wxStaticText( m_pwrAm, wxID_ANY, _("Modulating frequency:"), wxDefaultPosition, wxDefaultSize, 0 );
790  m_staticText1511->Wrap( -1 );
791  fgSizer12->Add( m_staticText1511, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
792 
793  m_amModulatingFreq = new wxTextCtrl( m_pwrAm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
794  fgSizer12->Add( m_amModulatingFreq, 0, wxALL|wxEXPAND, 5 );
795 
796  m_staticText13311 = new wxStaticText( m_pwrAm, wxID_ANY, _("Hertz"), wxDefaultPosition, wxDefaultSize, 0 );
797  m_staticText13311->Wrap( -1 );
798  fgSizer12->Add( m_staticText13311, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
799 
800  m_staticText1611 = new wxStaticText( m_pwrAm, wxID_ANY, _("Carrier frequency:"), wxDefaultPosition, wxDefaultSize, 0 );
801  m_staticText1611->Wrap( -1 );
802  fgSizer12->Add( m_staticText1611, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
803 
804  m_amCarrierFreq = new wxTextCtrl( m_pwrAm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
805  fgSizer12->Add( m_amCarrierFreq, 0, wxALL|wxEXPAND, 5 );
806 
807  m_staticText13411 = new wxStaticText( m_pwrAm, wxID_ANY, _("Hertz"), wxDefaultPosition, wxDefaultSize, 0 );
808  m_staticText13411->Wrap( -1 );
809  fgSizer12->Add( m_staticText13411, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
810 
811  m_staticText1711 = new wxStaticText( m_pwrAm, wxID_ANY, _("Signal delay:"), wxDefaultPosition, wxDefaultSize, 0 );
812  m_staticText1711->Wrap( -1 );
813  fgSizer12->Add( m_staticText1711, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
814 
815  m_amSignalDelay = new wxTextCtrl( m_pwrAm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
816  fgSizer12->Add( m_amSignalDelay, 0, wxALL|wxEXPAND, 5 );
817 
818  m_staticText13511 = new wxStaticText( m_pwrAm, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
819  m_staticText13511->Wrap( -1 );
820  fgSizer12->Add( m_staticText13511, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
821 
822  m_staticText1811 = new wxStaticText( m_pwrAm, wxID_ANY, _("Carrier phase:"), wxDefaultPosition, wxDefaultSize, 0 );
823  m_staticText1811->Wrap( -1 );
824  fgSizer12->Add( m_staticText1811, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
825 
826  m_amPhase = new wxTextCtrl( m_pwrAm, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
827  fgSizer12->Add( m_amPhase, 0, wxALL|wxEXPAND, 5 );
828 
829  m_staticText13611 = new wxStaticText( m_pwrAm, wxID_ANY, _("degrees"), wxDefaultPosition, wxDefaultSize, 0 );
830  m_staticText13611->Wrap( -1 );
831  fgSizer12->Add( m_staticText13611, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
832 
833 
834  m_pwrAm->SetSizer( fgSizer12 );
835  m_pwrAm->Layout();
836  fgSizer12->Fit( m_pwrAm );
837  m_powerNotebook->AddPage( m_pwrAm, _("AM"), false );
838  m_pwrTransNoise = new wxPanel( m_powerNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
839  m_pwrTransNoise->Hide();
840 
841  m_powerNotebook->AddPage( m_pwrTransNoise, _("Transient noise"), false );
842  m_pwrRandom = new wxPanel( m_powerNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
843  wxFlexGridSizer* fgSizer13;
844  fgSizer13 = new wxFlexGridSizer( 0, 3, 0, 0 );
845  fgSizer13->AddGrowableCol( 1 );
846  fgSizer13->SetFlexibleDirection( wxBOTH );
847  fgSizer13->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
848 
849  m_staticText27111 = new wxStaticText( m_pwrRandom, wxID_ANY, _("Type:"), wxDefaultPosition, wxDefaultSize, 0 );
850  m_staticText27111->Wrap( -1 );
851  fgSizer13->Add( m_staticText27111, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
852 
853  wxString m_rnTypeChoices[] = { _("Uniform"), _("Gaussian"), _("Exponential"), _("Poisson") };
854  int m_rnTypeNChoices = sizeof( m_rnTypeChoices ) / sizeof( wxString );
855  m_rnType = new wxChoice( m_pwrRandom, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_rnTypeNChoices, m_rnTypeChoices, 0 );
856  m_rnType->SetSelection( 0 );
857  fgSizer13->Add( m_rnType, 0, wxALL|wxEXPAND, 5 );
858 
859 
860  fgSizer13->Add( 0, 0, 1, wxEXPAND, 5 );
861 
862  m_staticText26711 = new wxStaticText( m_pwrRandom, wxID_ANY, _("Individual value duration:"), wxDefaultPosition, wxDefaultSize, 0 );
863  m_staticText26711->Wrap( -1 );
864  fgSizer13->Add( m_staticText26711, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
865 
866  m_rnTS = new wxTextCtrl( m_pwrRandom, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
867  fgSizer13->Add( m_rnTS, 0, wxALL|wxEXPAND, 5 );
868 
869  m_staticText262111 = new wxStaticText( m_pwrRandom, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
870  m_staticText262111->Wrap( -1 );
871  fgSizer13->Add( m_staticText262111, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
872 
873  m_staticText28111 = new wxStaticText( m_pwrRandom, wxID_ANY, _("Time delay:"), wxDefaultPosition, wxDefaultSize, 0 );
874  m_staticText28111->Wrap( -1 );
875  fgSizer13->Add( m_staticText28111, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
876 
877  m_rnTD = new wxTextCtrl( m_pwrRandom, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
878  fgSizer13->Add( m_rnTD, 0, wxALL|wxEXPAND, 5 );
879 
880  m_staticText263111 = new wxStaticText( m_pwrRandom, wxID_ANY, _("seconds"), wxDefaultPosition, wxDefaultSize, 0 );
881  m_staticText263111->Wrap( -1 );
882  fgSizer13->Add( m_staticText263111, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
883 
884  m_rnParam1Text = new wxStaticText( m_pwrRandom, wxID_ANY, _("Range:"), wxDefaultPosition, wxDefaultSize, 0 );
885  m_rnParam1Text->Wrap( -1 );
886  fgSizer13->Add( m_rnParam1Text, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
887 
888  m_rnParam1 = new wxTextCtrl( m_pwrRandom, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
889  fgSizer13->Add( m_rnParam1, 0, wxALL|wxEXPAND, 5 );
890 
891 
892  fgSizer13->Add( 0, 0, 1, wxEXPAND, 5 );
893 
894  m_rnParam2Text = new wxStaticText( m_pwrRandom, wxID_ANY, _("Offset:"), wxDefaultPosition, wxDefaultSize, 0 );
895  m_rnParam2Text->Wrap( -1 );
896  fgSizer13->Add( m_rnParam2Text, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
897 
898  m_rnParam2 = new wxTextCtrl( m_pwrRandom, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
899  fgSizer13->Add( m_rnParam2, 0, wxALL|wxEXPAND, 5 );
900 
901 
902  fgSizer13->Add( 0, 0, 1, wxEXPAND, 5 );
903 
904 
905  m_pwrRandom->SetSizer( fgSizer13 );
906  m_pwrRandom->Layout();
907  fgSizer13->Fit( m_pwrRandom );
908  m_powerNotebook->AddPage( m_pwrRandom, _("Random"), false );
909  m_pwrExtData = new wxPanel( m_powerNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
910  m_pwrExtData->Hide();
911 
912  m_powerNotebook->AddPage( m_pwrExtData, _("External data"), false );
913 
914  sbSizer3->Add( m_powerNotebook, 0, wxEXPAND | wxALL, 5 );
915 
916 
917  bSizer4->Add( sbSizer3, 0, wxALL|wxEXPAND, 5 );
918 
919  wxString m_pwrTypeChoices[] = { _("Voltage"), _("Current") };
920  int m_pwrTypeNChoices = sizeof( m_pwrTypeChoices ) / sizeof( wxString );
921  m_pwrType = new wxRadioBox( m_power, wxID_ANY, _("Source Type"), wxDefaultPosition, wxDefaultSize, m_pwrTypeNChoices, m_pwrTypeChoices, 1, wxRA_SPECIFY_ROWS );
922  m_pwrType->SetSelection( 1 );
923  bSizer4->Add( m_pwrType, 0, wxALL|wxEXPAND, 5 );
924 
925 
926  m_power->SetSizer( bSizer4 );
927  m_power->Layout();
928  bSizer4->Fit( m_power );
929  m_notebook->AddPage( m_power, _("Source"), false );
930 
931  bSizer1->Add( m_notebook, 1, wxEXPAND | wxALL, 5 );
932 
933  m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
934  bSizer1->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
935 
936  m_disabled = new wxCheckBox( this, wxID_ANY, _("Disable symbol for simulation"), wxDefaultPosition, wxDefaultSize, 0 );
937  bSizer1->Add( m_disabled, 0, wxALL, 5 );
938 
939  wxBoxSizer* bSizer2;
940  bSizer2 = new wxBoxSizer( wxHORIZONTAL );
941 
942  m_nodeSeqCheck = new wxCheckBox( this, wxID_ANY, _("Alternate node sequence:"), wxDefaultPosition, wxDefaultSize, 0 );
943  bSizer2->Add( m_nodeSeqCheck, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
944 
945  m_nodeSeqVal = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
946  m_nodeSeqVal->SetMinSize( wxSize( 200,-1 ) );
947 
948  bSizer2->Add( m_nodeSeqVal, 1, wxALL, 5 );
949 
950 
951  bSizer1->Add( bSizer2, 0, wxEXPAND, 5 );
952 
953  m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
954  bSizer1->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
955 
956  m_sdbSizer = new wxStdDialogButtonSizer();
957  m_sdbSizerOK = new wxButton( this, wxID_OK );
958  m_sdbSizer->AddButton( m_sdbSizerOK );
959  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
960  m_sdbSizer->AddButton( m_sdbSizerCancel );
961  m_sdbSizer->Realize();
962 
963  bSizer1->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
964 
965 
966  this->SetSizer( bSizer1 );
967  this->Layout();
968 
969  this->Centre( wxBOTH );
970 
971  // Connect Events
972  this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SPICE_MODEL_BASE::onInitDlg ) );
973  m_selectLibrary->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onSelectLibrary ), NULL, this );
974  m_modelName->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onModelSelected ), NULL, this );
975  m_modelName->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onModelSelected ), NULL, this );
976  m_modelType->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onTypeSelected ), NULL, this );
977  m_pwlAddButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onPwlAdd ), NULL, this );
978  m_pwlRemoveBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onPwlRemove ), NULL, this );
979  m_rnType->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onRandomSourceType ), NULL, this );
980 }
981 
983 {
984  // Disconnect Events
985  this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_SPICE_MODEL_BASE::onInitDlg ) );
986  m_selectLibrary->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onSelectLibrary ), NULL, this );
987  m_modelName->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onModelSelected ), NULL, this );
988  m_modelName->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onModelSelected ), NULL, this );
989  m_modelType->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onTypeSelected ), NULL, this );
990  m_pwlAddButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onPwlAdd ), NULL, this );
991  m_pwlRemoveBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onPwlRemove ), NULL, this );
992  m_rnType->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_SPICE_MODEL_BASE::onRandomSourceType ), NULL, this );
993 
994 }
virtual void onModelSelected(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:82
wxStdDialogButtonSizer * m_sdbSizer
virtual void onTypeSelected(wxCommandEvent &event)
virtual void onInitDlg(wxInitDialogEvent &event)
#define NULL
wxStyledTextCtrl * m_libraryContents
virtual void onRandomSourceType(wxCommandEvent &event)
#define _(s)
virtual void onPwlAdd(wxCommandEvent &event)
DIALOG_SPICE_MODEL_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Spice Model Editor"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(669, 861), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onSelectLibrary(wxCommandEvent &event)
virtual void onPwlRemove(wxCommandEvent &event)