2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2019-05-27 18:43:39 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Dec 1 2018)
|
2013-05-26 04:36:44 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2017-12-26 14:38:45 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_netlist_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
BEGIN_EVENT_TABLE( NETLIST_DIALOG_BASE, DIALOG_SHIM )
|
|
|
|
EVT_NOTEBOOK_PAGE_CHANGED( ID_CHANGE_NOTEBOOK_PAGE, NETLIST_DIALOG_BASE::_wxFB_OnNetlistTypeSelection )
|
|
|
|
EVT_BUTTON( ID_CREATE_NETLIST, NETLIST_DIALOG_BASE::_wxFB_GenNetlist )
|
|
|
|
EVT_BUTTON( wxID_CANCEL, NETLIST_DIALOG_BASE::_wxFB_OnCancelClick )
|
2019-05-27 18:43:39 +00:00
|
|
|
EVT_BUTTON( ID_ADD_PLUGIN, NETLIST_DIALOG_BASE::_wxFB_OnAddGenerator )
|
|
|
|
EVT_BUTTON( ID_DEL_PLUGIN, NETLIST_DIALOG_BASE::_wxFB_OnDelGenerator )
|
2013-05-26 04:36:44 +00:00
|
|
|
END_EVENT_TABLE()
|
|
|
|
|
|
|
|
NETLIST_DIALOG_BASE::NETLIST_DIALOG_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* bUpperSizer;
|
|
|
|
bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* bRightSizer;
|
|
|
|
bRightSizer = new wxBoxSizer( wxVERTICAL );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
m_NoteBook = new wxNotebook( this, ID_CHANGE_NOTEBOOK_PAGE, wxDefaultPosition, wxDefaultSize, 0 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
bRightSizer->Add( m_NoteBook, 1, wxEXPAND | wxALL, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
|
|
|
|
2018-02-09 18:00:13 +00:00
|
|
|
bUpperSizer->Add( bRightSizer, 5, wxEXPAND, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* bLeftSizer;
|
|
|
|
bLeftSizer = new wxBoxSizer( wxVERTICAL );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
bLeftSizer->Add( 0, 0, 0, wxTOP, 15 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2018-02-09 18:00:13 +00:00
|
|
|
m_buttonNetlist = new wxButton( this, ID_CREATE_NETLIST, _("Generate Netlist"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-06-15 13:54:58 +00:00
|
|
|
bLeftSizer->Add( m_buttonNetlist, 0, wxALL|wxEXPAND, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2018-02-09 18:00:13 +00:00
|
|
|
m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-06-15 13:54:58 +00:00
|
|
|
bLeftSizer->Add( m_buttonCancel, 0, wxALL|wxEXPAND, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
m_buttonAddGenerator = new wxButton( this, ID_ADD_PLUGIN, _("Add Generator..."), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bLeftSizer->Add( m_buttonAddGenerator, 0, wxALL|wxEXPAND, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
m_buttonDelGenerator = new wxButton( this, ID_DEL_PLUGIN, _("Remove Generator..."), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bLeftSizer->Add( m_buttonDelGenerator, 0, wxALL|wxEXPAND, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
bLeftSizer->Add( 0, 0, 1, wxBOTTOM, 10 );
|
|
|
|
|
|
|
|
|
2018-02-09 18:00:13 +00:00
|
|
|
bUpperSizer->Add( bLeftSizer, 2, wxEXPAND, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
bMainSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
2017-12-26 14:38:45 +00:00
|
|
|
bMainSizer->Fit( this );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
this->Centre( wxBOTH );
|
|
|
|
}
|
|
|
|
|
|
|
|
NETLIST_DIALOG_BASE::~NETLIST_DIALOG_BASE()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
BEGIN_EVENT_TABLE( NETLIST_DIALOG_ADD_GENERATOR_BASE, DIALOG_SHIM )
|
|
|
|
EVT_BUTTON( wxID_BROWSE_PLUGINS, NETLIST_DIALOG_ADD_GENERATOR_BASE::_wxFB_OnBrowseGenerators )
|
|
|
|
EVT_BUTTON( wxID_CANCEL, NETLIST_DIALOG_ADD_GENERATOR_BASE::_wxFB_OnCancelClick )
|
|
|
|
EVT_BUTTON( wxID_OK, NETLIST_DIALOG_ADD_GENERATOR_BASE::_wxFB_OnOKClick )
|
2013-05-26 04:36:44 +00:00
|
|
|
END_EVENT_TABLE()
|
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
NETLIST_DIALOG_ADD_GENERATOR_BASE::NETLIST_DIALOG_ADD_GENERATOR_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
2013-05-26 04:36:44 +00:00
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* bSizerMain;
|
2019-05-27 18:43:39 +00:00
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
wxBoxSizer* bSizerTop;
|
|
|
|
bSizerTop = new wxBoxSizer( wxVERTICAL );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
m_staticTextCmd = new wxStaticText( this, wxID_ANY, _("Command line to run the generator:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextCmd->Wrap( -1 );
|
2019-05-27 18:43:39 +00:00
|
|
|
bSizerTop->Add( m_staticTextCmd, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
m_textCtrlCommand = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_textCtrlCommand->SetMinSize( wxSize( 300,-1 ) );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
bSizerTop->Add( m_textCtrlCommand, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextName = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextName->Wrap( -1 );
|
2019-05-27 18:43:39 +00:00
|
|
|
bSizerTop->Add( m_staticTextName, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
m_textCtrlName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2019-05-27 18:43:39 +00:00
|
|
|
bSizerTop->Add( m_textCtrlName, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
bSizerTop->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
bSizerMain->Add( bSizerTop, 1, wxEXPAND, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
wxBoxSizer* bSizerBottom;
|
|
|
|
bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
m_buttonGenerator = new wxButton( this, wxID_BROWSE_PLUGINS, _("Browse Generators"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerBottom->Add( m_buttonGenerator, 0, wxALL|wxEXPAND, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2019-05-27 18:43:39 +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-01-08 12:26:36 +00:00
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
bSizerBottom->Add( m_sdbSizer, 1, wxEXPAND, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
bSizerMain->Add( bSizerBottom, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2019-01-08 12:26:36 +00:00
|
|
|
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
2019-01-08 12:26:36 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
this->Centre( wxBOTH );
|
|
|
|
}
|
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
NETLIST_DIALOG_ADD_GENERATOR_BASE::~NETLIST_DIALOG_ADD_GENERATOR_BASE()
|
2013-05-26 04:36:44 +00:00
|
|
|
{
|
|
|
|
}
|