- added a new global setting only accessible through the Tcl Shell,

named: global_mouse_pan_button
It can be set through set_sys TclCommand or the value getted through
get_sys TclCommand.
Values are 1 for left mouse button, 2 for middle mouse button and
3 for right mouse button.
It does hurt my hand (wrist) keeping the middle mouse button pressed
when panning and I very much preffer panning with RMB.
The default setting is pan_button = middle mouse button.
This commit is contained in:
Marius Stanciu
2018-06-01 21:05:51 +03:00
parent d4310a979c
commit b63c3219a7
2 changed files with 5 additions and 2 deletions

View File

@@ -286,6 +286,7 @@ class App(QtCore.QObject):
self.defaults = LoudDict()
self.defaults.set_change_callback(self.on_defaults_dict_change) # When the dictionary changes.
self.defaults.update({
"global_mouse_pan_button": 2,
"serial": 0,
"stats": {},
"units": "IN",
@@ -475,6 +476,8 @@ class App(QtCore.QObject):
self.collection = ObjectCollection.ObjectCollection()
self.ui.project_tab_layout.addWidget(self.collection.view)
self.mouse_pan_button = int(self.defaults['global_mouse_pan_button'])
#### End of Data ####
#### Worker ####