14PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE( wxWindow* parent, wxWindowID 
id, 
const wxPoint& pos, 
const wxSize& size, 
long style, 
const wxString& 
name ) : 
RESETTABLE_PANEL( parent, id, pos, size, style, 
name )
 
   16    wxBoxSizer* bSizerMain;
 
   17    bSizerMain = 
new wxBoxSizer( wxVERTICAL );
 
   19    wxBoxSizer* bSizerColumns;
 
   20    bSizerColumns = 
new wxBoxSizer( wxHORIZONTAL );
 
   22    wxBoxSizer* bSizerLeftCol;
 
   23    bSizerLeftCol = 
new wxBoxSizer( wxVERTICAL );
 
   25    m_gridsLabel = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Grids"), wxDefaultPosition, wxDefaultSize, 0 );
 
   27    bSizerLeftCol->Add( 
m_gridsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
 
   29    m_currentGridCtrl = 
new wxListBox( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
 
   34    wxBoxSizer* bSizerGridButtons;
 
   35    bSizerGridButtons = 
new wxBoxSizer( wxHORIZONTAL );
 
   50    bSizerGridButtons->Add( 25, 0, 0, wxEXPAND, 5 );
 
   56    bSizerLeftCol->Add( bSizerGridButtons, 0, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
 
   59    bSizerColumns->Add( bSizerLeftCol, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
 
   62    bSizerColumns->Add( 16, 0, 0, wxEXPAND, 5 );
 
   64    wxBoxSizer* bSizerRightCol;
 
   65    bSizerRightCol = 
new wxBoxSizer( wxVERTICAL );
 
   67    m_staticText21 = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Fast Grid Switching"), wxDefaultPosition, wxDefaultSize, 0 );
 
   71    m_staticline2 = 
new wxStaticLine( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
 
   72    bSizerRightCol->Add( 
m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
 
   74    wxFlexGridSizer* fgSizer3;
 
   75    fgSizer3 = 
new wxFlexGridSizer( 2, 3, 6, 5 );
 
   76    fgSizer3->AddGrowableCol( 1 );
 
   77    fgSizer3->SetFlexibleDirection( wxBOTH );
 
   78    fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
   80    m_staticTextGrid1 = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Grid 1:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   84    wxArrayString m_grid1CtrlChoices;
 
   85    m_grid1Ctrl = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_grid1CtrlChoices, 0 );
 
   87    fgSizer3->Add( 
m_grid1Ctrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
 
   89    m_grid1HotKey = 
new wxStaticText( 
this, wxID_ANY, 
_(
"(hotkey)"), wxDefaultPosition, wxDefaultSize, 0 );
 
   91    fgSizer3->Add( 
m_grid1HotKey, 0, wxALIGN_CENTER_VERTICAL, 5 );
 
   93    m_staticTextGrid2 = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Grid 2:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   95    fgSizer3->Add( 
m_staticTextGrid2, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxLEFT, 8 );
 
   97    wxArrayString m_grid2CtrlChoices;
 
   98    m_grid2Ctrl = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_grid2CtrlChoices, 0 );
 
  100    fgSizer3->Add( 
m_grid2Ctrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
 
  102    m_grid2HotKey = 
new wxStaticText( 
this, wxID_ANY, 
_(
"(hotkey)"), wxDefaultPosition, wxDefaultSize, 0 );
 
  104    fgSizer3->Add( 
m_grid2HotKey, 0, wxALIGN_CENTER_VERTICAL, 5 );
 
  107    bSizerRightCol->Add( fgSizer3, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 10 );
 
  109    m_overridesLabel = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Grid Overrides"), wxDefaultPosition, wxDefaultSize, 0 );
 
  113    m_staticline3 = 
new wxStaticLine( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
 
  114    bSizerRightCol->Add( 
m_staticline3, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
 
  116    wxFlexGridSizer* fgGridOverrides;
 
  117    fgGridOverrides = 
new wxFlexGridSizer( 0, 2, 6, 4 );
 
  118    fgGridOverrides->AddGrowableCol( 1 );
 
  119    fgGridOverrides->SetFlexibleDirection( wxBOTH );
 
  120    fgGridOverrides->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
  125    wxArrayString m_gridOverrideConnectedChoiceChoices;
 
  133    wxArrayString m_gridOverrideWiresChoiceChoices;
 
  134    m_gridOverrideWiresChoice = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideWiresChoiceChoices, 0 );
 
  141    wxArrayString m_gridOverrideViasChoiceChoices;
 
  142    m_gridOverrideViasChoice = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideViasChoiceChoices, 0 );
 
  149    wxArrayString m_gridOverrideTextChoiceChoices;
 
  150    m_gridOverrideTextChoice = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideTextChoiceChoices, 0 );
 
  157    wxArrayString m_gridOverrideGraphicsChoiceChoices;
 
  158    m_gridOverrideGraphicsChoice = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridOverrideGraphicsChoiceChoices, 0 );
 
  163    bSizerRightCol->Add( fgGridOverrides, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 10 );
 
  166    bSizerColumns->Add( bSizerRightCol, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
 
  169    bSizerMain->Add( bSizerColumns, 1, wxEXPAND|wxTOP, 8 );
 
  172    this->SetSizer( bSizerMain );
 
  174    bSizerMain->Fit( 
this );