12PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE( wxWindow* parent, wxWindowID 
id, 
const wxPoint& pos, 
const wxSize& size, 
long style, 
const wxString& 
name ) : 
RESETTABLE_PANEL( parent, id, pos, size, style, 
name )
 
   14    wxBoxSizer* bMainSizer;
 
   15    bMainSizer = 
new wxBoxSizer( wxVERTICAL );
 
   17    wxBoxSizer* bScrollSizer;
 
   18    bScrollSizer = 
new wxBoxSizer( wxVERTICAL );
 
   20    m_lblScrollHeading = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Scroll Gestures"), wxDefaultPosition, wxDefaultSize, 0 );
 
   24    m_scrollLine = 
new wxStaticLine( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
 
   25    bScrollSizer->Add( 
m_scrollLine, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
 
   27    wxBoxSizer* bScrollMargins;
 
   28    bScrollMargins = 
new wxBoxSizer( wxHORIZONTAL );
 
   30    wxBoxSizer* bScrollSizerLeft;
 
   31    bScrollSizerLeft = 
new wxBoxSizer( wxVERTICAL );
 
   33    m_lblVScrollMovement = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Vertical Touchpad or Scroll Wheel Movement"), wxDefaultPosition, wxDefaultSize, 0 );
 
   38    bScrollSizerLeft->Add( 0, 5, 0, wxEXPAND, 5 );
 
   40    wxFlexGridSizer* fgVScroll;
 
   41    fgVScroll = 
new wxFlexGridSizer( 0, 2, 5, 0 );
 
   42    fgVScroll->AddGrowableCol( 0 );
 
   43    fgVScroll->SetFlexibleDirection( wxBOTH );
 
   44    fgVScroll->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
   46    m_lblVScrollModifier = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Modifier"), wxDefaultPosition, wxDefaultSize, 0 );
 
   50    m_lblVScrollAction = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Action"), wxDefaultPosition, wxDefaultSize, 0 );
 
   58    wxArrayString m_choiceVScrollUnmodifiedChoices;
 
   59    m_choiceVScrollUnmodified = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVScrollUnmodifiedChoices, 0 );
 
   63    m_lblVScrollCtrl = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Ctrl:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   67    wxArrayString m_choiceVScrollCtrlChoices;
 
   68    m_choiceVScrollCtrl = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVScrollCtrlChoices, 0 );
 
   72    m_lblVScrollShift = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Shift:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   76    wxArrayString m_choiceVScrollShiftChoices;
 
   77    m_choiceVScrollShift = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVScrollShiftChoices, 0 );
 
   81    m_lblVScrollAlt = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Alt:"), wxDefaultPosition, wxDefaultSize, 0 );
 
   85    wxArrayString m_choiceVScrollAltChoices;
 
   86    m_choiceVScrollAlt = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVScrollAltChoices, 0 );
 
   91    bScrollSizerLeft->Add( fgVScroll, 0, wxRIGHT|wxLEFT, 24 );
 
   94    bScrollSizerLeft->Add( 0, 20, 0, wxEXPAND, 5 );
 
   96    m_lblHScrollMovement = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Horizontal Touchpad Movement"), wxDefaultPosition, wxDefaultSize, 0 );
 
  101    bScrollSizerLeft->Add( 0, 5, 0, wxEXPAND, 5 );
 
  103    wxFlexGridSizer* fgHScroll;
 
  104    fgHScroll = 
new wxFlexGridSizer( 0, 2, 0, 0 );
 
  105    fgHScroll->AddGrowableCol( 0 );
 
  106    fgHScroll->SetFlexibleDirection( wxBOTH );
 
  107    fgHScroll->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
  109    m_lblHScrollModifier = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Modifier"), wxDefaultPosition, wxDefaultSize, 0 );
 
  113    m_lblHScrollAction = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Action"), wxDefaultPosition, wxDefaultSize, 0 );
 
  117    m_lblHScrollAny = 
new wxStaticText( 
this, wxID_ANY, 
_(
"Any:"), wxDefaultPosition, wxDefaultSize, 0 );
 
  121    wxArrayString m_choiceHScrollChoices;
 
  122    m_choiceHScroll = 
new wxChoice( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceHScrollChoices, 0 );
 
  124    fgHScroll->Add( 
m_choiceHScroll, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
 
  127    bScrollSizerLeft->Add( fgHScroll, 0, wxRIGHT|wxLEFT, 24 );
 
  130    bScrollMargins->Add( bScrollSizerLeft, 1, wxEXPAND|wxLEFT, 5 );
 
  132    wxBoxSizer* bScrollSizerRight;
 
  133    bScrollSizerRight = 
new wxBoxSizer( wxVERTICAL );
 
  135    m_btnMouseDefaults = 
new wxButton( 
this, wxID_ANY, 
_(
"Reset to Mouse Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
 
  138    m_btnTrackpadDefaults = 
new wxButton( 
this, wxID_ANY, 
_(
"Reset to Trackpad Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
 
  142    bScrollMargins->Add( bScrollSizerRight, 0, wxEXPAND|wxLEFT, 50 );
 
  145    bScrollSizer->Add( bScrollMargins, 1, wxEXPAND|wxTOP|wxRIGHT, 10 );
 
  148    bMainSizer->Add( bScrollSizer, 1, wxEXPAND|wxRIGHT, 10 );
 
  151    this->SetSizer( bMainSizer );
 
  153    bMainSizer->Fit( 
this );