CQ-editor
CQ-editor copied to clipboard
Right & middle mouse button swap recommendation
Hi, I use a Lenovo Thinkpad X1 gen 10. This laptop's track pad comes with two native buttons - a left and a right, with no native middle mouse button action.
In cq-editor, the middle mouse button is used to pan the view. Also in cq-editor, there are two different ways to zoom in and zoom out - first with the "wheel action" and next with the right mouse button (zoom from point).
On my Thinkpad I am able to zoom using both of these methods but I am currently not able to pan the view, because I have no middle mouse button (without jumping through some hoops).
It would be suggested to switch the functionality of these two buttons, so that on systems with only left & right mouse buttons (and with the ability to scroll, i.e. "wheelEvent()"), the user is still able to rotate, pan, and zoom.
To make this change involves affected three lines of code in occt_widget.py. You would replace the single instance of "Qt.MiddleButton" to be "Qt.RightButton" and you would at the same time replace the two instances of "Qt.RightButton" to be "Qt.MiddleButton".
If such a change is not desired, then perhaps a user option can be exposed that performs this trick.
Final note, with the hypothetical right mouse button drag being responsible for pan view action, the user interface controls would come very close to resembling those of OpenSCAD.