2020-05-17 00:19:48 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "panel_mouse_settings_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2020-07-21 23:13:43 +00:00
|
|
|
PANEL_MOUSE_SETTINGS_BASE::PANEL_MOUSE_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 )
|
2020-05-17 00:19:48 +00:00
|
|
|
{
|
|
|
|
wxBoxSizer* bSizer1;
|
|
|
|
bSizer1 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxStaticBoxSizer* sbSizer1;
|
|
|
|
sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pan and Zoom") ), wxVERTICAL );
|
|
|
|
|
|
|
|
wxGridBagSizer* gbSizer1;
|
2020-05-28 20:34:24 +00:00
|
|
|
gbSizer1 = new wxGridBagSizer( 0, 0 );
|
2020-05-28 22:07:16 +00:00
|
|
|
gbSizer1->SetFlexibleDirection( wxBOTH );
|
2020-05-17 00:19:48 +00:00
|
|
|
gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
|
|
|
m_checkZoomCenter = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Center and warp cursor on zoom"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_checkZoomCenter->SetToolTip( _("Center the cursor on screen when zooming.") );
|
|
|
|
|
2020-05-28 17:10:52 +00:00
|
|
|
gbSizer1->Add( m_checkZoomCenter, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
2020-05-28 20:34:24 +00:00
|
|
|
|
|
|
|
gbSizer1->Add( 30, 0, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
|
|
|
|
|
2020-05-17 00:19:48 +00:00
|
|
|
m_checkAutoPan = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Automatically pan while moving object"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_checkAutoPan->SetToolTip( _("When drawing a track or moving an item, pan when approaching the edge of the display.") );
|
|
|
|
|
2020-05-28 20:34:24 +00:00
|
|
|
gbSizer1->Add( m_checkAutoPan, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_checkZoomAcceleration = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Use zoom acceleration"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_checkZoomAcceleration->SetToolTip( _("Zoom faster when scrolling quickly") );
|
|
|
|
|
2020-05-28 22:07:16 +00:00
|
|
|
gbSizer1->Add( m_checkZoomAcceleration, wxGBPosition( 1, 0 ), wxGBSpan( 1, 3 ), wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
2020-05-28 21:16:23 +00:00
|
|
|
m_zoomSizer = new wxBoxSizer( wxHORIZONTAL );
|
2020-05-28 17:10:52 +00:00
|
|
|
|
2020-05-17 00:19:48 +00:00
|
|
|
m_staticText1 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Zoom speed:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText1->Wrap( -1 );
|
2020-05-28 22:07:16 +00:00
|
|
|
m_zoomSizer->Add( m_staticText1, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 8 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_zoomSpeed = new wxSlider( sbSizer1->GetStaticBox(), wxID_ANY, 5, 1, 10, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL );
|
|
|
|
m_zoomSpeed->Enable( false );
|
|
|
|
m_zoomSpeed->SetToolTip( _("How far to zoom in for each rotation of the mouse wheel") );
|
2021-01-11 11:48:51 +00:00
|
|
|
m_zoomSpeed->SetMinSize( wxSize( 120,-1 ) );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
2021-01-11 11:48:51 +00:00
|
|
|
m_zoomSizer->Add( m_zoomSpeed, 1, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 0 );
|
2020-05-28 17:10:52 +00:00
|
|
|
|
|
|
|
m_checkAutoZoomSpeed = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Automatic"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_checkAutoZoomSpeed->SetValue(true);
|
|
|
|
m_checkAutoZoomSpeed->SetToolTip( _("Pick the zoom speed automatically") );
|
|
|
|
|
2020-05-28 22:07:16 +00:00
|
|
|
m_zoomSizer->Add( m_checkAutoZoomSpeed, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 10 );
|
2020-05-28 17:10:52 +00:00
|
|
|
|
|
|
|
|
2020-05-28 21:16:23 +00:00
|
|
|
gbSizer1->Add( m_zoomSizer, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxEXPAND|wxTOP, 5 );
|
2020-05-28 17:10:52 +00:00
|
|
|
|
2020-05-28 21:16:23 +00:00
|
|
|
m_panSizer = new wxBoxSizer( wxHORIZONTAL );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_staticText22 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Auto pan speed:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText22->Wrap( -1 );
|
2020-05-28 22:07:16 +00:00
|
|
|
m_panSizer->Add( m_staticText22, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 8 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_autoPanSpeed = new wxSlider( sbSizer1->GetStaticBox(), wxID_ANY, 5, 1, 10, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL );
|
|
|
|
m_autoPanSpeed->SetToolTip( _("How fast to pan when moving an object off the edge of the screen") );
|
2021-01-11 11:48:51 +00:00
|
|
|
m_autoPanSpeed->SetMinSize( wxSize( 120,-1 ) );
|
2020-05-28 20:34:24 +00:00
|
|
|
|
2021-01-11 11:48:51 +00:00
|
|
|
m_panSizer->Add( m_autoPanSpeed, 1, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 0 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
|
2020-05-28 21:16:23 +00:00
|
|
|
gbSizer1->Add( m_panSizer, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxEXPAND|wxTOP, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
|
2021-01-11 11:48:51 +00:00
|
|
|
gbSizer1->AddGrowableCol( 0 );
|
2020-05-28 20:34:24 +00:00
|
|
|
gbSizer1->AddGrowableCol( 1 );
|
2021-01-11 11:48:51 +00:00
|
|
|
gbSizer1->AddGrowableCol( 2 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
2020-05-28 20:34:24 +00:00
|
|
|
sbSizer1->Add( gbSizer1, 1, wxEXPAND|wxRIGHT, 10 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizer1->Add( sbSizer1, 0, wxALL|wxEXPAND, 10 );
|
|
|
|
|
|
|
|
wxStaticBoxSizer* sbSizer2;
|
2021-01-11 11:48:51 +00:00
|
|
|
sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Drag Gestures") ), wxVERTICAL );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
wxFlexGridSizer* fgSizer1;
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer1 = new wxFlexGridSizer( 0, 3, 5, 5 );
|
|
|
|
fgSizer1->AddGrowableCol( 2 );
|
2020-05-17 00:19:48 +00:00
|
|
|
fgSizer1->SetFlexibleDirection( wxHORIZONTAL );
|
|
|
|
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
2021-01-11 11:48:51 +00:00
|
|
|
m_leftButtonDragLabel = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Left button drag:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_leftButtonDragLabel->Wrap( -1 );
|
|
|
|
fgSizer1->Add( m_leftButtonDragLabel, 0, wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
wxString m_choiceLeftButtonDragChoices[] = { _("Draw selection rectangle"), _("Drag selected objects; otherwise draw selection rectangle"), _("Drag any object (selected or not)") };
|
|
|
|
int m_choiceLeftButtonDragNChoices = sizeof( m_choiceLeftButtonDragChoices ) / sizeof( wxString );
|
|
|
|
m_choiceLeftButtonDrag = new wxChoice( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceLeftButtonDragNChoices, m_choiceLeftButtonDragChoices, 0 );
|
|
|
|
m_choiceLeftButtonDrag->SetSelection( 0 );
|
|
|
|
fgSizer1->Add( m_choiceLeftButtonDrag, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
2020-05-17 00:19:48 +00:00
|
|
|
m_staticText3 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Middle button drag:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText3->Wrap( -1 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer1->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
wxString m_choiceMiddleButtonDragChoices[] = { _("Pan"), _("Zoom"), _("None") };
|
|
|
|
int m_choiceMiddleButtonDragNChoices = sizeof( m_choiceMiddleButtonDragChoices ) / sizeof( wxString );
|
|
|
|
m_choiceMiddleButtonDrag = new wxChoice( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMiddleButtonDragNChoices, m_choiceMiddleButtonDragChoices, 0 );
|
|
|
|
m_choiceMiddleButtonDrag->SetSelection( 0 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer1->Add( m_choiceMiddleButtonDrag, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_staticText31 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Right button drag:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText31->Wrap( -1 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer1->Add( m_staticText31, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
wxString m_choiceRightButtonDragChoices[] = { _("Pan"), _("Zoom"), _("None") };
|
|
|
|
int m_choiceRightButtonDragNChoices = sizeof( m_choiceRightButtonDragChoices ) / sizeof( wxString );
|
|
|
|
m_choiceRightButtonDrag = new wxChoice( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceRightButtonDragNChoices, m_choiceRightButtonDragChoices, 0 );
|
|
|
|
m_choiceRightButtonDrag->SetSelection( 0 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer1->Add( m_choiceRightButtonDrag, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
|
2021-01-09 12:57:18 +00:00
|
|
|
sbSizer2->Add( fgSizer1, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
|
2021-01-09 12:57:18 +00:00
|
|
|
bSizer1->Add( sbSizer2, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
wxStaticBoxSizer* sbSizer3;
|
2021-03-01 14:11:39 +00:00
|
|
|
sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Scroll Gestures") ), wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerLeft;
|
|
|
|
bSizerLeft = new wxBoxSizer( wxVERTICAL );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
2021-02-24 05:07:17 +00:00
|
|
|
wxBoxSizer* bSizer4;
|
|
|
|
bSizer4 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2021-01-11 11:48:51 +00:00
|
|
|
m_staticText21 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Vertical touchpad or scroll wheel movement:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-05-17 00:19:48 +00:00
|
|
|
m_staticText21->Wrap( -1 );
|
2021-02-24 05:07:17 +00:00
|
|
|
bSizer4->Add( m_staticText21, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
|
|
|
|
|
|
|
|
m_scrollWarning = new wxStaticBitmap( sbSizer3->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_scrollWarning->SetToolTip( _("Only one action can be assigned to each column") );
|
|
|
|
|
2021-03-01 14:11:39 +00:00
|
|
|
bSizer4->Add( m_scrollWarning, 0, wxRIGHT|wxLEFT, 5 );
|
2021-02-24 05:07:17 +00:00
|
|
|
|
|
|
|
|
2021-03-01 14:11:39 +00:00
|
|
|
bSizerLeft->Add( bSizer4, 1, wxEXPAND, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
wxFlexGridSizer* fgSizer2;
|
2021-03-01 14:11:39 +00:00
|
|
|
fgSizer2 = new wxFlexGridSizer( 0, 5, 8, 0 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->AddGrowableCol( 0 );
|
|
|
|
fgSizer2->SetFlexibleDirection( wxBOTH );
|
2020-05-17 00:19:48 +00:00
|
|
|
fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
2021-01-09 12:57:18 +00:00
|
|
|
m_staticText19 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2020-05-17 00:19:48 +00:00
|
|
|
m_staticText19->Wrap( -1 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_staticText19, 0, wxALIGN_RIGHT|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
2021-01-11 11:48:51 +00:00
|
|
|
m_staticText17 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("--"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-05-17 00:19:48 +00:00
|
|
|
m_staticText17->Wrap( -1 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_staticText17, 0, wxTOP|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_lblCtrl = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Ctrl"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_lblCtrl->Wrap( -1 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_lblCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_staticText8 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Shift"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText8->Wrap( -1 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_staticText8, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_lblAlt = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Alt"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_lblAlt->Wrap( -1 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_lblAlt, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_staticText10 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Zoom:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText10->Wrap( -1 );
|
2021-03-01 14:11:39 +00:00
|
|
|
fgSizer2->Add( m_staticText10, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_rbZoomNone = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_rbZoomNone, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_rbZoomCtrl = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_rbZoomCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_rbZoomShift = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_rbZoomShift, 0, wxALIGN_CENTER_HORIZONTAL|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_rbZoomAlt = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_rbZoomAlt, 0, wxALIGN_CENTER_HORIZONTAL|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
2021-01-09 12:57:18 +00:00
|
|
|
m_staticText11 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Pan up/down:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-05-17 00:19:48 +00:00
|
|
|
m_staticText11->Wrap( -1 );
|
2021-03-01 14:11:39 +00:00
|
|
|
fgSizer2->Add( m_staticText11, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_rbPanVNone = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_rbPanVNone, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_rbPanVCtrl = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_rbPanVCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_rbPanVShift = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_rbPanVShift, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_rbPanVAlt = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_rbPanVAlt, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
2021-01-09 12:57:18 +00:00
|
|
|
m_staticText20 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Pan left/right:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-05-17 00:19:48 +00:00
|
|
|
m_staticText20->Wrap( -1 );
|
2021-03-01 14:11:39 +00:00
|
|
|
fgSizer2->Add( m_staticText20, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_rbPanHNone = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_rbPanHNone, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_rbPanHCtrl = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_rbPanHCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_rbPanHShift = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_rbPanHShift, 0, wxALIGN_CENTER_HORIZONTAL|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
m_rbPanHAlt = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2021-01-11 11:48:51 +00:00
|
|
|
fgSizer2->Add( m_rbPanHAlt, 0, wxALIGN_CENTER_HORIZONTAL|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
|
2021-03-01 14:11:39 +00:00
|
|
|
fgSizer2->Add( 0, 10, 1, wxEXPAND, 5 );
|
2021-01-11 11:48:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
fgSizer2->Add( 42, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer2->Add( 42, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer2->Add( 42, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer2->Add( 42, 0, 1, wxEXPAND, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
|
2021-03-01 14:11:39 +00:00
|
|
|
bSizerLeft->Add( fgSizer2, 0, wxRIGHT|wxLEFT, 24 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
2021-01-09 12:57:18 +00:00
|
|
|
m_checkEnablePanH = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Pan left/right with horizontal movement"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-05-17 00:19:48 +00:00
|
|
|
m_checkEnablePanH->SetToolTip( _("Pan the canvas left and right when scrolling left to right on the touchpad") );
|
|
|
|
|
2021-03-01 14:11:39 +00:00
|
|
|
bSizerLeft->Add( m_checkEnablePanH, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
sbSizer3->Add( bSizerLeft, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerRight;
|
|
|
|
bSizerRight = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
m_mouseDefaults = new wxButton( sbSizer3->GetStaticBox(), wxID_ANY, _("Reset to Mouse Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerRight->Add( m_mouseDefaults, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
m_trackpadDefaults = new wxButton( sbSizer3->GetStaticBox(), wxID_ANY, _("Reset to Trackpad Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerRight->Add( m_trackpadDefaults, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
sbSizer3->Add( bSizerRight, 0, wxEXPAND, 5 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
|
2021-01-11 11:48:51 +00:00
|
|
|
bSizer1->Add( sbSizer3, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizer1 );
|
|
|
|
this->Layout();
|
2021-01-11 11:48:51 +00:00
|
|
|
bSizer1->Fit( this );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
// Connect Events
|
|
|
|
m_rbZoomNone->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbZoomCtrl->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbZoomShift->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbZoomAlt->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanVNone->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanVCtrl->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanVShift->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanVAlt->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanHNone->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanHCtrl->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanHShift->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanHAlt->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
2021-03-01 14:11:39 +00:00
|
|
|
m_mouseDefaults->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::onMouseDefaults ), NULL, this );
|
|
|
|
m_trackpadDefaults->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::onTrackpadDefaults ), NULL, this );
|
2020-05-17 00:19:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
PANEL_MOUSE_SETTINGS_BASE::~PANEL_MOUSE_SETTINGS_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_rbZoomNone->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbZoomCtrl->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbZoomShift->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbZoomAlt->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanVNone->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanVCtrl->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanVShift->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanVAlt->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanHNone->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanHCtrl->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanHShift->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
|
|
|
m_rbPanHAlt->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
|
2021-03-01 14:11:39 +00:00
|
|
|
m_mouseDefaults->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::onMouseDefaults ), NULL, this );
|
|
|
|
m_trackpadDefaults->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::onTrackpadDefaults ), NULL, this );
|
2020-05-17 00:19:48 +00:00
|
|
|
|
|
|
|
}
|