Commit Graph

20 Commits

Author SHA1 Message Date
Bas Ruigrok
5ba93dd9f0 Gui: Improve lookAtPoint (#13556)
* Gui: Rename NavigationStyle::pan to setupPanningPlane

* Gui: Replace duplicate code with NavigationStyle::setupPanningPlane

* Gui: Use panning plane when hit point not found in lookAtPoint

Also enables navigation animations when pressing MMB while the mouse is not over an object

* Gui: Remove unused methods
2024-05-06 10:45:14 -05:00
Rexbas
5c4b8ddff4 Gui: Prohibit interrupting a rubber-band selection in sketcher 2024-01-24 21:02:25 +01:00
Rexbas
7e031c1738 Gui: Prevent rubber-band selection when selection button is pressed after other buttons are pressed 2024-01-24 21:02:25 +01:00
Rexbas
dfa20b4648 Gui: Prevent showing the context menu after dragging, panning or zooming 2024-01-24 21:02:25 +01:00
Rexbas
f795f53b0a Gui: Prohibit dragging using LMB in sketch mode for OpenSCAD style 2024-01-08 12:31:00 -05:00
Rexbas
4df39da276 Gui: Set processed true when right mouse released and hasPanned in OpenSCAD style 2023-12-27 15:29:57 +01:00
Rexbas
8588335c7f Gui: Show context menu on right click in OpenSCAD navigation style if not panned 2023-12-26 12:00:20 +01:00
wmayer
c016f1c1fb Gui: modernize C++: use equals default 2023-08-20 18:12:43 +02:00
berniev
75acacd1b7 Gui: Use auto and range-based for (#7481)
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto. 
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
Chris Hennes
bedf920702 Gui: PR6497 move return statement to new line 2022-03-29 12:33:50 -05:00
Uwe
fe5f5bdda5 [Gui] only include the actually used inventor files 2022-03-17 21:12:19 +01:00
Uwe
9df3059d3b [Gui] Navigation styles: remove unused includes 2022-03-03 02:25:21 +01:00
wmayer
528ffce593 Gui: add method NavigationStyle::processClickEvent() to reduce code duplication in sub-classes 2021-11-05 14:37:18 +01:00
wmayer
5b023b0af5 Gui: [skip ci] rename handleKeyboardEvent to processKeyboardEvent 2021-11-05 12:58:36 +01:00
Uwe
909b035d0b Squashed commit of the following:
commit b5aa19950f09d9a391b189a578073b9920943294
Author: Roy-043 <70520633+Roy-043@users.noreply.github.com>
Date:   Tue Nov 2 14:37:19 2021 +0100

    Std: Fix OpenSCAD navigation string

    Holding down SHIFT is not required when zooming with the MMB.
2021-11-04 00:52:08 +01:00
wmayer
5b3bf97f2b Gui: [skip ci] replace getNormalizedPosition() with normalizePixelPos() 2021-11-02 19:06:12 +01:00
wmayer
bec3c797a8 Gui: [skip ci] add method NavigationStyle::getNormalizedPosition() to reduce code duplication 2021-11-02 15:57:54 +01:00
wmayer
0b802eb717 Gui: [skip ci] add method NavigationStyle::handleKeyboardEvent() to achieve consistent handling and reduce code duplication 2021-11-02 15:32:20 +01:00
wmayer
1c93d3ee15 Gui: [skip ci] add method NavigationStyle::syncModifierKeys() to reduce code duplication 2021-11-02 14:52:22 +01:00
wmayer
a1c9ab658c Gui: add support of OpenSCAD navigation style 2021-10-26 00:21:31 +02:00