2016-08-11 12:41:40 +00:00
///////////////////////////////////////////////////////////////////////////
2020-11-28 21:11:11 +00:00
// C++ code generated with wxFormBuilder (version 3.9.0 Sep 3 2020)
2016-08-11 12:41:40 +00:00
// http://www.wxformbuilder.org/
//
2018-11-23 09:16:52 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2016-08-11 12:41:40 +00:00
///////////////////////////////////////////////////////////////////////////
# include "dialog_spice_model_base.h"
///////////////////////////////////////////////////////////////////////////
2016-08-11 12:42:08 +00:00
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 )
2016-08-11 12:41:40 +00:00
{
2016-08-20 15:25:51 +00:00
this - > SetSizeHints ( wxSize ( - 1 , - 1 ) , wxDefaultSize ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
wxBoxSizer * bSizer1 ;
bSizer1 = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_notebook = new wxNotebook ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_passive = new wxPanel ( m_notebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
2016-09-17 16:34:44 +00:00
wxBoxSizer * bSizer41 ;
bSizer41 = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
wxFlexGridSizer * fgSizer1 ;
2016-09-19 16:48:07 +00:00
fgSizer1 = new wxFlexGridSizer ( 0 , 3 , 0 , 0 ) ;
2016-08-15 07:53:15 +00:00
fgSizer1 - > AddGrowableCol ( 1 ) ;
2016-08-11 12:41:40 +00:00
fgSizer1 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-11-21 10:28:43 +00:00
2018-11-23 09:16:52 +00:00
m_staticTextPtype = new wxStaticText ( m_passive , wxID_ANY , _ ( " Type: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextPtype - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_staticTextPtype , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-09-17 16:34:44 +00:00
m_pasType = new wxComboBox ( m_passive , wxID_ANY , _ ( " Resistor " ) , wxDefaultPosition , wxDefaultSize , 0 , NULL , wxCB_READONLY ) ;
2016-08-11 12:41:40 +00:00
m_pasType - > Append ( _ ( " Resistor " ) ) ;
m_pasType - > Append ( _ ( " Capacitor " ) ) ;
m_pasType - > Append ( _ ( " Inductor " ) ) ;
2016-09-17 16:34:44 +00:00
m_pasType - > SetSelection ( 0 ) ;
2016-08-11 12:41:40 +00:00
fgSizer1 - > Add ( m_pasType , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-09-19 16:48:07 +00:00
m_staticText62 = new wxStaticText ( m_passive , wxID_ANY , _ ( " Passive type " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText62 - > Wrap ( - 1 ) ;
2017-12-24 15:04:02 +00:00
fgSizer1 - > Add ( m_staticText62 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-11-23 09:16:52 +00:00
m_staticTextPvalue = new wxStaticText ( m_passive , wxID_ANY , _ ( " Value: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextPvalue - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_staticTextPvalue , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pasValue = new wxTextCtrl ( m_passive , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_pasValue - > SetMinSize ( wxSize ( 200 , - 1 ) ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
fgSizer1 - > Add ( m_pasValue , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-11-23 09:16:52 +00:00
m_staticTextSpVal = new wxStaticText ( m_passive , wxID_ANY , _ ( " Spice value in simulation " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextSpVal - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_staticTextSpVal , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-09-17 16:34:44 +00:00
bSizer41 - > Add ( fgSizer1 , 0 , wxEXPAND | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-09-17 16:34:44 +00:00
m_staticline1 = new wxStaticLine ( m_passive , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bSizer41 - > Add ( m_staticline1 , 0 , wxEXPAND | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-11-23 09:16:52 +00:00
wxBoxSizer * bSizerUnits ;
bSizerUnits = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-21 10:28:43 +00:00
2021-03-02 08:56:09 +00:00
m_staticText32 = new wxStaticText ( m_passive , wxID_ANY , _ ( " In Spice values, the decimal separator is the point. \n Values can use Spice unit symbols. " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-09-17 16:34:44 +00:00
m_staticText32 - > Wrap ( - 1 ) ;
2018-11-23 09:16:52 +00:00
bSizerUnits - > Add ( m_staticText32 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-09-17 16:34:44 +00:00
m_staticText321 = new wxStaticText ( m_passive , wxID_ANY , _ ( " Spice unit symbols in values (case insensitive): " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText321 - > Wrap ( - 1 ) ;
2018-11-23 09:16:52 +00:00
bSizerUnits - > Add ( m_staticText321 , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-09-19 16:48:07 +00:00
wxFlexGridSizer * fgSizerUnitSymbols ;
fgSizerUnitSymbols = new wxFlexGridSizer ( 0 , 3 , 0 , 0 ) ;
fgSizerUnitSymbols - > AddGrowableCol ( 1 ) ;
fgSizerUnitSymbols - > SetFlexibleDirection ( wxBOTH ) ;
fgSizerUnitSymbols - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextF1 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextF1 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextF1 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextF2 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextF2 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextF2 , 0 , wxALL | wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextF3 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextF3 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextF3 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextP1 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextP1 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextP1 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextP2 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextP2 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextP2 , 0 , wxALL | wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextP3 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextP3 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextP3 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextN1 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextN1 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextN1 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextN2 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextN2 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextN2 , 0 , wxALL | wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextN3 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextN3 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextN3 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextU1 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextU1 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextU1 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextU2 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextU2 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextU2 , 0 , wxALL | wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextU3 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextU3 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextU3 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextM1 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextM1 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextM1 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextM2 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextM2 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextM2 , 0 , wxALL | wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextM3 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextM3 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextM3 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextK1 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextK1 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextK1 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextK2 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextK2 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextK2 , 0 , wxALL | wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextK3 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextK3 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextK3 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextMeg1 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextMeg1 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextMeg1 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextMeg2 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextMeg2 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextMeg2 , 0 , wxALL | wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextMeg3 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextMeg3 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextMeg3 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextG1 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextG1 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextG1 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextG2 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextG2 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextG2 , 0 , wxALL | wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextG3 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextG3 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextG3 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextT1 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextT1 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextT1 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextT2 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextT2 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextT2 , 0 , wxALL | wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-10-20 19:51:16 +00:00
m_staticTextT3 = new wxStaticText ( m_passive , wxID_ANY , _ ( " dummy " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextT3 - > Wrap ( - 1 ) ;
fgSizerUnitSymbols - > Add ( m_staticTextT3 , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-11-23 09:16:52 +00:00
bSizerUnits - > Add ( fgSizerUnitSymbols , 1 , wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-11-23 09:16:52 +00:00
bSizer41 - > Add ( bSizerUnits , 0 , wxALIGN_CENTER_HORIZONTAL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-09-17 16:34:44 +00:00
m_passive - > SetSizer ( bSizer41 ) ;
2016-08-11 12:41:40 +00:00
m_passive - > Layout ( ) ;
2016-09-17 16:34:44 +00:00
bSizer41 - > Fit ( m_passive ) ;
2020-11-14 12:39:45 +00:00
m_notebook - > AddPage ( m_passive , _ ( " Passive " ) , true ) ;
2017-10-26 17:54:53 +00:00
m_model = new wxPanel ( m_notebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
2017-10-26 21:59:56 +00:00
wxBoxSizer * bSizer6 ;
bSizer6 = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
wxFlexGridSizer * fgSizer3 ;
2017-10-26 21:59:56 +00:00
fgSizer3 = new wxFlexGridSizer ( 0 , 2 , 0 , 0 ) ;
2016-08-15 07:53:15 +00:00
fgSizer3 - > AddGrowableCol ( 1 ) ;
2016-08-11 12:41:40 +00:00
fgSizer3 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer3 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText7 = new wxStaticText ( m_model , wxID_ANY , _ ( " Library: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-10-26 17:54:53 +00:00
m_staticText7 - > Wrap ( - 1 ) ;
fgSizer3 - > Add ( m_staticText7 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2017-10-26 21:59:56 +00:00
wxBoxSizer * bSizer7 ;
bSizer7 = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-11-21 10:28:43 +00:00
2018-11-23 09:16:52 +00:00
m_modelLibrary = new wxTextCtrl ( m_model , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer7 - > Add ( m_modelLibrary , 1 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2017-10-26 17:54:53 +00:00
m_selectLibrary = new wxButton ( m_model , wxID_ANY , _ ( " Select file... " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-10-26 21:59:56 +00:00
bSizer7 - > Add ( m_selectLibrary , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2017-10-26 21:59:56 +00:00
fgSizer3 - > Add ( bSizer7 , 1 , wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText5 = new wxStaticText ( m_model , wxID_ANY , _ ( " Model: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText5 - > Wrap ( - 1 ) ;
fgSizer3 - > Add ( m_staticText5 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
m_modelName = new wxComboBox ( m_model , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 , NULL , wxCB_SORT ) ;
2017-10-26 17:54:53 +00:00
fgSizer3 - > Add ( m_modelName , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText4 = new wxStaticText ( m_model , wxID_ANY , _ ( " Type: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2017-10-26 17:54:53 +00:00
m_staticText4 - > Wrap ( - 1 ) ;
fgSizer3 - > Add ( m_staticText4 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
m_modelType = new wxComboBox ( m_model , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 , NULL , wxCB_READONLY ) ;
2017-10-26 17:54:53 +00:00
fgSizer3 - > Add ( m_modelType , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2020-05-23 07:48:05 +00:00
m_staticTextNote = new wxStaticText ( m_model , wxID_ANY , _ ( " Note: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextNote - > Wrap ( - 1 ) ;
fgSizer3 - > Add ( m_staticTextNote , 0 , wxALL , 5 ) ;
m_stInfoNote = new wxStaticText ( m_model , wxID_ANY , _ ( " note " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_stInfoNote - > Wrap ( - 1 ) ;
fgSizer3 - > Add ( m_stInfoNote , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2017-10-26 21:59:56 +00:00
bSizer6 - > Add ( fgSizer3 , 0 , wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
m_libraryContents = new wxStyledTextCtrl ( m_model , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 , wxEmptyString ) ;
m_libraryContents - > SetUseTabs ( false ) ;
m_libraryContents - > SetTabWidth ( 4 ) ;
m_libraryContents - > SetIndent ( 4 ) ;
m_libraryContents - > SetTabIndents ( true ) ;
m_libraryContents - > SetBackSpaceUnIndents ( true ) ;
m_libraryContents - > SetViewEOL ( false ) ;
m_libraryContents - > SetViewWhiteSpace ( false ) ;
m_libraryContents - > SetMarginWidth ( 2 , 0 ) ;
m_libraryContents - > SetIndentationGuides ( false ) ;
m_libraryContents - > SetMarginWidth ( 1 , 0 ) ;
m_libraryContents - > SetMarginType ( 0 , wxSTC_MARGIN_NUMBER ) ;
m_libraryContents - > SetMarginWidth ( 0 , m_libraryContents - > TextWidth ( wxSTC_STYLE_LINENUMBER , wxT ( " _99999 " ) ) ) ;
2020-05-23 07:48:05 +00:00
{
wxFont font = wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_TELETYPE , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_NORMAL , false , wxEmptyString ) ;
m_libraryContents - > StyleSetFont ( wxSTC_STYLE_DEFAULT , font ) ;
}
2019-11-21 10:28:43 +00:00
m_libraryContents - > MarkerDefine ( wxSTC_MARKNUM_FOLDER , wxSTC_MARK_BOXPLUS ) ;
m_libraryContents - > MarkerSetBackground ( wxSTC_MARKNUM_FOLDER , wxColour ( wxT ( " BLACK " ) ) ) ;
m_libraryContents - > MarkerSetForeground ( wxSTC_MARKNUM_FOLDER , wxColour ( wxT ( " WHITE " ) ) ) ;
m_libraryContents - > MarkerDefine ( wxSTC_MARKNUM_FOLDEROPEN , wxSTC_MARK_BOXMINUS ) ;
m_libraryContents - > MarkerSetBackground ( wxSTC_MARKNUM_FOLDEROPEN , wxColour ( wxT ( " BLACK " ) ) ) ;
m_libraryContents - > MarkerSetForeground ( wxSTC_MARKNUM_FOLDEROPEN , wxColour ( wxT ( " WHITE " ) ) ) ;
m_libraryContents - > MarkerDefine ( wxSTC_MARKNUM_FOLDERSUB , wxSTC_MARK_EMPTY ) ;
m_libraryContents - > MarkerDefine ( wxSTC_MARKNUM_FOLDEREND , wxSTC_MARK_BOXPLUS ) ;
m_libraryContents - > MarkerSetBackground ( wxSTC_MARKNUM_FOLDEREND , wxColour ( wxT ( " BLACK " ) ) ) ;
m_libraryContents - > MarkerSetForeground ( wxSTC_MARKNUM_FOLDEREND , wxColour ( wxT ( " WHITE " ) ) ) ;
m_libraryContents - > MarkerDefine ( wxSTC_MARKNUM_FOLDEROPENMID , wxSTC_MARK_BOXMINUS ) ;
m_libraryContents - > MarkerSetBackground ( wxSTC_MARKNUM_FOLDEROPENMID , wxColour ( wxT ( " BLACK " ) ) ) ;
m_libraryContents - > MarkerSetForeground ( wxSTC_MARKNUM_FOLDEROPENMID , wxColour ( wxT ( " WHITE " ) ) ) ;
m_libraryContents - > MarkerDefine ( wxSTC_MARKNUM_FOLDERMIDTAIL , wxSTC_MARK_EMPTY ) ;
m_libraryContents - > MarkerDefine ( wxSTC_MARKNUM_FOLDERTAIL , wxSTC_MARK_EMPTY ) ;
m_libraryContents - > SetSelBackground ( true , wxSystemSettings : : GetColour ( wxSYS_COLOUR_HIGHLIGHT ) ) ;
m_libraryContents - > SetSelForeground ( true , wxSystemSettings : : GetColour ( wxSYS_COLOUR_HIGHLIGHTTEXT ) ) ;
2020-05-23 07:48:05 +00:00
m_libraryContents - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_TELETYPE , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_NORMAL , false , wxEmptyString ) ) ;
2019-11-21 10:28:43 +00:00
bSizer6 - > Add ( m_libraryContents , 1 , wxEXPAND | wxALL , 5 ) ;
2017-10-26 21:59:56 +00:00
m_model - > SetSizer ( bSizer6 ) ;
2017-10-26 17:54:53 +00:00
m_model - > Layout ( ) ;
2017-10-26 21:59:56 +00:00
bSizer6 - > Fit ( m_model ) ;
2017-12-24 15:04:02 +00:00
m_notebook - > AddPage ( m_model , _ ( " Model " ) , false ) ;
2016-08-11 12:41:40 +00:00
m_power = new wxPanel ( m_notebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
2016-08-20 15:25:51 +00:00
m_power - > SetMinSize ( wxSize ( 650 , - 1 ) ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
wxBoxSizer * bSizer4 ;
bSizer4 = new wxBoxSizer ( wxVERTICAL ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:42:09 +00:00
wxStaticBoxSizer * sbSizer1 ;
2020-10-23 01:59:37 +00:00
sbSizer1 = new wxStaticBoxSizer ( new wxStaticBox ( m_power , wxID_ANY , _ ( " DC/AC Analysis " ) ) , wxVERTICAL ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
wxFlexGridSizer * fgSizer6 ;
2018-04-23 19:23:07 +00:00
fgSizer6 = new wxFlexGridSizer ( 0 , 6 , 0 , 0 ) ;
2016-08-15 07:53:15 +00:00
fgSizer6 - > AddGrowableCol ( 1 ) ;
fgSizer6 - > AddGrowableCol ( 3 ) ;
2016-08-11 12:41:40 +00:00
fgSizer6 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer6 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText10 = new wxStaticText ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " DC: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText10 - > Wrap ( - 1 ) ;
fgSizer6 - > Add ( m_staticText10 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:42:09 +00:00
m_genDc = new wxTextCtrl ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_genDc - > SetMinSize ( wxSize ( 60 , - 1 ) ) ;
2019-11-21 10:28:43 +00:00
2016-08-15 07:53:15 +00:00
fgSizer6 - > Add ( m_genDc , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText113 = new wxStaticText ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText113 - > Wrap ( - 1 ) ;
fgSizer6 - > Add ( m_staticText113 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
fgSizer6 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:42:09 +00:00
fgSizer6 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:42:09 +00:00
fgSizer6 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText11 = new wxStaticText ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " AC magnitude: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText11 - > Wrap ( - 1 ) ;
fgSizer6 - > Add ( m_staticText11 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:42:09 +00:00
m_genAcMag = new wxTextCtrl ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_genAcMag - > SetMinSize ( wxSize ( 60 , - 1 ) ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
fgSizer6 - > Add ( m_genAcMag , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText111 = new wxStaticText ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText111 - > Wrap ( - 1 ) ;
fgSizer6 - > Add ( m_staticText111 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText12 = new wxStaticText ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " AC phase: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText12 - > Wrap ( - 1 ) ;
2018-04-23 19:23:07 +00:00
fgSizer6 - > Add ( m_staticText12 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:42:09 +00:00
m_genAcPhase = new wxTextCtrl ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_genAcPhase - > SetMinSize ( wxSize ( 60 , - 1 ) ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
fgSizer6 - > Add ( m_genAcPhase , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText112 = new wxStaticText ( sbSizer1 - > GetStaticBox ( ) , wxID_ANY , _ ( " radians " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText112 - > Wrap ( - 1 ) ;
fgSizer6 - > Add ( m_staticText112 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:42:09 +00:00
sbSizer1 - > Add ( fgSizer6 , 1 , wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-20 15:25:51 +00:00
bSizer4 - > Add ( sbSizer1 , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:42:09 +00:00
wxStaticBoxSizer * sbSizer3 ;
2020-10-23 01:59:37 +00:00
sbSizer3 = new wxStaticBoxSizer ( new wxStaticBox ( m_power , wxID_ANY , _ ( " Transient Analysis " ) ) , wxVERTICAL ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:42:09 +00:00
m_powerNotebook = new wxNotebook ( sbSizer3 - > GetStaticBox ( ) , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_pwrPulse = new wxPanel ( m_powerNotebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
wxFlexGridSizer * fgSizer7 ;
2018-04-23 19:23:07 +00:00
fgSizer7 = new wxFlexGridSizer ( 0 , 3 , 0 , 0 ) ;
2016-08-15 07:53:15 +00:00
fgSizer7 - > AddGrowableCol ( 1 ) ;
2016-08-11 12:41:40 +00:00
fgSizer7 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer7 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText13 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " Initial value: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText13 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText13 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pulseInit = new wxTextCtrl ( m_pwrPulse , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:42:09 +00:00
m_pulseInit - > SetMinSize ( wxSize ( 100 , - 1 ) ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
fgSizer7 - > Add ( m_pulseInit , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText131 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText131 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText131 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText14 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " Pulsed value: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText14 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText14 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pulseNominal = new wxTextCtrl ( m_pwrPulse , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer7 - > Add ( m_pulseNominal , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText132 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText132 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText132 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText15 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " Delay time: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText15 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText15 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pulseDelay = new wxTextCtrl ( m_pwrPulse , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer7 - > Add ( m_pulseDelay , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText133 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText133 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText133 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText16 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " Rise time: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText16 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText16 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pulseRise = new wxTextCtrl ( m_pwrPulse , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer7 - > Add ( m_pulseRise , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText134 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText134 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText134 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText17 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " Fall time: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText17 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText17 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pulseFall = new wxTextCtrl ( m_pwrPulse , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer7 - > Add ( m_pulseFall , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText135 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText135 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText135 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText18 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " Pulse width: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText18 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText18 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pulseWidth = new wxTextCtrl ( m_pwrPulse , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer7 - > Add ( m_pulseWidth , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText136 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText136 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText136 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText20 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " Period: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText20 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText20 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pulsePeriod = new wxTextCtrl ( m_pwrPulse , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer7 - > Add ( m_pulsePeriod , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText137 = new wxStaticText ( m_pwrPulse , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText137 - > Wrap ( - 1 ) ;
fgSizer7 - > Add ( m_staticText137 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pwrPulse - > SetSizer ( fgSizer7 ) ;
m_pwrPulse - > Layout ( ) ;
fgSizer7 - > Fit ( m_pwrPulse ) ;
2016-08-20 15:25:51 +00:00
m_powerNotebook - > AddPage ( m_pwrPulse , _ ( " Pulse " ) , true ) ;
2016-08-11 12:41:40 +00:00
m_pwrSin = new wxPanel ( m_powerNotebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
wxFlexGridSizer * fgSizer8 ;
2018-04-23 19:23:07 +00:00
fgSizer8 = new wxFlexGridSizer ( 0 , 3 , 0 , 0 ) ;
2016-08-15 07:53:15 +00:00
fgSizer8 - > AddGrowableCol ( 1 ) ;
2016-08-11 12:41:40 +00:00
fgSizer8 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer8 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText21 = new wxStaticText ( m_pwrSin , wxID_ANY , _ ( " DC offset: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText21 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText21 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_sinOffset = new wxTextCtrl ( m_pwrSin , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:42:09 +00:00
m_sinOffset - > SetMinSize ( wxSize ( 100 , - 1 ) ) ;
2019-11-21 10:28:43 +00:00
2016-08-15 07:53:15 +00:00
fgSizer8 - > Add ( m_sinOffset , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText211 = new wxStaticText ( m_pwrSin , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText211 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText211 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText22 = new wxStaticText ( m_pwrSin , wxID_ANY , _ ( " Amplitude: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText22 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText22 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_sinAmplitude = new wxTextCtrl ( m_pwrSin , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer8 - > Add ( m_sinAmplitude , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText212 = new wxStaticText ( m_pwrSin , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText212 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText212 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText23 = new wxStaticText ( m_pwrSin , wxID_ANY , _ ( " Frequency: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText23 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText23 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_sinFreq = new wxTextCtrl ( m_pwrSin , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer8 - > Add ( m_sinFreq , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText213 = new wxStaticText ( m_pwrSin , wxID_ANY , _ ( " Hz " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText213 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText213 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText24 = new wxStaticText ( m_pwrSin , wxID_ANY , _ ( " Delay: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText24 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText24 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_sinDelay = new wxTextCtrl ( m_pwrSin , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer8 - > Add ( m_sinDelay , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText214 = new wxStaticText ( m_pwrSin , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText214 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText214 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText25 = new wxStaticText ( m_pwrSin , wxID_ANY , _ ( " Damping factor: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText25 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText25 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_sinDampFactor = new wxTextCtrl ( m_pwrSin , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer8 - > Add ( m_sinDampFactor , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText215 = new wxStaticText ( m_pwrSin , wxID_ANY , _ ( " 1/seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText215 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText215 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pwrSin - > SetSizer ( fgSizer8 ) ;
m_pwrSin - > Layout ( ) ;
fgSizer8 - > Fit ( m_pwrSin ) ;
m_powerNotebook - > AddPage ( m_pwrSin , _ ( " Sinusoidal " ) , false ) ;
m_pwrExp = new wxPanel ( m_powerNotebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
wxFlexGridSizer * fgSizer9 ;
2018-04-23 19:23:07 +00:00
fgSizer9 = new wxFlexGridSizer ( 0 , 3 , 0 , 0 ) ;
2016-08-15 07:53:15 +00:00
fgSizer9 - > AddGrowableCol ( 1 ) ;
2016-08-11 12:41:40 +00:00
fgSizer9 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer9 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText26 = new wxStaticText ( m_pwrExp , wxID_ANY , _ ( " Initial value: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText26 - > Wrap ( - 1 ) ;
fgSizer9 - > Add ( m_staticText26 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_expInit = new wxTextCtrl ( m_pwrExp , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:42:09 +00:00
m_expInit - > SetMinSize ( wxSize ( 100 , - 1 ) ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
fgSizer9 - > Add ( m_expInit , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText261 = new wxStaticText ( m_pwrExp , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText261 - > Wrap ( - 1 ) ;
fgSizer9 - > Add ( m_staticText261 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText27 = new wxStaticText ( m_pwrExp , wxID_ANY , _ ( " Pulsed value: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText27 - > Wrap ( - 1 ) ;
fgSizer9 - > Add ( m_staticText27 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_expPulsed = new wxTextCtrl ( m_pwrExp , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer9 - > Add ( m_expPulsed , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText262 = new wxStaticText ( m_pwrExp , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText262 - > Wrap ( - 1 ) ;
fgSizer9 - > Add ( m_staticText262 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText28 = new wxStaticText ( m_pwrExp , wxID_ANY , _ ( " Rise delay time: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText28 - > Wrap ( - 1 ) ;
fgSizer9 - > Add ( m_staticText28 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_expRiseDelay = new wxTextCtrl ( m_pwrExp , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer9 - > Add ( m_expRiseDelay , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText263 = new wxStaticText ( m_pwrExp , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText263 - > Wrap ( - 1 ) ;
fgSizer9 - > Add ( m_staticText263 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText29 = new wxStaticText ( m_pwrExp , wxID_ANY , _ ( " Rise time constant: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText29 - > Wrap ( - 1 ) ;
fgSizer9 - > Add ( m_staticText29 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_expRiseConst = new wxTextCtrl ( m_pwrExp , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer9 - > Add ( m_expRiseConst , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText264 = new wxStaticText ( m_pwrExp , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText264 - > Wrap ( - 1 ) ;
fgSizer9 - > Add ( m_staticText264 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText30 = new wxStaticText ( m_pwrExp , wxID_ANY , _ ( " Fall delay time: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText30 - > Wrap ( - 1 ) ;
fgSizer9 - > Add ( m_staticText30 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_expFallDelay = new wxTextCtrl ( m_pwrExp , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer9 - > Add ( m_expFallDelay , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText265 = new wxStaticText ( m_pwrExp , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText265 - > Wrap ( - 1 ) ;
fgSizer9 - > Add ( m_staticText265 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText31 = new wxStaticText ( m_pwrExp , wxID_ANY , _ ( " Fall time constant: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText31 - > Wrap ( - 1 ) ;
fgSizer9 - > Add ( m_staticText31 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_expFallConst = new wxTextCtrl ( m_pwrExp , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer9 - > Add ( m_expFallConst , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText266 = new wxStaticText ( m_pwrExp , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText266 - > Wrap ( - 1 ) ;
fgSizer9 - > Add ( m_staticText266 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pwrExp - > SetSizer ( fgSizer9 ) ;
m_pwrExp - > Layout ( ) ;
fgSizer9 - > Fit ( m_pwrExp ) ;
2016-08-20 15:25:51 +00:00
m_powerNotebook - > AddPage ( m_pwrExp , _ ( " Exponential " ) , false ) ;
2016-08-11 12:41:40 +00:00
m_pwrPwl = new wxPanel ( m_powerNotebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
m_pwrPwl - > SetToolTip ( _ ( " Piece-wise linear " ) ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
wxFlexGridSizer * fgSizer15 ;
fgSizer15 = new wxFlexGridSizer ( 0 , 2 , 0 , 0 ) ;
fgSizer15 - > AddGrowableCol ( 0 ) ;
fgSizer15 - > AddGrowableRow ( 1 ) ;
fgSizer15 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer15 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_ALL ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
wxFlexGridSizer * fgSizer10 ;
2018-04-23 19:23:07 +00:00
fgSizer10 = new wxFlexGridSizer ( 0 , 3 , 0 , 0 ) ;
2016-08-15 07:53:15 +00:00
fgSizer10 - > AddGrowableCol ( 1 ) ;
2016-08-11 12:41:40 +00:00
fgSizer10 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer10 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText34 = new wxStaticText ( m_pwrPwl , wxID_ANY , _ ( " Time: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText34 - > Wrap ( - 1 ) ;
fgSizer10 - > Add ( m_staticText34 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pwlTime = new wxTextCtrl ( m_pwrPwl , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:42:09 +00:00
m_pwlTime - > SetMinSize ( wxSize ( 100 , - 1 ) ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
fgSizer10 - > Add ( m_pwlTime , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText342 = new wxStaticText ( m_pwrPwl , wxID_ANY , _ ( " second " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText342 - > Wrap ( - 1 ) ;
fgSizer10 - > Add ( m_staticText342 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText35 = new wxStaticText ( m_pwrPwl , wxID_ANY , _ ( " Value: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2016-08-11 12:41:40 +00:00
m_staticText35 - > Wrap ( - 1 ) ;
fgSizer10 - > Add ( m_staticText35 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pwlValue = new wxTextCtrl ( m_pwrPwl , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer10 - > Add ( m_pwlValue , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2018-04-23 19:23:07 +00:00
m_staticText343 = new wxStaticText ( m_pwrPwl , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText343 - > Wrap ( - 1 ) ;
fgSizer10 - > Add ( m_staticText343 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
fgSizer15 - > Add ( fgSizer10 , 1 , wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pwlAddButton = new wxButton ( m_pwrPwl , wxID_ANY , _ ( " Add " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer15 - > Add ( m_pwlAddButton , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pwlValList = new wxListCtrl ( m_pwrPwl , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLC_REPORT | wxLC_SINGLE_SEL ) ;
m_pwlValList - > SetMinSize ( wxSize ( 200 , - 1 ) ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
fgSizer15 - > Add ( m_pwlValList , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pwlRemoveBtn = new wxButton ( m_pwrPwl , wxID_ANY , _ ( " Remove " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer15 - > Add ( m_pwlRemoveBtn , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_pwrPwl - > SetSizer ( fgSizer15 ) ;
m_pwrPwl - > Layout ( ) ;
fgSizer15 - > Fit ( m_pwrPwl ) ;
2016-08-11 12:42:09 +00:00
m_powerNotebook - > AddPage ( m_pwrPwl , _ ( " Piece-wise Linear " ) , false ) ;
2016-08-11 12:41:40 +00:00
m_pwrFm = new wxPanel ( m_powerNotebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
2020-03-23 16:49:21 +00:00
wxFlexGridSizer * fgSizer11 ;
fgSizer11 = new wxFlexGridSizer ( 0 , 3 , 0 , 0 ) ;
fgSizer11 - > AddGrowableCol ( 1 ) ;
fgSizer11 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer11 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
m_staticText138 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " Offset: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText138 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText138 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_fmOffset = new wxTextCtrl ( m_pwrFm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_fmOffset - > SetMinSize ( wxSize ( 100 , - 1 ) ) ;
fgSizer11 - > Add ( m_fmOffset , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText1311 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1311 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText1311 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_staticText141 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " Amplitude: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText141 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText141 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_fmAmplitude = new wxTextCtrl ( m_pwrFm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer11 - > Add ( m_fmAmplitude , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText1321 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1321 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText1321 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_staticText151 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " Carrier frequency: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText151 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText151 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_fmFcarrier = new wxTextCtrl ( m_pwrFm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer11 - > Add ( m_fmFcarrier , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText1331 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " Hertz " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1331 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText1331 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_staticText161 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " Modulation index: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText161 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText161 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_fmModIndex = new wxTextCtrl ( m_pwrFm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer11 - > Add ( m_fmModIndex , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText1341 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " - " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1341 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText1341 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_staticText171 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " Signal frequency: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText171 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText171 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_fmFsignal = new wxTextCtrl ( m_pwrFm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer11 - > Add ( m_fmFsignal , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText1351 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " Hertz " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1351 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText1351 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_staticText181 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " Carrier phase: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText181 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText181 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_fmPhaseC = new wxTextCtrl ( m_pwrFm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer11 - > Add ( m_fmPhaseC , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText1361 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " degrees " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1361 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText1361 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_staticText201 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " Signal phase: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText201 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText201 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_fmPhaseS = new wxTextCtrl ( m_pwrFm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer11 - > Add ( m_fmPhaseS , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText1371 = new wxStaticText ( m_pwrFm , wxID_ANY , _ ( " degrees " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1371 - > Wrap ( - 1 ) ;
fgSizer11 - > Add ( m_staticText1371 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_pwrFm - > SetSizer ( fgSizer11 ) ;
m_pwrFm - > Layout ( ) ;
fgSizer11 - > Fit ( m_pwrFm ) ;
2016-08-11 12:41:40 +00:00
m_powerNotebook - > AddPage ( m_pwrFm , _ ( " FM " ) , false ) ;
m_pwrAm = new wxPanel ( m_powerNotebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
2020-03-23 16:49:21 +00:00
wxFlexGridSizer * fgSizer12 ;
fgSizer12 = new wxFlexGridSizer ( 0 , 3 , 0 , 0 ) ;
fgSizer12 - > AddGrowableCol ( 1 ) ;
fgSizer12 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer12 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
m_staticText1381 = new wxStaticText ( m_pwrAm , wxID_ANY , _ ( " Amplitude: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1381 - > Wrap ( - 1 ) ;
fgSizer12 - > Add ( m_staticText1381 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_amAmplitude = new wxTextCtrl ( m_pwrAm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_amAmplitude - > SetMinSize ( wxSize ( 100 , - 1 ) ) ;
fgSizer12 - > Add ( m_amAmplitude , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText13111 = new wxStaticText ( m_pwrAm , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText13111 - > Wrap ( - 1 ) ;
fgSizer12 - > Add ( m_staticText13111 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_staticText1411 = new wxStaticText ( m_pwrAm , wxID_ANY , _ ( " Offset: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1411 - > Wrap ( - 1 ) ;
fgSizer12 - > Add ( m_staticText1411 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_amOffset = new wxTextCtrl ( m_pwrAm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer12 - > Add ( m_amOffset , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText13211 = new wxStaticText ( m_pwrAm , wxID_ANY , _ ( " Volts/Amps " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText13211 - > Wrap ( - 1 ) ;
fgSizer12 - > Add ( m_staticText13211 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_staticText1511 = new wxStaticText ( m_pwrAm , wxID_ANY , _ ( " Modulating frequency: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1511 - > Wrap ( - 1 ) ;
fgSizer12 - > Add ( m_staticText1511 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_amModulatingFreq = new wxTextCtrl ( m_pwrAm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer12 - > Add ( m_amModulatingFreq , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText13311 = new wxStaticText ( m_pwrAm , wxID_ANY , _ ( " Hertz " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText13311 - > Wrap ( - 1 ) ;
fgSizer12 - > Add ( m_staticText13311 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_staticText1611 = new wxStaticText ( m_pwrAm , wxID_ANY , _ ( " Carrier frequency: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1611 - > Wrap ( - 1 ) ;
fgSizer12 - > Add ( m_staticText1611 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_amCarrierFreq = new wxTextCtrl ( m_pwrAm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer12 - > Add ( m_amCarrierFreq , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText13411 = new wxStaticText ( m_pwrAm , wxID_ANY , _ ( " Hertz " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText13411 - > Wrap ( - 1 ) ;
fgSizer12 - > Add ( m_staticText13411 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_staticText1711 = new wxStaticText ( m_pwrAm , wxID_ANY , _ ( " Signal delay: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1711 - > Wrap ( - 1 ) ;
fgSizer12 - > Add ( m_staticText1711 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_amSignalDelay = new wxTextCtrl ( m_pwrAm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer12 - > Add ( m_amSignalDelay , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText13511 = new wxStaticText ( m_pwrAm , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText13511 - > Wrap ( - 1 ) ;
fgSizer12 - > Add ( m_staticText13511 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_staticText1811 = new wxStaticText ( m_pwrAm , wxID_ANY , _ ( " Carrier phase: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText1811 - > Wrap ( - 1 ) ;
fgSizer12 - > Add ( m_staticText1811 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_amPhase = new wxTextCtrl ( m_pwrAm , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer12 - > Add ( m_amPhase , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText13611 = new wxStaticText ( m_pwrAm , wxID_ANY , _ ( " degrees " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText13611 - > Wrap ( - 1 ) ;
fgSizer12 - > Add ( m_staticText13611 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_pwrAm - > SetSizer ( fgSizer12 ) ;
m_pwrAm - > Layout ( ) ;
fgSizer12 - > Fit ( m_pwrAm ) ;
2016-08-11 12:41:40 +00:00
m_powerNotebook - > AddPage ( m_pwrAm , _ ( " AM " ) , false ) ;
m_pwrTransNoise = new wxPanel ( m_powerNotebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
m_pwrTransNoise - > Hide ( ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_powerNotebook - > AddPage ( m_pwrTransNoise , _ ( " Transient noise " ) , false ) ;
m_pwrRandom = new wxPanel ( m_powerNotebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
2020-03-23 16:49:21 +00:00
wxFlexGridSizer * fgSizer13 ;
fgSizer13 = new wxFlexGridSizer ( 0 , 3 , 0 , 0 ) ;
fgSizer13 - > AddGrowableCol ( 1 ) ;
fgSizer13 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer13 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
m_staticText27111 = new wxStaticText ( m_pwrRandom , wxID_ANY , _ ( " Type: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText27111 - > Wrap ( - 1 ) ;
fgSizer13 - > Add ( m_staticText27111 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
wxString m_rnTypeChoices [ ] = { _ ( " Uniform " ) , _ ( " Gaussian " ) , _ ( " Exponential " ) , _ ( " Poisson " ) } ;
int m_rnTypeNChoices = sizeof ( m_rnTypeChoices ) / sizeof ( wxString ) ;
m_rnType = new wxChoice ( m_pwrRandom , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_rnTypeNChoices , m_rnTypeChoices , 0 ) ;
m_rnType - > SetSelection ( 0 ) ;
fgSizer13 - > Add ( m_rnType , 0 , wxALL | wxEXPAND , 5 ) ;
fgSizer13 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_staticText26711 = new wxStaticText ( m_pwrRandom , wxID_ANY , _ ( " Individual value duration: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText26711 - > Wrap ( - 1 ) ;
fgSizer13 - > Add ( m_staticText26711 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_rnTS = new wxTextCtrl ( m_pwrRandom , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer13 - > Add ( m_rnTS , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText262111 = new wxStaticText ( m_pwrRandom , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText262111 - > Wrap ( - 1 ) ;
fgSizer13 - > Add ( m_staticText262111 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_staticText28111 = new wxStaticText ( m_pwrRandom , wxID_ANY , _ ( " Time delay: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText28111 - > Wrap ( - 1 ) ;
fgSizer13 - > Add ( m_staticText28111 , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_rnTD = new wxTextCtrl ( m_pwrRandom , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer13 - > Add ( m_rnTD , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticText263111 = new wxStaticText ( m_pwrRandom , wxID_ANY , _ ( " seconds " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText263111 - > Wrap ( - 1 ) ;
fgSizer13 - > Add ( m_staticText263111 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT , 5 ) ;
m_rnParam1Text = new wxStaticText ( m_pwrRandom , wxID_ANY , _ ( " Range: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_rnParam1Text - > Wrap ( - 1 ) ;
fgSizer13 - > Add ( m_rnParam1Text , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_rnParam1 = new wxTextCtrl ( m_pwrRandom , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer13 - > Add ( m_rnParam1 , 0 , wxALL | wxEXPAND , 5 ) ;
fgSizer13 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_rnParam2Text = new wxStaticText ( m_pwrRandom , wxID_ANY , _ ( " Offset: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_rnParam2Text - > Wrap ( - 1 ) ;
fgSizer13 - > Add ( m_rnParam2Text , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_rnParam2 = new wxTextCtrl ( m_pwrRandom , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer13 - > Add ( m_rnParam2 , 0 , wxALL | wxEXPAND , 5 ) ;
fgSizer13 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_pwrRandom - > SetSizer ( fgSizer13 ) ;
m_pwrRandom - > Layout ( ) ;
fgSizer13 - > Fit ( m_pwrRandom ) ;
2016-08-11 12:41:40 +00:00
m_powerNotebook - > AddPage ( m_pwrRandom , _ ( " Random " ) , false ) ;
m_pwrExtData = new wxPanel ( m_powerNotebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
m_pwrExtData - > Hide ( ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_powerNotebook - > AddPage ( m_pwrExtData , _ ( " External data " ) , false ) ;
2019-11-21 10:28:43 +00:00
2016-08-20 15:25:51 +00:00
sbSizer3 - > Add ( m_powerNotebook , 0 , wxEXPAND | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-20 15:25:51 +00:00
bSizer4 - > Add ( sbSizer3 , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
wxString m_pwrTypeChoices [ ] = { _ ( " Voltage " ) , _ ( " Current " ) } ;
int m_pwrTypeNChoices = sizeof ( m_pwrTypeChoices ) / sizeof ( wxString ) ;
2020-11-14 12:39:45 +00:00
m_pwrType = new wxRadioBox ( m_power , wxID_ANY , _ ( " Source Type " ) , wxDefaultPosition , wxDefaultSize , m_pwrTypeNChoices , m_pwrTypeChoices , 1 , wxRA_SPECIFY_ROWS ) ;
2018-04-23 19:23:07 +00:00
m_pwrType - > SetSelection ( 1 ) ;
2016-08-11 12:41:40 +00:00
bSizer4 - > Add ( m_pwrType , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_power - > SetSizer ( bSizer4 ) ;
m_power - > Layout ( ) ;
bSizer4 - > Fit ( m_power ) ;
2020-11-14 12:39:45 +00:00
m_notebook - > AddPage ( m_power , _ ( " Source " ) , false ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
bSizer1 - > Add ( m_notebook , 1 , wxEXPAND | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-09-19 16:48:07 +00:00
m_staticline2 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bSizer1 - > Add ( m_staticline2 , 0 , wxEXPAND | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2017-12-24 15:04:02 +00:00
m_disabled = new wxCheckBox ( this , wxID_ANY , _ ( " Disable symbol for simulation " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-11-23 09:16:52 +00:00
bSizer1 - > Add ( m_disabled , 0 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
wxBoxSizer * bSizer2 ;
bSizer2 = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_nodeSeqCheck = new wxCheckBox ( this , wxID_ANY , _ ( " Alternate node sequence: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer2 - > Add ( m_nodeSeqCheck , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_nodeSeqVal = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_nodeSeqVal - > SetMinSize ( wxSize ( 200 , - 1 ) ) ;
2019-11-21 10:28:43 +00:00
2016-08-15 07:53:15 +00:00
bSizer2 - > Add ( m_nodeSeqVal , 1 , wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
bSizer1 - > Add ( bSizer2 , 0 , wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-09-19 16:48:07 +00:00
m_staticline3 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bSizer1 - > Add ( m_staticline3 , 0 , wxEXPAND | wxALL , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
m_sdbSizer = new wxStdDialogButtonSizer ( ) ;
m_sdbSizerOK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer - > AddButton ( m_sdbSizerOK ) ;
m_sdbSizerCancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer - > AddButton ( m_sdbSizerCancel ) ;
m_sdbSizer - > Realize ( ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
bSizer1 - > Add ( m_sdbSizer , 0 , wxALL | wxEXPAND , 5 ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
this - > SetSizer ( bSizer1 ) ;
this - > Layout ( ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
this - > Centre ( wxBOTH ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
// Connect Events
2016-08-20 15:25:51 +00:00
this - > Connect ( wxEVT_INIT_DIALOG , wxInitDialogEventHandler ( DIALOG_SPICE_MODEL_BASE : : onInitDlg ) ) ;
2017-10-26 17:54:53 +00:00
m_selectLibrary - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onSelectLibrary ) , NULL , this ) ;
m_modelName - > Connect ( wxEVT_COMMAND_COMBOBOX_SELECTED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onModelSelected ) , NULL , this ) ;
m_modelName - > Connect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onModelSelected ) , NULL , this ) ;
2020-05-23 07:48:05 +00:00
m_modelType - > Connect ( wxEVT_COMMAND_COMBOBOX_SELECTED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onTypeSelected ) , NULL , this ) ;
2016-08-11 12:41:40 +00:00
m_pwlAddButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onPwlAdd ) , NULL , this ) ;
m_pwlRemoveBtn - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onPwlRemove ) , NULL , this ) ;
2020-03-23 16:49:21 +00:00
m_rnType - > Connect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onRandomSourceType ) , NULL , this ) ;
2016-08-11 12:41:40 +00:00
}
DIALOG_SPICE_MODEL_BASE : : ~ DIALOG_SPICE_MODEL_BASE ( )
{
// Disconnect Events
2016-08-20 15:25:51 +00:00
this - > Disconnect ( wxEVT_INIT_DIALOG , wxInitDialogEventHandler ( DIALOG_SPICE_MODEL_BASE : : onInitDlg ) ) ;
2017-10-26 17:54:53 +00:00
m_selectLibrary - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onSelectLibrary ) , NULL , this ) ;
m_modelName - > Disconnect ( wxEVT_COMMAND_COMBOBOX_SELECTED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onModelSelected ) , NULL , this ) ;
m_modelName - > Disconnect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onModelSelected ) , NULL , this ) ;
2020-05-23 07:48:05 +00:00
m_modelType - > Disconnect ( wxEVT_COMMAND_COMBOBOX_SELECTED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onTypeSelected ) , NULL , this ) ;
2016-08-11 12:41:40 +00:00
m_pwlAddButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onPwlAdd ) , NULL , this ) ;
m_pwlRemoveBtn - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onPwlRemove ) , NULL , this ) ;
2020-03-23 16:49:21 +00:00
m_rnType - > Disconnect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( DIALOG_SPICE_MODEL_BASE : : onRandomSourceType ) , NULL , this ) ;
2019-11-21 10:28:43 +00:00
2016-08-11 12:41:40 +00:00
}