12PANEL_SPACEMOUSE_BASE::PANEL_SPACEMOUSE_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
RESETTABLE_PANEL( parent, id, pos, size, style,
name )
15 bSizer10 =
new wxBoxSizer( wxVERTICAL );
18 bSizer1 =
new wxBoxSizer( wxVERTICAL );
20 m_panRotateLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Pan and Rotate"), wxDefaultPosition, wxDefaultSize, 0 );
24 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
28 bSizer8 =
new wxBoxSizer( wxVERTICAL );
31 m_gbSizer->SetFlexibleDirection( wxBOTH );
32 m_gbSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
33 m_gbSizer->SetEmptyCellSize( wxSize( -1,16 ) );
35 m_rotationSpeedLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Rotation speed:"), wxDefaultPosition, wxDefaultSize, 0 );
39 m_rotationSpeed =
new wxSlider(
this, wxID_ANY, 5, 1, 10, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL );
40 m_rotationSpeed->SetToolTip(
_(
"How far to zoom in for each rotation of the mouse wheel") );
43 m_gbSizer->Add(
m_rotationSpeed, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_BOTTOM|wxRIGHT|wxLEFT, 5 );
45 m_checkEnablePanH =
new wxCheckBox(
this, wxID_ANY,
_(
"Reverse rotation direction"), wxDefaultPosition, wxDefaultSize, 0 );
50 m_panSpeedLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Pan speed:"), wxDefaultPosition, wxDefaultSize, 0 );
54 m_autoPanSpeed =
new wxSlider(
this, wxID_ANY, 5, 1, 10, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL );
55 m_autoPanSpeed->SetToolTip(
_(
"How fast to pan when moving an object off the edge of the screen") );
58 m_gbSizer->Add(
m_autoPanSpeed, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_BOTTOM|wxRIGHT|wxLEFT, 5 );
60 m_reverseY =
new wxCheckBox(
this, wxID_ANY,
_(
"Reverse vertical pan direction"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_gbSizer->Add(
m_reverseY, wxGBPosition( 4, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
63 m_reverseX =
new wxCheckBox(
this, wxID_ANY,
_(
"Reverse horizontal pan direction"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_gbSizer->Add(
m_reverseX, wxGBPosition( 5, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxTOP, 3 );
66 m_reverseZ =
new wxCheckBox(
this, wxID_ANY,
_(
"Reverse zoom direction"), wxDefaultPosition, wxDefaultSize, 0 );
67 m_gbSizer->Add(
m_reverseZ, wxGBPosition( 7, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
74 bSizer8->Add(
m_gbSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
77 bSizer1->Add( bSizer8, 0, wxEXPAND|wxRIGHT, 10 );
80 bSizer10->Add( bSizer1, 1, 0, 5 );
83 this->SetSizer( bSizer10 );
85 bSizer10->Fit(
this );