2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2024-03-12 17:47:24 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
|
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
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2022-11-18 15:27:53 +00:00
|
|
|
#include "widgets/wx_html_report_panel.h"
|
|
|
|
|
2022-12-11 18:14:54 +00:00
|
|
|
#include "dialog_export_netlist_base.h"
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2022-12-11 18:14:54 +00:00
|
|
|
BEGIN_EVENT_TABLE( DIALOG_EXPORT_NETLIST_BASE, DIALOG_SHIM )
|
|
|
|
EVT_NOTEBOOK_PAGE_CHANGED( ID_CHANGE_NOTEBOOK_PAGE, DIALOG_EXPORT_NETLIST_BASE::_wxFB_OnNetlistTypeSelection )
|
|
|
|
EVT_BUTTON( ID_ADD_PLUGIN, DIALOG_EXPORT_NETLIST_BASE::_wxFB_OnAddGenerator )
|
|
|
|
EVT_BUTTON( ID_DEL_PLUGIN, DIALOG_EXPORT_NETLIST_BASE::_wxFB_OnDelGenerator )
|
2013-05-26 04:36:44 +00:00
|
|
|
END_EVENT_TABLE()
|
|
|
|
|
2022-12-11 18:14:54 +00:00
|
|
|
DIALOG_EXPORT_NETLIST_BASE::DIALOG_EXPORT_NETLIST_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 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* bUpperSizer;
|
2019-08-04 21:43:23 +00:00
|
|
|
bUpperSizer = new wxBoxSizer( wxVERTICAL );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
m_NoteBook = new wxNotebook( this, ID_CHANGE_NOTEBOOK_PAGE, wxDefaultPosition, wxDefaultSize, 0 );
|
2019-08-04 21:43:23 +00:00
|
|
|
m_NoteBook->SetMinSize( wxSize( 540,-1 ) );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
|
|
|
|
2022-12-11 18:14:54 +00:00
|
|
|
bUpperSizer->Add( m_NoteBook, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
|
2022-11-18 15:27:53 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizerMsgPanel;
|
|
|
|
bSizerMsgPanel = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
m_MessagesBox = new WX_HTML_REPORT_PANEL( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
2022-12-11 18:14:54 +00:00
|
|
|
m_MessagesBox->SetMinSize( wxSize( 600,150 ) );
|
2022-11-18 15:27:53 +00:00
|
|
|
|
|
|
|
bSizerMsgPanel->Add( m_MessagesBox, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
|
2022-12-11 18:14:54 +00:00
|
|
|
bUpperSizer->Add( bSizerMsgPanel, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
bMainSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2019-08-04 21:43:23 +00:00
|
|
|
m_buttonSizer = new wxBoxSizer( wxHORIZONTAL );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2024-03-12 17:47:24 +00:00
|
|
|
m_buttonAddGenerator = new wxButton( this, ID_ADD_PLUGIN, _("Add Exporter..."), wxDefaultPosition, wxDefaultSize, 0 );
|
2019-08-04 21:43:23 +00:00
|
|
|
m_buttonSizer->Add( m_buttonAddGenerator, 0, wxALL|wxEXPAND, 5 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2024-03-12 17:47:24 +00:00
|
|
|
m_buttonDelGenerator = new wxButton( this, ID_DEL_PLUGIN, _("Remove Exporter"), wxDefaultPosition, wxDefaultSize, 0 );
|
2019-08-04 21:43:23 +00:00
|
|
|
m_buttonSizer->Add( m_buttonDelGenerator, 0, wxALL|wxEXPAND, 5 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2019-08-04 21:43:23 +00:00
|
|
|
m_sdbSizer2 = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizer2OK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer2->AddButton( m_sdbSizer2OK );
|
|
|
|
m_sdbSizer2Cancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer2->AddButton( m_sdbSizer2Cancel );
|
|
|
|
m_sdbSizer2->Realize();
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2019-08-04 21:43:23 +00:00
|
|
|
m_buttonSizer->Add( m_sdbSizer2, 1, wxEXPAND, 5 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
|
|
|
|
2019-08-04 21:43:23 +00:00
|
|
|
bMainSizer->Add( m_buttonSizer, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
|
2021-07-21 21:37:49 +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 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
this->Centre( wxBOTH );
|
|
|
|
}
|
|
|
|
|
2022-12-11 18:14:54 +00:00
|
|
|
DIALOG_EXPORT_NETLIST_BASE::~DIALOG_EXPORT_NETLIST_BASE()
|
2013-05-26 04:36:44 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
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 )
|
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 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* bSizerMain;
|
2019-05-27 18:43:39 +00:00
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
wxBoxSizer* bSizerTop;
|
|
|
|
bSizerTop = new wxBoxSizer( wxVERTICAL );
|
2021-07-21 21:37:49 +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 );
|
2021-07-21 21:37:49 +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 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2024-03-12 17:47:24 +00:00
|
|
|
m_staticTextCmd = new wxStaticText( this, wxID_ANY, _("Command line to run the exporter:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2019-08-04 21:43:23 +00:00
|
|
|
m_staticTextCmd->Wrap( -1 );
|
|
|
|
bSizerTop->Add( m_staticTextCmd, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2019-08-04 21:43:23 +00:00
|
|
|
m_textCtrlCommand = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_textCtrlCommand->SetMinSize( wxSize( 500,-1 ) );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2019-08-04 21:43:23 +00:00
|
|
|
bSizerTop->Add( m_textCtrlCommand, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
|
|
|
|
2019-08-04 21:43:23 +00:00
|
|
|
bSizerMain->Add( bSizerTop, 1, wxEXPAND|wxALL, 5 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
wxBoxSizer* bSizerBottom;
|
|
|
|
bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2024-03-12 17:47:24 +00:00
|
|
|
m_buttonGenerator = new wxButton( this, wxID_BROWSE_PLUGINS, _("Browse Scripts..."), wxDefaultPosition, wxDefaultSize, 0 );
|
2019-05-27 18:43:39 +00:00
|
|
|
bSizerBottom->Add( m_buttonGenerator, 0, wxALL|wxEXPAND, 5 );
|
2021-07-21 21:37:49 +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();
|
2021-07-21 21:37:49 +00:00
|
|
|
|
2019-05-27 18:43:39 +00:00
|
|
|
bSizerBottom->Add( m_sdbSizer, 1, wxEXPAND, 5 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
|
|
|
|
2019-08-04 21:43:23 +00:00
|
|
|
bSizerMain->Add( bSizerBottom, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
|
2021-07-21 21:37:49 +00:00
|
|
|
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
2019-08-04 21:43:23 +00:00
|
|
|
bSizerMain->Fit( this );
|
2021-07-21 21:37:49 +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
|
|
|
{
|
|
|
|
}
|