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(609, 523), 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 () const
 Get the tooltip the reset button should display when showing this panel. More...
 
wxString GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override
 Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. More...
 

Protected Member Functions

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

Protected Attributes

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

References _, m_autoPanSpeed, m_checkAutoPan, m_checkAutoZoomSpeed, m_checkEnablePanH, m_checkZoomAcceleration, m_checkZoomCenter, m_choiceLeftButtonDrag, m_choiceMiddleButtonDrag, m_choiceRightButtonDrag, m_dragLabel, m_lblAlt, m_lblCtrl, m_leftButtonDragLabel, m_mouseDefaults, m_panSizer, m_panZoomLabel, 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_scrollLabel, m_scrollWarning, m_staticline1, m_staticline2, m_staticline3, 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 337 of file panel_mouse_settings_base.cpp.

338{
339 // Disconnect Events
340 m_rbZoomNone->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
341 m_rbZoomCtrl->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
342 m_rbZoomShift->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
343 m_rbZoomAlt->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
344 m_rbPanVNone->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
345 m_rbPanVCtrl->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
346 m_rbPanVShift->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
347 m_rbPanVAlt->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
348 m_rbPanHNone->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
349 m_rbPanHCtrl->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
350 m_rbPanHShift->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
351 m_rbPanHAlt->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::OnScrollRadioButton ), NULL, this );
352 m_mouseDefaults->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::onMouseDefaults ), NULL, this );
353 m_trackpadDefaults->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_MOUSE_SETTINGS_BASE::onTrackpadDefaults ), NULL, this );
354
355}

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

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint &  aPt,
wxHelpEvent::Origin  aOrigin 
) const
inlineoverrideinherited

Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.

Definition at line 72 of file resettable_panel.h.

73 {
74 if( aPt == wxPoint( -INT_MAX, INT_MAX ) )
75 return GetResetTooltip();
76 else
77 return wxPanel::GetHelpTextAtPoint( aPt, aOrigin );
78 }
virtual wxString GetResetTooltip() const
Get the tooltip the reset button should display when showing this panel.

References RESETTABLE_PANEL::GetResetTooltip().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

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

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

65 {
66 return _( "Reset all settings on this page to their default" );
67 }

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ onMouseDefaults()

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

Reimplemented in PANEL_MOUSE_SETTINGS.

Definition at line 94 of file panel_mouse_settings_base.h.

94{ 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 93 of file panel_mouse_settings_base.h.

93{ 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 95 of file panel_mouse_settings_base.h.

95{ 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_dragLabel

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_dragLabel
protected

Definition at line 56 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_lblAlt

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_lblAlt
protected

Definition at line 72 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 70 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 58 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 53 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_panZoomLabel

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_panZoomLabel
protected

Definition at line 44 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_scrollLabel

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_scrollLabel
protected

Definition at line 64 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_scrollWarning

wxStaticBitmap* PANEL_MOUSE_SETTINGS_BASE::m_scrollWarning
protected

◆ m_staticline1

wxStaticLine* PANEL_MOUSE_SETTINGS_BASE::m_staticline1
protected

Definition at line 45 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticline2

wxStaticLine* PANEL_MOUSE_SETTINGS_BASE::m_staticline2
protected

Definition at line 65 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticline3

wxStaticLine* PANEL_MOUSE_SETTINGS_BASE::m_staticline3
protected

Definition at line 57 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText1

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText1
protected

Definition at line 50 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 73 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 78 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 69 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 68 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 83 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 66 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 54 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 60 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 62 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 71 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 49 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: