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
wmayer
ba8d5ab055
Gui: modernize C++: replace 'typedef' with 'using'
2022-08-29 14:09:18 +02:00
berniev
a909df7f39
Gui: Single arg ctors must be explicit (PR #7369 )
2022-08-24 15:06:03 +02:00
wmayer
8acce95ebb
Gui: revert changes of 0c70d45c83 for GestureNavigationStyle
2022-08-09 23:50:05 +02:00
berniev
0c70d45c83
Gui: Use override etc 2
2022-08-09 12:43:23 +02:00
berniev
d88729d2c4
Gui: use empty
2022-08-06 16:35:45 +02:00
0penBrain
b308da5387
[BUGFIX] Gui: fix mouse Gesture navigation mode
...
Regression introduced by commit c23a30b
2022-06-24 01:03:53 +02:00
Uwe
c23a30b916
[Gui] remove unnecessary Boolean comparisons
2022-06-19 15:17:01 +02:00
Chris Hennes
bedf920702
Gui: PR6497 move return statement to new line
2022-03-29 12:33:50 -05:00
wmayer
2dc78804b6
Core: Fix several coverity issues:
...
* CID 350582: Big parameter passed by value
* CID 350639: Big parameter passed by value
* CID 305234: Uncaught exception
* CID 316529: Uncaught exception
* CID 350597: Uncaught exception
* CID 350623: Uncaught exception
* CID 332690: Uncaught exception
* CID 332700: Unchecked return value
* CID 350576: Uninitialized scalar field
* CID 350587: Uninitialized scalar variable
* CID 192606: Uninitialized scalar field
* CID 332699: Uninitialized pointer field
* CID 350561: Dereference null return value
* CID 350610: Dereference null return value
* CID 350567: Dereference after null check
2022-03-13 13:53:32 +01:00
Uwe
9df3059d3b
[Gui] Navigation styles: remove unused includes
2022-03-03 02:25:21 +01:00
wmayer
3d359e2e24
Mouse navigation: change unnecesary messages to log messages
2021-12-31 19:09:15 +01:00
Adrian
fddfc7bdcd
Mouse navigation: change unnecesary warnings to messages
...
sent when trying to set rotation center without an object under the cursor and can be annoying if report view is set to show with warnings.
2021-12-30 15:46:38 +01:00
luz paz
382b38f2bd
Use correct name spacemouse so it's uniform and searchable in our code
...
Make all mentions of `spacemouse` in the code a single word (with no whitespace) so we can parse the source code more accurately to find mentions of it if necessary.
2021-12-06 10:31:06 +01:00
wmayer
916fe37a6b
Gui: move handling of SoMouseWheelEvent to its own handler function
2021-11-05 21:37:19 +01:00
wmayer
1c93d3ee15
Gui: [skip ci] add method NavigationStyle::syncModifierKeys() to reduce code duplication
2021-11-02 14:52:22 +01:00
wmayer
4b7e64381c
Gui: avoid code duplication in NavigationStyle and remove superfluous doZoom_wheel method
2020-08-22 18:44:47 +02:00
DeepSOIC
b200801ebc
Gui: use SoMouseWheelEvent in navigation styles
2020-08-22 17:15:02 +02:00
wmayer
b25dee58d5
Coverity: Uninitialized scalar/pointer field
2020-07-20 17:34:30 +02:00
wmayer
1a8df1ab03
Gui: [skip ci] in Gesture style handle release instead of press events for the keys: H, PgUp, PgDown
...
For more details see: https://forum.freecadweb.org/viewtopic.php?f=8&t=42408&start=10#p361248
2020-01-17 15:06:17 +01:00
wmayer
378de3c8a1
fix -Wcatch-value=, fix -Wpedantic
2019-09-18 14:36:23 +02:00
wmayer
b50b21576e
core system
...
force strict ISO C++ (-Wpedantic)
TODO: still a lot of variadic macros are not valid ISO C++
2019-09-18 01:01:14 +02:00
DeepSOIC
348160d4ea
Gui: Gesture: stop reacting to gestures on Macs
...
Gesture event processing causes problems on macs. Disabling for now.
https://forum.freecadweb.org/viewtopic.php?f=9&t=36387&start=10#p314575
2019-07-14 00:13:27 +02:00
DeepSOIC
5a4373a3c4
Gui: GestureNavigationStyle: logging option
...
To enable logging, execute:
App.ParamGet("User parameter:BaseApp/Preferences/View").SetBool("NavigationDebug",True)
2019-05-27 19:37:04 +03:00
DeepSOIC
6d7400f0e2
Revert "Gui: GestureNavigationStyle: remove logging"
...
This reverts commit 24e45023aa .
2019-05-27 19:37:04 +03:00
luz.paz
11f4f30a37
Misc. typo fixes
...
Found via `codespell -q 3 -I ../fc-word-whitelist.txt -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller -L pard,wallthickness,commen,byteorder,alocation`
2019-05-17 13:19:36 +02:00
DeepSOIC
96ee6fb502
Fix build with boost 1.65.1 on ubuntu 18.04
...
reported to me privately by @fjullien
2019-05-15 13:10:52 +03:00
DeepSOIC
24e45023aa
Gui: GestureNavigationStyle: remove logging
2019-05-14 15:35:50 +02:00
DeepSOIC
8a99785477
Gui: GestureNavigationStyle rewrite
...
to better work on Qt5
+ new (dormant) feature: button roll gestures
2019-05-14 15:35:50 +02:00
luz.paz
e1446a0b99
[WIP] Crowdin: fixes pre-0.18 release
...
Includes some whitespace fixes as well
2019-01-30 11:08:03 -02:00
Mateusz Skowroński
94e392347c
Fix GCC 8 warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
2018-12-23 11:05:02 -02:00
DeepSOIC
82fd0a8db6
Gui: Gesture: add option to disable tilt
...
On Qt5, using pinch will inevitably cause tilt. It's annoying, so it is disabled by default.
In the future, it's best to introduce some kind of threshold to overcome for the tilt to be triggered.
2018-11-29 15:29:27 -03:00
DeepSOIC
2cb1bad660
GestureNavigationStyle: fix interaction with SoClipPlaneManip
2018-09-11 00:38:06 +03:00
luz.paz
505488c4f9
Misc. typos
...
Found via `codespell`
2018-04-25 09:41:33 -03:00
wmayer
127895695c
fixes #0003394 : Crash on gesture rotation with focus
2018-03-30 15:24:57 +02:00
Mateusz Skowroński
23cdde88e0
Fix some GCC 7 warnings:
...
* dynamic exception specifications are deprecated [-Wdeprecated]
* this statement may fall through [-Wimplicit-fallthrough=]
2017-12-05 17:22:00 +01:00
luzpaz
b24a9c9ad4
Misc. typos
...
- Tooltip uniformity
- source comment typo fixes
- remove double whitespaces
2017-11-24 09:45:08 -02:00
DeepSOIC
6e39a78721
Gui: GestureNav: disable rotation when over a dragger
2017-05-06 12:48:26 +03:00
DeepSOIC
2d614154a4
Gui: GestureNav: fix constant hand cursor
2017-05-06 02:15:45 +03:00
Mateusz Skowroński
7d0e892d36
Qt4's qglobal.h defined TRUE and FALSE. Qt5 does not do it anymore. Replace it with true and false.
...
158f39ec78
This change is Qt4/Qt5 neutral.
2016-01-05 16:43:33 +01:00
wmayer
cb16fec6bb
+ fix various warnings
2015-08-29 22:05:09 +02:00
wwmayer
e7441149f0
+ fix many minor warnings, activate -Wall for gcc
2015-08-02 22:32:18 +02:00
DeepSOIC
694b0339fd
GestureNav: bug fix (tilting) + kill messagebox
...
Fixed a bug where starting tilting with LMB+RMB with LMB in sketcher
caused odd behavior.
No more messagebox upon hitting H key when the cursor is over nothing
(replaced with a warning). The messagebox was very annoying when trying
to hunt a point with touch input.
2015-04-07 00:57:24 +03:00
DeepSOIC
8ba5f73c1a
GestureNav: bug fix (gesture lockup in sketcher)
...
Navigation by gestures didn't work after double-clicking a constraint in
sketcher to edit a value. This was probably caused by the last mouse
button release event not reaching the viewer.
2015-04-07 00:57:23 +03:00
wmayer
8e0110a18e
+ fix various things
2015-03-31 23:08:12 +02:00
DeepSOIC
4f5747ebef
New navigation style: GestureNavigationStyle
2015-03-31 21:49:01 +02:00