Commit Graph

16 Commits

Author SHA1 Message Date
Uwe
9aa61bf49a [Gui] font setting fixes for NaviCube
- it turned out that the current check for default font failed because of wrong check for the hinting
- fix bug that when the FontSize is not yet stored in the parameters, the dialog shows a wrong size value
2023-02-16 14:11:54 +01:00
wmayer
9dc366f817 Gui: fix regression that NaviCube cannot be switched off any more 2023-02-07 22:16:09 +01:00
wmayer
00813654a1 Gui: recreate NaviCubes of all 3D views 2023-02-07 22:16:09 +01:00
wmayer
cabc8e0ff4 Gui: remove Q_SLOTS decorator and use connect() to bind the signal 2023-02-07 22:16:09 +01:00
Uwe
246c24ec32 [Gui] modernize some UI connections 2023-01-30 18:11:37 -07:00
Uwe
5fdd405a69 [Gui] allow to specify font for NaviCube
- the problem is that depending on the OS, the font of the NaviCube is hardly readable. For example under Windows 11, there is no Helvetica font and therefore an ugly replacement font is used. On some laptop screens the font is too large or too small etc.
- as solution this PR add the change the NaviCube's font and font size

- the PR also fixes an issue that the position (corner) of the NaviCube was not respected when the NaviCube is recreated. This fix is necessary for the PR therefore included

- as by-product the PR fixes #8082 since every change in the preferences now properly recreates the NaviCube

- the PR also removes the strange and unused class "HuuhaaClassPy"
2023-01-27 02:23:46 +01: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
Uwe
ef81bdfd42 [Gui] move a NaviCube parameter to the NaviCube parameter group
- at the moment some NaviCube parameters are in the general View group, some in the dedicated NaviCube group
2022-07-30 00:50:12 +02:00
Uwe
5353cff196 [Gui] DlgSettings etc.: remove unused includes 2022-03-17 00:17:32 +01:00
luz paz
f04758856a Gui: Make DlgSettingsNavigation methods conform to naming standard
Renamed `CheckBox_UseAutoRotation` to `checkBoxUseAutoRotation` to match the preexisting naming syntax
2021-09-12 10:54:40 -04: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
79e72a87e1 Gui: Add setting for changing size of navigation cube
It's already possible to change size of the navigation cube through the
parameters. This just adds a GUI option in the preferences window.
2021-03-09 17:14:04 +01:00
wmayer
c71ea4a493 Gui: [skip ci] in user settings offer combo box to choose between rotation modes 2020-11-28 22:12:25 +01:00
luz paz
38815b9550 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
efc67edc7d Gui: remove moved controls from 3D view settings page 2020-03-15 14:00:04 +01:00
wmayer
cfb358589c Gui: [skip ci] split 3D view settings into two pages 2020-03-15 12:32:07 +01:00