2013-06-14 14:59:52 +00:00
///////////////////////////////////////////////////////////////////////////
2020-08-17 22:34:02 +00:00
// C++ code generated with wxFormBuilder (version Oct 26 2018)
2013-06-14 14:59:52 +00:00
// http://www.wxformbuilder.org/
//
2017-12-26 14:38:45 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2013-06-14 14:59:52 +00:00
///////////////////////////////////////////////////////////////////////////
# include "dialog_bom_base.h"
///////////////////////////////////////////////////////////////////////////
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 )
{
2017-12-26 14:38:45 +00:00
this - > SetSizeHints ( wxSize ( - 1 , - 1 ) , wxDefaultSize ) ;
2019-01-14 12:14:13 +00:00
2013-06-14 14:59:52 +00:00
wxBoxSizer * bMainSizer ;
bMainSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-01-14 12:14:13 +00:00
2013-06-14 14:59:52 +00:00
wxBoxSizer * bUpperSizer ;
bUpperSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-01-14 12:14:13 +00:00
2013-06-14 14:59:52 +00:00
wxBoxSizer * bLeftSizer ;
bLeftSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-01-14 12:14:13 +00:00
2019-05-27 18:43:39 +00:00
m_staticTextGeneratorTitle = new wxStaticText ( this , wxID_ANY , _ ( " BOM generator scripts: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextGeneratorTitle - > Wrap ( - 1 ) ;
bLeftSizer - > Add ( m_staticTextGeneratorTitle , 0 , wxTOP , 5 ) ;
2019-01-14 12:14:13 +00:00
2019-05-27 18:43:39 +00:00
m_lbGenerators = new wxListBox ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 , NULL , 0 ) ;
m_lbGenerators - > SetMinSize ( wxSize ( 250 , - 1 ) ) ;
2019-01-14 12:14:13 +00:00
2019-05-27 18:43:39 +00:00
bLeftSizer - > Add ( m_lbGenerators , 1 , wxEXPAND , 5 ) ;
2019-01-14 12:14:13 +00:00
2018-06-28 20:21:42 +00:00
bUpperSizer - > Add ( bLeftSizer , 1 , wxEXPAND | wxRIGHT | wxLEFT , 10 ) ;
2019-01-14 12:14:13 +00:00
2018-06-28 20:21:42 +00:00
wxBoxSizer * bRightSizer ;
bRightSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-01-14 12:14:13 +00:00
2018-06-28 20:21:42 +00:00
wxBoxSizer * bNameSizer ;
bNameSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-01-14 12:14:13 +00:00
2019-05-27 18:43:39 +00:00
m_staticTextName = new wxStaticText ( this , wxID_ANY , _ ( " Generator nickname: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-06-14 14:59:52 +00:00
m_staticTextName - > Wrap ( - 1 ) ;
2018-06-28 20:21:42 +00:00
bNameSizer - > Add ( m_staticTextName , 0 , wxALIGN_CENTER_VERTICAL , 5 ) ;
2019-01-14 12:14:13 +00:00
2013-06-14 14:59:52 +00:00
m_textCtrlName = new wxTextCtrl ( this , IN_NAMELINE , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-06-28 20:21:42 +00:00
bNameSizer - > Add ( m_textCtrlName , 1 , wxEXPAND | wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
2019-01-14 12:14:13 +00:00
2018-06-28 20:21:42 +00:00
bRightSizer - > Add ( bNameSizer , 0 , wxEXPAND | wxTOP | wxLEFT , 6 ) ;
2019-01-14 12:14:13 +00:00
2018-06-28 20:21:42 +00:00
m_Messages = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_MULTILINE | wxTE_READONLY ) ;
m_Messages - > SetMinSize ( wxSize ( 300 , 200 ) ) ;
2019-01-14 12:14:13 +00:00
2018-06-28 20:21:42 +00:00
bRightSizer - > Add ( m_Messages , 1 , wxEXPAND | wxLEFT , 5 ) ;
2019-01-14 12:14:13 +00:00
2018-08-01 19:08:12 +00:00
bUpperSizer - > Add ( bRightSizer , 2 , wxEXPAND | wxRIGHT | wxTOP , 10 ) ;
2019-01-14 12:14:13 +00:00
2018-07-17 21:14:02 +00:00
bMainSizer - > Add ( bUpperSizer , 2 , wxEXPAND | wxALL , 5 ) ;
2019-01-14 12:14:13 +00:00
2019-05-27 18:43:39 +00:00
wxBoxSizer * bGeneratorButtons ;
bGeneratorButtons = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-01-14 12:14:13 +00:00
2020-06-03 17:46:50 +00:00
m_buttonAddGenerator = new wxBitmapButton ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxSize ( - 1 , - 1 ) , wxBU_AUTODRAW | 0 ) ;
2019-05-27 18:43:39 +00:00
m_buttonAddGenerator - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_NORMAL , false , wxEmptyString ) ) ;
m_buttonAddGenerator - > SetToolTip ( _ ( " Add a new BOM generator and its command line to the list " ) ) ;
2019-01-14 12:14:13 +00:00
2019-05-27 18:43:39 +00:00
bGeneratorButtons - > Add ( m_buttonAddGenerator , 0 , wxRIGHT | wxLEFT , 5 ) ;
2019-01-14 12:14:13 +00:00
2020-06-03 17:46:50 +00:00
m_buttonEdit = new wxBitmapButton ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxSize ( - 1 , - 1 ) , wxBU_AUTODRAW | 0 ) ;
2019-05-27 18:43:39 +00:00
m_buttonEdit - > SetToolTip ( _ ( " Edit the script file in the text editor " ) ) ;
2019-01-14 12:14:13 +00:00
2019-05-27 18:43:39 +00:00
bGeneratorButtons - > Add ( m_buttonEdit , 0 , wxRIGHT , 5 ) ;
2019-01-14 12:14:13 +00:00
2020-08-17 22:34:02 +00:00
bGeneratorButtons - > Add ( 20 , 0 , 0 , 0 , 5 ) ;
2019-01-14 12:14:13 +00:00
2020-06-03 17:46:50 +00:00
m_buttonDelGenerator = new wxBitmapButton ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxSize ( - 1 , - 1 ) , wxBU_AUTODRAW | 0 ) ;
2019-05-27 18:43:39 +00:00
m_buttonDelGenerator - > SetToolTip ( _ ( " Remove the current generator script from list " ) ) ;
2019-01-14 12:14:13 +00:00
2019-05-27 18:43:39 +00:00
bGeneratorButtons - > Add ( m_buttonDelGenerator , 0 , wxRIGHT , 5 ) ;
2019-01-14 12:14:13 +00:00
2019-05-27 18:43:39 +00:00
bMainSizer - > Add ( bGeneratorButtons , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 10 ) ;
2019-01-14 12:14:13 +00:00
2013-06-15 18:02:52 +00:00
wxBoxSizer * bbottomSizer ;
bbottomSizer = new wxBoxSizer ( wxVERTICAL ) ;
2019-01-14 12:14:13 +00:00
2019-05-27 18:43:39 +00:00
m_staticTextCmd = new wxStaticText ( this , wxID_ANY , _ ( " Command line running the generator: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-06-15 18:02:52 +00:00
m_staticTextCmd - > Wrap ( - 1 ) ;
2018-07-17 21:14:02 +00:00
bbottomSizer - > Add ( m_staticTextCmd , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-01-14 12:14:13 +00:00
2013-06-15 18:02:52 +00:00
m_textCtrlCommand = new wxTextCtrl ( this , ID_CMDLINE , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_textCtrlCommand - > SetMinSize ( wxSize ( 380 , - 1 ) ) ;
2019-01-14 12:14:13 +00:00
2013-06-15 18:02:52 +00:00
bbottomSizer - > Add ( m_textCtrlCommand , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
2019-01-14 12:14:13 +00:00
2016-03-31 06:28:16 +00:00
m_checkBoxShowConsole = new wxCheckBox ( this , wxID_ANY , _ ( " Show console window " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-05-27 18:43:39 +00:00
m_checkBoxShowConsole - > SetToolTip ( _ ( " By default, command line runs with hidden console window and output is redirected to the info display. \n Set this option to show the window of the running command. " ) ) ;
2019-01-14 12:14:13 +00:00
2018-08-01 19:08:12 +00:00
bbottomSizer - > Add ( m_checkBoxShowConsole , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-01-14 12:14:13 +00:00
2018-06-28 20:21:42 +00:00
bMainSizer - > Add ( bbottomSizer , 0 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 10 ) ;
2019-01-14 12:14:13 +00:00
2019-05-27 18:43:39 +00:00
m_staticline = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bMainSizer - > Add ( m_staticline , 0 , wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
2019-01-14 12:14:13 +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_sdbSizerHelp = new wxButton ( this , wxID_HELP ) ;
m_sdbSizer - > AddButton ( m_sdbSizerHelp ) ;
m_sdbSizer - > Realize ( ) ;
bMainSizer - > Add ( m_sdbSizer , 0 , wxEXPAND | wxALL , 5 ) ;
2013-06-14 14:59:52 +00:00
this - > SetSizer ( bMainSizer ) ;
this - > Layout ( ) ;
2020-06-03 17:46:50 +00:00
bMainSizer - > Fit ( this ) ;
2019-01-14 12:14:13 +00:00
2013-06-14 14:59:52 +00:00
this - > Centre ( wxBOTH ) ;
2019-01-14 12:14:13 +00:00
2018-06-28 20:21:42 +00:00
// Connect Events
this - > Connect ( wxEVT_IDLE , wxIdleEventHandler ( DIALOG_BOM_BASE : : OnIdle ) ) ;
2019-05-27 18:43:39 +00:00
m_lbGenerators - > Connect ( wxEVT_COMMAND_LISTBOX_SELECTED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnGeneratorSelected ) , NULL , this ) ;
2018-06-28 20:21:42 +00:00
m_textCtrlName - > Connect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnNameEdited ) , NULL , this ) ;
2019-05-27 18:43:39 +00:00
m_buttonAddGenerator - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnAddGenerator ) , NULL , this ) ;
m_buttonEdit - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnEditGenerator ) , NULL , this ) ;
m_buttonDelGenerator - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnRemoveGenerator ) , NULL , this ) ;
2018-06-28 20:21:42 +00:00
m_textCtrlCommand - > Connect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnCommandLineEdited ) , NULL , this ) ;
m_checkBoxShowConsole - > Connect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnShowConsoleChanged ) , NULL , this ) ;
2019-01-14 12:14:13 +00:00
m_sdbSizerHelp - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnHelp ) , NULL , this ) ;
2019-05-27 18:43:39 +00:00
m_sdbSizerOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnRunGenerator ) , NULL , this ) ;
2013-06-14 14:59:52 +00:00
}
DIALOG_BOM_BASE : : ~ DIALOG_BOM_BASE ( )
{
2018-08-01 19:08:12 +00:00
// Disconnect Events
this - > Disconnect ( wxEVT_IDLE , wxIdleEventHandler ( DIALOG_BOM_BASE : : OnIdle ) ) ;
2019-05-27 18:43:39 +00:00
m_lbGenerators - > Disconnect ( wxEVT_COMMAND_LISTBOX_SELECTED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnGeneratorSelected ) , NULL , this ) ;
2018-08-01 19:08:12 +00:00
m_textCtrlName - > Disconnect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnNameEdited ) , NULL , this ) ;
2019-05-27 18:43:39 +00:00
m_buttonAddGenerator - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnAddGenerator ) , NULL , this ) ;
m_buttonEdit - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnEditGenerator ) , NULL , this ) ;
m_buttonDelGenerator - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnRemoveGenerator ) , NULL , this ) ;
2018-08-01 19:08:12 +00:00
m_textCtrlCommand - > Disconnect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnCommandLineEdited ) , NULL , this ) ;
m_checkBoxShowConsole - > Disconnect ( wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnShowConsoleChanged ) , NULL , this ) ;
2019-01-14 12:14:13 +00:00
m_sdbSizerHelp - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnHelp ) , NULL , this ) ;
2019-05-27 18:43:39 +00:00
m_sdbSizerOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_BOM_BASE : : OnRunGenerator ) , NULL , this ) ;
2019-01-14 12:14:13 +00:00
2013-06-14 14:59:52 +00:00
}