14DIALOG_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 )
 
   16    this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
 
   18    wxBoxSizer* bMainSizer;
 
   19    bMainSizer = 
new wxBoxSizer( wxVERTICAL );
 
   21    wxBoxSizer* bUpperSizer;
 
   22    bUpperSizer = 
new wxBoxSizer( wxHORIZONTAL );
 
   24    wxBoxSizer* bLeftSizer;
 
   25    bLeftSizer = 
new wxBoxSizer( wxVERTICAL );
 
   31    m_lbGenerators = 
new wxListBox( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
 
   37    bUpperSizer->Add( bLeftSizer, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
 
   39    wxBoxSizer* bRightSizer;
 
   40    bRightSizer = 
new wxBoxSizer( wxVERTICAL );
 
   42    wxBoxSizer* bNameSizer;
 
   43    bNameSizer = 
new wxBoxSizer( wxHORIZONTAL );
 
   45    m_staticTextName = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Generator nickname:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   50    bNameSizer->Add( 
m_textCtrlName, 1, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
 
   53    bRightSizer->Add( bNameSizer, 0, wxEXPAND|wxTOP|wxLEFT, 6 );
 
   55    m_Messages = 
new wxTextCtrl( 
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
 
   58    bRightSizer->Add( 
m_Messages, 1, wxEXPAND|wxLEFT, 5 );
 
   61    bUpperSizer->Add( bRightSizer, 2, wxEXPAND|wxRIGHT|wxTOP, 10 );
 
   64    bMainSizer->Add( bUpperSizer, 2, wxEXPAND|wxALL, 5 );
 
   66    wxBoxSizer* bGeneratorButtons;
 
   67    bGeneratorButtons = 
new wxBoxSizer( wxHORIZONTAL );
 
   70    m_buttonAddGenerator->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 
false, wxEmptyString ) );
 
   76    m_buttonEdit->SetToolTip( 
_(
"Edit the script file in the text editor") );
 
   81    bGeneratorButtons->Add( 20, 0, 0, 0, 5 );
 
   89    bMainSizer->Add( bGeneratorButtons, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
 
   91    wxBoxSizer* bbottomSizer;
 
   92    bbottomSizer = 
new wxBoxSizer( wxVERTICAL );
 
   94    m_staticTextCmd = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Command line running the generator:"), wxDefaultPosition, wxDefaultSize, 0 );
 
  103    m_checkBoxShowConsole = 
new wxCheckBox( 
this, wxID_ANY, 
_(
"Show console window"), wxDefaultPosition, wxDefaultSize, 0 );
 
  104    m_checkBoxShowConsole->SetToolTip( 
_(
"By default, command line runs with hidden console window and output is redirected to the info display.\nSet this option to show the window of the running command.") );
 
  109    bMainSizer->Add( bbottomSizer, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
 
  112    bSizer8 = 
new wxBoxSizer( wxHORIZONTAL );
 
  114    m_buttonReset = 
new wxButton( 
this, wxID_ANY, 
_(
"Reset to Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
 
  115    m_buttonReset->SetToolTip( 
_(
"Reset the list of BOM generator scripts to the default settings") );
 
  117    bSizer8->Add( 
m_buttonReset, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 10 );
 
  120    bSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
 
  131    bSizer8->Add( 
m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
 
  134    bMainSizer->Add( bSizer8, 0, wxEXPAND|wxLEFT, 5 );
 
  137    this->SetSizer( bMainSizer );
 
  139    bMainSizer->Fit( 
this );
 
  141    this->Centre( wxBOTH );