KiCad PCB EDA Suite
PANEL_MOUSE_SETTINGS_BASE Class Referenceabstract

Class PANEL_MOUSE_SETTINGS_BASE. More...

#include <panel_mouse_settings_base.h>

Inheritance diagram for PANEL_MOUSE_SETTINGS_BASE:
RESETTABLE_PANEL PANEL_MOUSE_SETTINGS

Public Member Functions

 PANEL_MOUSE_SETTINGS_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~PANEL_MOUSE_SETTINGS_BASE ()
 
virtual void ResetPanel ()=0
 Reset the contents of this panel. More...
 
virtual wxString GetResetTooltip ()
 Get the tooltip the reset button should display when showing this panel. More...
 

Protected Member Functions

virtual void OnScrollRadioButton (wxCommandEvent &event)
 
virtual void onMouseDefaults (wxCommandEvent &event)
 
virtual void onTrackpadDefaults (wxCommandEvent &event)
 

Protected Attributes

wxCheckBox * m_checkZoomCenter
 
wxCheckBox * m_checkAutoPan
 
wxCheckBox * m_checkZoomAcceleration
 
wxBoxSizer * m_zoomSizer
 
wxStaticText * m_staticText1
 
wxSlider * m_zoomSpeed
 
wxCheckBox * m_checkAutoZoomSpeed
 
wxBoxSizer * m_panSizer
 
wxStaticText * m_staticText22
 
wxSlider * m_autoPanSpeed
 
wxStaticText * m_leftButtonDragLabel
 
wxChoice * m_choiceLeftButtonDrag
 
wxStaticText * m_staticText3
 
wxChoice * m_choiceMiddleButtonDrag
 
wxStaticText * m_staticText31
 
wxChoice * m_choiceRightButtonDrag
 
wxStaticText * m_staticText21
 
wxStaticBitmap * m_scrollWarning
 
wxStaticText * m_staticText19
 
wxStaticText * m_staticText17
 
wxStaticText * m_lblCtrl
 
wxStaticText * m_staticText8
 
wxStaticText * m_lblAlt
 
wxStaticText * m_staticText10
 
wxRadioButton * m_rbZoomNone
 
wxRadioButton * m_rbZoomCtrl
 
wxRadioButton * m_rbZoomShift
 
wxRadioButton * m_rbZoomAlt
 
wxStaticText * m_staticText11
 
wxRadioButton * m_rbPanVNone
 
wxRadioButton * m_rbPanVCtrl
 
wxRadioButton * m_rbPanVShift
 
wxRadioButton * m_rbPanVAlt
 
wxStaticText * m_staticText20
 
wxRadioButton * m_rbPanHNone
 
wxRadioButton * m_rbPanHCtrl
 
wxRadioButton * m_rbPanHShift
 
wxRadioButton * m_rbPanHAlt
 
wxCheckBox * m_checkEnablePanH
 
wxButton * m_mouseDefaults
 
wxButton * m_trackpadDefaults
 

Detailed Description

Class PANEL_MOUSE_SETTINGS_BASE.

Definition at line 39 of file panel_mouse_settings_base.h.

Constructor & Destructor Documentation

◆ PANEL_MOUSE_SETTINGS_BASE()

PANEL_MOUSE_SETTINGS_BASE::PANEL_MOUSE_SETTINGS_BASE ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize( -1,-1 ),
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxEmptyString 
)

Definition at line 12 of file panel_mouse_settings_base.cpp.

