Commit Graph

34 Commits

Author SHA1 Message Date
wmayer
6f20e3e4d8 Gui: remove QT_TR_NOOP from command group names and use "CommandGroup" as context string 2021-09-29 16:31:55 +02:00
donovaly
1a28c4969a [Gui] fix a NaviCube Corner
fixes a copy/paste issue of commit 7831a218d7
2021-03-30 12:10:15 +02:00
wmayer
2887eadea7 Gui: concatenate rotations and apply the result once at the end 2021-03-29 18:29:44 +02:00
donovaly
8e417f96b8 fix animation issue
SO's auto rotation has its own rotation logic that ends at fixed positions. This collides with the "to nearest" option whose aim is to rotate to the next sensible state taking into account from what position the rotation was started.

Thus the solution is to disable SO's auto rotation while the cube is rotated.
2021-03-29 17:11:50 +02:00
donovaly
54fd82b109 [Gui] improving NaviCube
fixes bug 4495

- add missing edge faces
- implement a proper rotation recipe -> rotate towards the nearest possible state
- add preferences settings to turn off this new rotation behavior
- get rid of transparent cube faces to avoid wrong clicks, this way also remove the backfaces
- to make the edge faces fit, use triangles for the corners
- expose cube size setting to preferences dialog
- add new button to view backside
- get rid of bitmaps because as reported in https://forum.freecadweb.org/viewtopic.php?f=3&t=52118&start=20#p481781
the x y z labels are not scaled on HiDPI screens
moreover they are often "in they way" when you want to click on a corner and in principle they don't provide more info since we already have the CS with the axis labels

- also fix an arithmetic overflow compiler warning
- also rename 2 variables
2021-03-29 17:11:34 +02:00
Benjamin Nauck
fd6d471a24 Gui: Auto update NaviCube when changing preferences 2021-03-09 17:27:48 +01:00
luz paz
38815b9550 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
3632c81435 clang/gcc/cmake: move handling of suppressed deprecated-copy warnings from source file to CMake file to more easily support gcc 10 2020-06-09 15:30:42 +02:00
wmayer
be8634d05c Handle clang 10 warnings:
+ fix -Wtautological-bitwise-compare
+ fix -Wimplicit-int-float-conversion
+ fix -Wmisleading-indentation
+ fix -Wrange-loop-construct
+ suppress -Wdeprecated-copy of 3rd party libs
2020-05-25 15:34:43 +02:00
triplus
1d6d841cf6 NaviCube fix compiler warning
Forum discussion:

https://forum.freecadweb.org/viewtopic.php?f=10&t=45012
2020-04-21 10:20:01 +02:00
triplus
ba9a7d3227 NaviCube - tweaks and new parameters
By default navigation cube text now has more weight and CS axes are slightly shifted. A few additional parameters have been added, for being able to customize navigation cube offset, colors, font and visibility of CS. Parameters are consolidated under NaviCube group. Customization front-end, making use of this new parameters, will be added to CubeMenu module in the following days:

https://forum.freecadweb.org/viewtopic.php?f=34&t=43338
2020-03-24 11:12:54 +01:00
UR-0
73cc683874 introducing user parameters: BaseApp->Preferences->View->NaviFontStretch
BaseApp->Preferences->View->NaviTextFront
 BaseApp->Preferences->View->NaviTextRear
 BaseApp->Preferences->View->NaviTextTop
 BaseApp->Preferences->View->NaviTextBottom
 BaseApp->Preferences->View->NaviTextLeft
 BaseApp->Preferences->View->NaviTextRight
2020-02-05 10:55:40 +01:00
UR-0
3b714e0bad introducing user parameter: BaseApp->Preferences->View->NaviWidgetSize 2020-02-05 10:55:40 +01:00
wmayer
49cb974bca Gui: [skip ci] handle possible division by zero in NaviCube 2020-02-03 14:39:54 +01:00
0penBrain
0ead4c5946 [NaviCube]Fix error when 'NaviStepByTurn' parameter value leads to non-integer angle increment step 2020-01-27 10:05:41 +01:00
0penBrain
783f505516 [NaviCube] Add user parameter 'NaviStepsByTurn' to make customizable the rotation step increment 2020-01-22 10:28:13 +01:00
asapelkin
ced8100ab9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
wmayer
08b54bb5a0 [skip ci] line width must be explicitly set in NaviCube and SoFCSelectionRoot to avoid that an inappropriate value is used when set from somewhere else 2019-11-10 11:13:10 +01:00
Jakub Tyszkowski
af734bbbc6 NaviCube: Improve the widget style
This resizes down the cube, adjusts transparency and
text readability. Arrows and cube corners sizes were
adjusted.
2019-04-11 11:57:36 -03:00
luz.paz
ad0ee86589 Misc. source comment typos 2019-03-22 10:44:14 -03:00
wmayer
d82e7e736d fixes 0003843: registration of pointer in navigation cube/cluster is off, makes clicking difficult (fixed by garya) 2019-02-20 17:39:53 +01:00
wmayer
11c0c9adde harmonize functions to set camera orientations 2019-01-12 22:59:44 +01:00
wmayer
94c28e9fc8 implement Isometric, Dimetric and Trimetric projection 2019-01-10 18:31:17 +01:00
wmayer
5a1c43b131 fix incorrect terminology in NaviCube, add support of isometric view 2019-01-09 14:18:26 +01:00
wmayer
31963f16c1 Fix scan coverity issues:
CID 184294: Uncaught exception
CID 183597: Unchecked return value
CID 175809: Dereference before null check
CID 175810: Logically dead code
CID 133000: Uninitialized scalar variable
CID 133001: Uninitialized scalar variable
CID 183591: Explicit null dereferenced
2018-11-13 16:47:58 +01:00
wmayer
622203bb97 add functions to customize NaviCube 2018-10-26 15:51:03 +02:00
luz.paz
af3ef5b19d Misc. typos
Found via `codespell`
[skip ci]
2018-05-31 12:50:58 -04:00
wmayer
01454584fc fix inconsistent default parameters, fix warnings 2018-05-31 13:47:31 +02:00
wmayer
9a3021818b implement option to change corner of navi cube 2018-05-26 18:51:53 +02:00
wmayer
3b4ab88844 + option to disable navi cube
+ handle destruction of GL context in 3d viewer class
+ fix for OpenGL error message: 'Texture is not valid in the current context. Texture has not been destroyed'
2018-05-26 15:33:45 +02:00
wmayer
322cb29f64 remove unrealiable implementation of ViewNormalToSketchPlaneCmd 2018-05-26 15:33:45 +02:00
wmayer
b24a2996f8 make NaviCube working for Qt4 and Qt5 2018-05-26 15:33:45 +02:00
wmayer
68b979de5e fix Qt5 build failure 2018-05-26 15:33:45 +02:00
Kustaa Nyholm
e610965b5c First Qt5 compatible NaviCube attempt 2018-05-26 15:33:45 +02:00