Commit Graph

16 Commits

Author SHA1 Message Date
Bas Ruigrok
98320cc839 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
Bas Ruigrok
b99cd239aa Gui: Set rotation center when entering dragging in TinkerCAD style 2024-03-04 11:09:04 -06:00
Rexbas
7fbd53f003 Gui: Prohibit interrupting a rubber-band selection in sketcher 2024-01-24 21:02:25 +01:00
Rexbas
eac036105e Gui: Prevent rubber-band selection when selection button is pressed after other buttons are pressed 2024-01-24 21:02:25 +01:00
Rexbas
a01818a0c5 Gui: Prevent showing the context menu after dragging, panning or zooming 2024-01-24 21:02:25 +01:00
Rexbas
eafa1e519f Gui: Set processed true when right mouse released and hasDragged in TinkerCAD style 2023-12-27 15:30:10 +01:00
Rexbas
3e21fb9626 Gui: Only show context menu if not dragged in TinkerCAD navigation style 2023-12-26 22:03:02 +01:00
wmayer
888a33917d Gui: modernize C++: use equals default 2023-08-20 18:12:43 +02:00
0penBrain
1aac41f315 [Bugfix]Gui: TinkerCAD mouse mode was always stopping RMB propagation 2022-10-01 04:38:12 +02:00
berniev
ae53c9b0a4 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
5df3dbae6f Gui: PR6497 move return statement to new line 2022-03-29 12:33:50 -05:00
Uwe
713151df03 [Gui] only include the actually used inventor files 2022-03-17 21:12:19 +01:00
Uwe
efa589c7c5 [Gui] Navigation styles: remove unused includes 2022-03-03 02:25:21 +01:00
wmayer
ef598dd1e3 Gui: add method NavigationStyle::processClickEvent() to reduce code duplication in sub-classes 2021-11-05 14:37:18 +01:00
wmayer
fbca4b10f2 Gui: [skip ci] rename handleKeyboardEvent to processKeyboardEvent 2021-11-05 12:58:36 +01:00
wmayer
bc8d6c9934 Gui: add support of TinkerCAD navigation style 2021-11-05 11:10:38 +01:00