12  : RESETTABLE_PANEL( parent, id, pos, size, style, name )
13 {
14  wxBoxSizer* bSizer1;
15  bSizer1 = new wxBoxSizer( wxVERTICAL );
16 
17  wxStaticBoxSizer* sbSizer1;
18  sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pan and Zoom") ), wxVERTICAL );
19 
20  wxGridBagSizer* gbSizer1;
21  gbSizer1 = new wxGridBagSizer( 0, 0 );
22  gbSizer1->SetFlexibleDirection( wxBOTH );
23  gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
24 
25  m_checkZoomCenter = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Center and warp cursor on zoom"), wxDefaultPosition, wxDefaultSize, 0 );
26  m_checkZoomCenter->SetToolTip( _("Center the cursor on screen when zooming.") );
27 
28  gbSizer1->Add( m_checkZoomCenter, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxBOTTOM|wxRIGHT|wxLEFT, 5 );
29 
30 
31  gbSizer1->Add( 30, 0, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
32 
33  m_checkAutoPan = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Automatically pan while moving object"), wxDefaultPosition, wxDefaultSize, 0 );
34  m_checkAutoPan->SetToolTip( _("When drawing a track or moving an item, pan when approaching the edge of the display.") );
35 
36  gbSizer1->Add( m_checkAutoPan, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxBOTTOM|wxRIGHT|wxLEFT, 5 );
37 
38  m_checkZoomAcceleration = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Use zoom acceleration"), wxDefaultPosition, wxDefaultSize, 0 );
39  m_checkZoomAcceleration->SetToolTip( _("Zoom faster when scrolling quickly") );
40 
41  gbSizer1->Add( m_checkZoomAcceleration, wxGBPosition( 1, 0 ), wxGBSpan( 1, 3 ), wxBOTTOM|wxRIGHT|wxLEFT, 5 );
42 
43  m_zoomSizer = new wxBoxSizer( wxHORIZONTAL );
44 
45  m_staticText1 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Zoom speed:"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_staticText1->Wrap( -1 );
47  m_zoomSizer->Add( m_staticText1, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 8 );
48 
49  m_zoomSpeed = new wxSlider( sbSizer1->GetStaticBox(), wxID_ANY, 5, 1, 10, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL );
50  m_zoomSpeed->Enable( false );
51  m_zoomSpeed->SetToolTip( _("How far to zoom in for each rotation of the mouse wheel") );
52  m_zoomSpeed->SetMinSize( wxSize( 120,-1 ) );
53 
54  m_zoomSizer->Add( m_zoomSpeed, 1, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 0 );
55 
56  m_checkAutoZoomSpeed = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Automatic"), wxDefaultPosition, wxDefaultSize, 0 );
57  m_checkAutoZoomSpeed->SetValue(true);
58  m_checkAutoZoomSpeed->SetToolTip( _("Pick the zoom speed automatically") );
59 
60  m_zoomSizer->Add( m_checkAutoZoomSpeed, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 10 );
61 
62 
63  gbSizer1->Add( m_zoomSizer, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxEXPAND|wxTOP, 5 );
64 
65  m_panSizer = new wxBoxSizer( wxHORIZONTAL );
66 
67  m_staticText22 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Auto pan speed:"), wxDefaultPosition, wxDefaultSize, 0 );
68  m_staticText22->Wrap( -1 );
69  m_panSizer->Add( m_staticText22, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 8 );
70 
71  m_autoPanSpeed = new wxSlider( sbSizer1->GetStaticBox(), wxID_ANY, 5, 1, 10, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL );
72  m_autoPanSpeed->SetToolTip( _("How fast to pan when moving an object off the edge of the screen") );
73  m_autoPanSpeed->SetMinSize( wxSize( 120,-1 ) );
74 
75  m_panSizer->Add( m_autoPanSpeed, 1, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 0 );
76 
77 
78  gbSizer1->Add( m_panSizer, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxEXPAND|wxTOP, 5 );
79 
80 
81  gbSizer1->AddGrowableCol( 0 );
82  gbSizer1->AddGrowableCol( 1 );
83  gbSizer1->AddGrowableCol( 2 );
84 
85  sbSizer1->Add( gbSizer1, 1, wxEXPAND|wxRIGHT, 10 );
86 
87 
88  bSizer1->Add( sbSizer1, 0, wxALL|wxEXPAND, 10 );
89 
90  wxStaticBoxSizer* sbSizer2;
91  sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Drag Gestures") ), wxVERTICAL );
92 
93  wxFlexGridSizer* fgSizer1;
94  fgSizer1 = new wxFlexGridSizer( 0, 3, 5, 5 );
95  fgSizer1->AddGrowableCol( 2 );
96  fgSizer1->SetFlexibleDirection( wxHORIZONTAL );
97  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
98 
99  m_leftButtonDragLabel = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Left button drag:"), wxDefaultPosition, wxDefaultSize, 0 );
100  m_leftButtonDragLabel->Wrap( -1 );
101  fgSizer1->Add( m_leftButtonDragLabel, 0, wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
102 
103  wxString m_choiceLeftButtonDragChoices[] = { _("Draw selection rectangle"), _("Drag selected objects; otherwise draw selection rectangle"), _("Drag any object (selected or not)") };
104  int m_choiceLeftButtonDragNChoices = sizeof( m_choiceLeftButtonDragChoices ) / sizeof( wxString );
105  m_choiceLeftButtonDrag = new wxChoice( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceLeftButtonDragNChoices, m_choiceLeftButtonDragChoices, 0 );
106  m_choiceLeftButtonDrag->SetSelection( 0 );
107  fgSizer1->Add( m_choiceLeftButtonDrag, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
108 
109 
110  fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
111 
112  m_staticText3 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Middle button drag:"), wxDefaultPosition, wxDefaultSize, 0 );
113  m_staticText3->Wrap( -1 );
114  fgSizer1->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
115 
116  wxString m_choiceMiddleButtonDragChoices[] = { _("Pan"), _("Zoom"), _("None") };
117  int m_choiceMiddleButtonDragNChoices = sizeof( m_choiceMiddleButtonDragChoices ) / sizeof( wxString );
118  m_choiceMiddleButtonDrag = new wxChoice( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMiddleButtonDragNChoices, m_choiceMiddleButtonDragChoices, 0 );
119  m_choiceMiddleButtonDrag->SetSelection( 0 );
120  fgSizer1->Add( m_choiceMiddleButtonDrag, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
121 
122 
123  fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
124 
125  m_staticText31 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Right button drag:"), wxDefaultPosition, wxDefaultSize, 0 );
126  m_staticText31->Wrap( -1 );
127  fgSizer1->Add( m_staticText31, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
128 
129  wxString m_choiceRightButtonDragChoices[] = { _("Pan"), _("Zoom"), _("None") };
130  int m_choiceRightButtonDragNChoices = sizeof( m_choiceRightButtonDragChoices ) / sizeof( wxString );
131  m_choiceRightButtonDrag = new wxChoice( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceRightButtonDragNChoices, m_choiceRightButtonDragChoices, 0 );
132  m_choiceRightButtonDrag->SetSelection( 0 );
133  fgSizer1->Add( m_choiceRightButtonDrag, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
134 
135 
136  fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
137 
138 
139  sbSizer2->Add( fgSizer1, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
140 
141 
142  bSizer1->Add( sbSizer2, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
143 
144  wxStaticBoxSizer* sbSizer3;
145  sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Scroll Gestures") ), wxHORIZONTAL );
146 
147  wxBoxSizer* bSizerLeft;
148  bSizerLeft = new wxBoxSizer( wxVERTICAL );
149 
150  wxBoxSizer* bSizer4;
151  bSizer4 = new wxBoxSizer( wxHORIZONTAL );
152 
153  m_staticText21 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Vertical touchpad or scroll wheel movement:"), wxDefaultPosition, wxDefaultSize, 0 );
154  m_staticText21->Wrap( -1 );
155  bSizer4->Add( m_staticText21, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
156 
157  m_scrollWarning = new wxStaticBitmap( sbSizer3->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
158  m_scrollWarning->SetToolTip( _("Only one action can be assigned to each column") );
159 
160  bSizer4->Add( m_scrollWarning, 0, wxRIGHT|wxLEFT, 5 );
161 
162 
163  bSizerLeft->Add( bSizer4, 1, wxEXPAND, 5 );
164 
165  wxFlexGridSizer* fgSizer2;
166  fgSizer2 = new wxFlexGridSizer( 0, 5, 8, 0 );
167  fgSizer2->AddGrowableCol( 0 );
168  fgSizer2->SetFlexibleDirection( wxBOTH );
169  fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
170 
171  m_staticText19 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
172  m_staticText19->Wrap( -1 );
173  fgSizer2->Add( m_staticText19, 0, wxALIGN_RIGHT|wxTOP|wxRIGHT|wxLEFT, 5 );
174 
175  m_staticText17 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("--"), wxDefaultPosition, wxDefaultSize, 0 );
176  m_staticText17->Wrap( -1 );
177  fgSizer2->Add( m_staticText17, 0, wxTOP|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
178 
179  m_lblCtrl = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Ctrl"), wxDefaultPosition, wxDefaultSize, 0 );
180  m_lblCtrl->Wrap( -1 );
181  fgSizer2->Add( m_lblCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
182 
183  m_staticText8 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Shift"), wxDefaultPosition, wxDefaultSize, 0 );
184  m_staticText8->Wrap( -1 );
185  fgSizer2->Add( m_staticText8, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
186 
187  m_lblAlt = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Alt"), wxDefaultPosition, wxDefaultSize, 0 );
188  m_lblAlt->Wrap( -1 );
189  fgSizer2->Add( m_lblAlt, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
190 
191  m_staticText10 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Zoom:"), wxDefaultPosition, wxDefaultSize, 0 );
192  m_staticText10->Wrap( -1 );
193  fgSizer2->Add( m_staticText10, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
194 
195  m_rbZoomNone = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
196  fgSizer2->Add( m_rbZoomNone, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
197 
198  m_rbZoomCtrl = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
199  fgSizer2->Add( m_rbZoomCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
200 
201  m_rbZoomShift = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
202  fgSizer2->Add( m_rbZoomShift, 0, wxALIGN_CENTER_HORIZONTAL|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
203 
204  m_rbZoomAlt = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
205  fgSizer2->Add( m_rbZoomAlt, 0, wxALIGN_CENTER_HORIZONTAL|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
206 
207  m_staticText11 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Pan up/down:"), wxDefaultPosition, wxDefaultSize, 0 );
208  m_staticText11->Wrap( -1 );
209  fgSizer2->Add( m_staticText11, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
210 
211  m_rbPanVNone = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
212  fgSizer2->Add( m_rbPanVNone, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
213 
214  m_rbPanVCtrl = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
215  fgSizer2->Add( m_rbPanVCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
216 
217  m_rbPanVShift = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
218  fgSizer2->Add( m_rbPanVShift, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
219 
220  m_rbPanVAlt = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
221  fgSizer2->Add( m_rbPanVAlt, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
222 
223  m_staticText20 = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("Pan left/right:"), wxDefaultPosition, wxDefaultSize, 0 );
224  m_staticText20->Wrap( -1 );
225  fgSizer2->Add( m_staticText20, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
226 
227  m_rbPanHNone = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
228  fgSizer2->Add( m_rbPanHNone, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
229 
230  m_rbPanHCtrl = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
231  fgSizer2->Add( m_rbPanHCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
232 
233  m_rbPanHShift = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
234  fgSizer2->Add( m_rbPanHShift, 0, wxALIGN_CENTER_HORIZONTAL|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
235 
236  m_rbPanHAlt = new wxRadioButton( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
237  fgSizer2->Add( m_rbPanHAlt, 0, wxALIGN_CENTER_HORIZONTAL|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
238 
239 
240  fgSizer2->Add( 0, 10, 1, wxEXPAND, 5 );
241 
242 
243  fgSizer2->Add( 42, 0, 1, wxEXPAND, 5 );
244 
245 
246  fgSizer2->Add( 42, 0, 1, wxEXPAND, 5 );
247 
248 
249  fgSizer2->Add( 42, 0, 1, wxEXPAND, 5 );
250 
251 
252  fgSizer2->Add( 42, 0, 1, wxEXPAND, 5 );
253 
254 
255  bSizerLeft->Add( fgSizer2, 0, wxRIGHT|wxLEFT, 24 );
256 
257  m_checkEnablePanH = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Pan left/right with horizontal movement"), wxDefaultPosition, wxDefaultSize, 0 );
258  m_checkEnablePanH->SetToolTip( _("Pan the canvas left and right when scrolling left to right on the touchpad") );
259 
260  bSizerLeft->Add( m_checkEnablePanH, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
261 
262 
263  sbSizer3->Add( bSizerLeft, 1, wxEXPAND, 5 );
264 
265  wxBoxSizer* bSizerRight;
266  bSizerRight = new wxBoxSizer( wxVERTICAL );
267 
268  m_mouseDefaults = new wxButton( sbSizer3->GetStaticBox(), wxID_ANY, _("Reset to Mouse Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
269  bSizerRight->Add( m_mouseDefaults, 0, wxALL|wxEXPAND, 5 );
270 
271  m_trackpadDefaults = new wxButton( sbSizer3->GetStaticBox(), wxID_ANY, _("Reset to Trackpad Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
272  bSizerRight->Add( m_trackpadDefaults, 0, wxALL|wxEXPAND, 5 );
273 
274 
275  sbSizer3->Add( bSizerRight, 0, wxEXPAND, 5 );
276 
277 
278  bSizer1->Add( sbSizer3, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
279 
280 
281  this->SetSizer( bSizer1 );
282  this->Layout();
283  bSizer1->Fit( this );
284 
285  // Connect Events
286  m_rbZoomNone->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
287  m_rbZoomCtrl->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
288  m_rbZoomShift->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
289  m_rbZoomAlt->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
290  m_rbPanVNone->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
291  m_rbPanVCtrl->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
292  m_rbPanVShift->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
293  m_rbPanVAlt->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
294  m_rbPanHNone->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
295  m_rbPanHCtrl->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
296  m_rbPanHShift->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
297  m_rbPanHAlt->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
298  m_mouseDefaults->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::onMouseDefaults ), NULL, this );
299  m_trackpadDefaults->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::onTrackpadDefaults ), NULL, this );
300 }
RESETTABLE_PANEL(wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxSize(-1,-1), long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString)
virtual void OnScrollRadioButton(wxCommandEvent &event)
virtual void onTrackpadDefaults(wxCommandEvent &event)
#define _(s)
virtual void onMouseDefaults(wxCommandEvent &event)
const char * name
Definition: DXF_plotter.cpp:56

References _, m_autoPanSpeed, m_checkAutoPan, m_checkAutoZoomSpeed, m_checkEnablePanH, m_checkZoomAcceleration, m_checkZoomCenter, m_choiceLeftButtonDrag, m_choiceMiddleButtonDrag, m_choiceRightButtonDrag, m_lblAlt, m_lblCtrl, m_leftButtonDragLabel, m_mouseDefaults, m_panSizer, m_rbPanHAlt, m_rbPanHCtrl, m_rbPanHNone, m_rbPanHShift, m_rbPanVAlt, m_rbPanVCtrl, m_rbPanVNone, m_rbPanVShift, m_rbZoomAlt, m_rbZoomCtrl, m_rbZoomNone, m_rbZoomShift, m_scrollWarning, m_staticText1, m_staticText10, m_staticText11, m_staticText17, m_staticText19, m_staticText20, m_staticText21, m_staticText22, m_staticText3, m_staticText31, m_staticText8, m_trackpadDefaults, m_zoomSizer, m_zoomSpeed, onMouseDefaults(), OnScrollRadioButton(), and onTrackpadDefaults().

◆ ~PANEL_MOUSE_SETTINGS_BASE()

PANEL_MOUSE_SETTINGS_BASE::~PANEL_MOUSE_SETTINGS_BASE ( )

Definition at line 302 of file panel_mouse_settings_base.cpp.

303 {
304  // Disconnect Events
305  m_rbZoomNone->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
306  m_rbZoomCtrl->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
307  m_rbZoomShift->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
308  m_rbZoomAlt->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
309  m_rbPanVNone->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
310  m_rbPanVCtrl->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
311  m_rbPanVShift->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
312  m_rbPanVAlt->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
313  m_rbPanHNone->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
314  m_rbPanHCtrl->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
315  m_rbPanHShift->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
316  m_rbPanHAlt->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
317  m_mouseDefaults->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::onMouseDefaults ), NULL, this );
318  m_trackpadDefaults->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::onTrackpadDefaults ), NULL, this );
319 
320 }
virtual void OnScrollRadioButton(wxCommandEvent &event)
virtual void onTrackpadDefaults(wxCommandEvent &event)
virtual void onMouseDefaults(wxCommandEvent &event)

References m_mouseDefaults, m_rbPanHAlt, m_rbPanHCtrl, m_rbPanHNone, m_rbPanHShift, m_rbPanVAlt, m_rbPanVCtrl, m_rbPanVNone, m_rbPanVShift, m_rbZoomAlt, m_rbZoomCtrl, m_rbZoomNone, m_rbZoomShift, m_trackpadDefaults, onMouseDefaults(), OnScrollRadioButton(), and onTrackpadDefaults().

Member Function Documentation

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( )
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_HOTKEYS_EDITOR, and PANEL_COLOR_SETTINGS.

Definition at line 52 of file resettable_panel.h.

53  {
54  return _( "Reset all settings on this page to their default" );
55  }
#define _(s)

References _.

◆ onMouseDefaults()

virtual void PANEL_MOUSE_SETTINGS_BASE::onMouseDefaults ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_MOUSE_SETTINGS.

Definition at line 88 of file panel_mouse_settings_base.h.

88 { event.Skip(); }

Referenced by PANEL_MOUSE_SETTINGS_BASE(), and ~PANEL_MOUSE_SETTINGS_BASE().

◆ OnScrollRadioButton()

virtual void PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_MOUSE_SETTINGS.

Definition at line 87 of file panel_mouse_settings_base.h.

87 { event.Skip(); }

Referenced by PANEL_MOUSE_SETTINGS_BASE(), and ~PANEL_MOUSE_SETTINGS_BASE().

◆ onTrackpadDefaults()

virtual void PANEL_MOUSE_SETTINGS_BASE::onTrackpadDefaults ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_MOUSE_SETTINGS.

Definition at line 89 of file panel_mouse_settings_base.h.

89 { event.Skip(); }

Referenced by PANEL_MOUSE_SETTINGS_BASE(), and ~PANEL_MOUSE_SETTINGS_BASE().

◆ ResetPanel()

Member Data Documentation

◆ m_autoPanSpeed

wxSlider* PANEL_MOUSE_SETTINGS_BASE::m_autoPanSpeed
protected

◆ m_checkAutoPan

wxCheckBox* PANEL_MOUSE_SETTINGS_BASE::m_checkAutoPan
protected

◆ m_checkAutoZoomSpeed

wxCheckBox* PANEL_MOUSE_SETTINGS_BASE::m_checkAutoZoomSpeed
protected

◆ m_checkEnablePanH

◆ m_checkZoomAcceleration

wxCheckBox* PANEL_MOUSE_SETTINGS_BASE::m_checkZoomAcceleration
protected

◆ m_checkZoomCenter

wxCheckBox* PANEL_MOUSE_SETTINGS_BASE::m_checkZoomCenter
protected

◆ m_choiceLeftButtonDrag

wxChoice* PANEL_MOUSE_SETTINGS_BASE::m_choiceLeftButtonDrag
protected

◆ m_choiceMiddleButtonDrag

wxChoice* PANEL_MOUSE_SETTINGS_BASE::m_choiceMiddleButtonDrag
protected

◆ m_choiceRightButtonDrag

wxChoice* PANEL_MOUSE_SETTINGS_BASE::m_choiceRightButtonDrag
protected

◆ m_lblAlt

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_lblAlt
protected

Definition at line 66 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_lblCtrl

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_lblCtrl
protected

Definition at line 64 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_leftButtonDragLabel

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_leftButtonDragLabel
protected

Definition at line 54 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_mouseDefaults

wxButton* PANEL_MOUSE_SETTINGS_BASE::m_mouseDefaults
protected

◆ m_panSizer

wxBoxSizer* PANEL_MOUSE_SETTINGS_BASE::m_panSizer
protected

Definition at line 51 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_rbPanHAlt

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbPanHAlt
protected

◆ m_rbPanHCtrl

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbPanHCtrl
protected

◆ m_rbPanHNone

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbPanHNone
protected

◆ m_rbPanHShift

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbPanHShift
protected

◆ m_rbPanVAlt

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbPanVAlt
protected

◆ m_rbPanVCtrl

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbPanVCtrl
protected

◆ m_rbPanVNone

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbPanVNone
protected

◆ m_rbPanVShift

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbPanVShift
protected

◆ m_rbZoomAlt

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbZoomAlt
protected

◆ m_rbZoomCtrl

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbZoomCtrl
protected

◆ m_rbZoomNone

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbZoomNone
protected

◆ m_rbZoomShift

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbZoomShift
protected

◆ m_scrollWarning

wxStaticBitmap* PANEL_MOUSE_SETTINGS_BASE::m_scrollWarning
protected

◆ m_staticText1

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText1
protected

Definition at line 48 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText10

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText10
protected

Definition at line 67 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText11

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText11
protected

Definition at line 72 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText17

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText17
protected

Definition at line 63 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText19

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText19
protected

Definition at line 62 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText20

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText20
protected

Definition at line 77 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText21

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText21
protected

Definition at line 60 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText22

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText22
protected

Definition at line 52 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText3

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText3
protected

Definition at line 56 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText31

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText31
protected

Definition at line 58 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText8

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText8
protected

Definition at line 65 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_trackpadDefaults

wxButton* PANEL_MOUSE_SETTINGS_BASE::m_trackpadDefaults
protected

◆ m_zoomSizer

wxBoxSizer* PANEL_MOUSE_SETTINGS_BASE::m_zoomSizer
protected

Definition at line 47 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_zoomSpeed

wxSlider* PANEL_MOUSE_SETTINGS_BASE::m_zoomSpeed
protected

The documentation for this class was generated from the following files: