2013-06-14 14:59:52 +00:00
///////////////////////////////////////////////////////////////////////////
2016-03-31 06:28:16 +00:00
// C++ code generated with wxFormBuilder (version Mar 22 2016)
2013-06-14 14:59:52 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "dialog_bom_base.h"
///////////////////////////////////////////////////////////////////////////
BEGIN_EVENT_TABLE ( DIALOG_BOM_BASE , DIALOG_SHIM )
EVT_LISTBOX ( wxID_ANY , DIALOG_BOM_BASE : : _wxFB_OnPluginSelected )
EVT_TEXT ( IN_NAMELINE , DIALOG_BOM_BASE : : _wxFB_OnNameEdited )
EVT_BUTTON ( ID_CREATE_BOM , DIALOG_BOM_BASE : : _wxFB_OnRunPlugin )
EVT_BUTTON ( wxID_CANCEL , DIALOG_BOM_BASE : : _wxFB_OnCancelClick )
EVT_BUTTON ( ID_HELP , DIALOG_BOM_BASE : : _wxFB_OnHelp )
EVT_BUTTON ( ID_ADD_PLUGIN , DIALOG_BOM_BASE : : _wxFB_OnAddPlugin )
EVT_BUTTON ( ID_REMOVEL_PLUGIN , DIALOG_BOM_BASE : : _wxFB_OnRemovePlugin )
EVT_BUTTON ( wxID_ANY , DIALOG_BOM_BASE : : _wxFB_OnEditPlugin )
2013-06-15 18:02:52 +00:00
EVT_TEXT ( ID_CMDLINE , DIALOG_BOM_BASE : : _wxFB_OnCommandLineEdited )
2016-03-31 06:28:16 +00:00
EVT_CHECKBOX ( wxID_ANY , DIALOG_BOM_BASE : : _wxFB_OnShowConsoleChanged )
2013-06-14 14:59:52 +00:00
END_EVENT_TABLE ( )
DIALOG_BOM_BASE : : DIALOG_BOM_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 ) ;
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bUpperSizer ;
bUpperSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
wxBoxSizer * bLeftSizer ;
bLeftSizer = new wxBoxSizer ( wxVERTICAL ) ;
m_staticTextPluginTitle = new wxStaticText ( this , wxID_ANY , _ ( " Plugins " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextPluginTitle - > Wrap ( - 1 ) ;
bLeftSizer - > Add ( m_staticTextPluginTitle , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
m_lbPlugins = new wxListBox ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 , NULL , 0 ) ;
bLeftSizer - > Add ( m_lbPlugins , 1 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
m_staticTextName = new wxStaticText ( this , wxID_ANY , _ ( " Name: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextName - > Wrap ( - 1 ) ;
bLeftSizer - > Add ( m_staticTextName , 0 , wxRIGHT | wxLEFT , 5 ) ;
m_textCtrlName = new wxTextCtrl ( this , IN_NAMELINE , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
bLeftSizer - > Add ( m_textCtrlName , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
bUpperSizer - > Add ( bLeftSizer , 1 , wxEXPAND , 5 ) ;
wxBoxSizer * bRightSizer ;
bRightSizer = new wxBoxSizer ( wxVERTICAL ) ;
m_buttonNetlist = new wxButton ( this , ID_CREATE_BOM , _ ( " Generate " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonNetlist - > SetDefault ( ) ;
2015-06-15 13:54:58 +00:00
bRightSizer - > Add ( m_buttonNetlist , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2013-06-14 14:59:52 +00:00
m_buttonCancel = new wxButton ( this , wxID_CANCEL , _ ( " Close " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-06-15 13:54:58 +00:00
bRightSizer - > Add ( m_buttonCancel , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2013-06-14 14:59:52 +00:00
m_buttonHelp = new wxButton ( this , ID_HELP , _ ( " Help " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bRightSizer - > Add ( m_buttonHelp , 0 , wxALL | wxEXPAND , 5 ) ;
m_staticline2 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
2015-05-27 09:35:21 +00:00
bRightSizer - > Add ( m_staticline2 , 0 , wxEXPAND | wxALL , 5 ) ;
2013-06-14 14:59:52 +00:00
m_buttonAddPlugin = new wxButton ( this , ID_ADD_PLUGIN , _ ( " Add Plugin " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-06-15 13:54:58 +00:00
bRightSizer - > Add ( m_buttonAddPlugin , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2013-06-14 14:59:52 +00:00
m_buttonDelPlugin = new wxButton ( this , ID_REMOVEL_PLUGIN , _ ( " Remove Plugin " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2015-06-15 13:54:58 +00:00
bRightSizer - > Add ( m_buttonDelPlugin , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2013-06-14 14:59:52 +00:00
2013-06-15 18:02:52 +00:00
m_buttonEdit = new wxButton ( this , wxID_ANY , _ ( " Edit Plugin File " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-06-14 14:59:52 +00:00
bRightSizer - > Add ( m_buttonEdit , 0 , wxALL | wxEXPAND , 5 ) ;
bUpperSizer - > Add ( bRightSizer , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
bMainSizer - > Add ( bUpperSizer , 1 , wxEXPAND , 5 ) ;
2013-06-15 18:02:52 +00:00
wxBoxSizer * bbottomSizer ;
bbottomSizer = new wxBoxSizer ( wxVERTICAL ) ;
m_staticTextCmd = new wxStaticText ( this , wxID_ANY , _ ( " Command line: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextCmd - > Wrap ( - 1 ) ;
bbottomSizer - > Add ( m_staticTextCmd , 0 , wxRIGHT | wxLEFT , 5 ) ;
m_textCtrlCommand = new wxTextCtrl ( this , ID_CMDLINE , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_textCtrlCommand - > SetMinSize ( wxSize ( 380 , - 1 ) ) ;
bbottomSizer - > Add ( m_textCtrlCommand , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2016-03-31 06:28:16 +00:00
m_checkBoxShowConsole = new wxCheckBox ( this , wxID_ANY , _ ( " Show console window " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_checkBoxShowConsole - > Hide ( ) ;
m_checkBoxShowConsole - > SetToolTip ( _ ( " By default, command line runs with hidden console window and output is redirected to \" Plugin info \" field. Set this option to show the window of the running command. " ) ) ;
bbottomSizer - > Add ( m_checkBoxShowConsole , 0 , wxBOTTOM | wxLEFT , 5 ) ;
2013-06-14 14:59:52 +00:00
2013-06-15 18:02:52 +00:00
bMainSizer - > Add ( bbottomSizer , 0 , wxEXPAND , 5 ) ;
2013-06-14 14:59:52 +00:00
2014-12-03 16:22:06 +00:00
m_staticTextInfo = new wxStaticText ( this , wxID_ANY , _ ( " Plugin Info: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextInfo - > Wrap ( - 1 ) ;
bMainSizer - > Add ( m_staticTextInfo , 0 , wxRIGHT | wxLEFT , 5 ) ;
m_Messages = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_MULTILINE | wxTE_READONLY ) ;
bMainSizer - > Add ( m_Messages , 1 , wxALL | wxEXPAND , 5 ) ;
2013-06-14 14:59:52 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
this - > Centre ( wxBOTH ) ;
}
DIALOG_BOM_BASE : : ~ DIALOG_BOM_BASE ( )
{
}