Commit Graph

5026 Commits

Author SHA1 Message Date
Paddle
b992ebfd07 EditableDatumLabel : prevent re-activation or re-startEdit. 2023-10-24 19:27:10 +02:00
Paddle
38d5580dfe Add a 'value' double to EditableDatumLabel such that we can store the raw value of the spinbox. For the case where editStopped but we still need to access value.
Also write the value in the SoDatumLabel in case we stopEdit.
2023-10-24 19:27:10 +02:00
Paddle
20e41aea0b EditableDatumLabel : Change the 'invisibleToMouse' to 'visibleToMouse' to avoid double negation.
Also add parameter to startEdit to set this setting. Defaulting to false. So that we don't have to set manually again and again in tool settings.
2023-10-24 19:27:10 +02:00
wmayer
1a88ee16e0 Gui: With Qt6 QColor's redF(), greenF(), blueF() methods return a float 2023-10-24 13:30:40 +02:00
wmayer
e0d624bc66 Gui: rename methods setBacklight() & isBacklight() to harmonize with setHeadlightEnabled() & isHeadlightEnabled() 2023-10-24 13:30:40 +02:00
Paddle
be664a0625 Fix build fail by adding
#include <Inventor/draggers/SoDirectionalLightDragger.h> to PreCompiled.
2023-10-24 10:46:41 +02:00
wmayer
be9228838f Gui: suppress & fix some lint warnings in DlgSettingsLightSources 2023-10-23 19:34:54 +02:00
wmayer
25b836b86f Gui: fix possible crash when opening DlgSettingsLightSources 2023-10-23 19:34:54 +02:00
Paddle
04fab47ce7 Set the default icon of View3DInventor 2023-10-23 12:06:08 -04:00
wmayer
9708f00157 Gui: fixes issue #11113: Adjust Default Main Light Position 2023-10-23 11:05:21 -05:00
Roy-043
b2a75316e2 Gui: Make "Dock window overlay" GUI texts more consistent (#11121)
* Gui: Make "Dock window overlay" GUI texts more consistent
* overlays -> overlay windows
2023-10-23 10:57:45 -05:00
Rexbas
54f2ae336d Gui: Remove CornerNaviCube from OverlayParams and use directly in OverlayManager 2023-10-23 01:42:26 -03:00
Roy-043
6b668efa5c Gui: Improve texts for unit system preferences 2023-10-20 20:13:17 +02:00
Roy-043
c069fd240e Gui: MenuText for Std_SelBack and Std_SelForward in sentence case 2023-10-20 20:11:36 +02:00
Paddle
ecdbd69db5 EditableDatumLabel add 'isInEdit' to check if the label is in edit. 2023-10-20 11:23:33 +02:00
Paddle
6c2493799e EditableDatumLabel add support for angle labels. 2023-10-20 11:23:33 +02:00
wmayer
4abfa4aac6 Gui: remove redundant std::string from DlgRevertToBackupConfigImp::showEvent() 2023-10-19 15:49:04 +02:00
Kacper Donat
3ce9863d11 Gui: Target 3DViewer directly for overlay wheel events
Fixes: #11015
2023-10-18 18:48:05 +02:00
Victor Predko
e1206a3fac File formats: Uppercase file types when importing a file. (#10977)
* Added uppercase extensions for supported formats

In the file App\Application.cpp

* Added file types in upper case

* Adds uppercase file types to the file import filter.

Fixes #10879

* Added filter for *.fcmacro *.fcscript
2023-10-16 14:40:46 -03:00
wmayer
0ee48bfea5 Gui: fixes #11045: Freecad fails to start after uninstalling disabled addon
The PR refactors FindPreferencePacksInPackage() and splits program logic from exception handling. It also handles std::exception to give more
information about a possible failure
2023-10-16 11:34:26 -05:00
wmayer
e2844f791e Gui: implement the methods of WorkbenchManipulatorPython 2023-10-16 18:13:41 +02:00
wmayer
754a047070 Gui: when closing application remove all manipulators 2023-10-16 18:13:41 +02:00
wmayer
cb786fcbcd Gui: expose functions to Python to add and remove a manipulator 2023-10-16 18:13:41 +02:00
wmayer
26b5adceda Gui: Python support of workbench manipulation 2023-10-16 18:13:41 +02:00
atlast-50
5f19a9db7b Gui: Rename forumula to expression + add hotkey to expression tooltip
Fixes #10601
2023-10-16 18:03:10 +02:00
MisterMaker
993db6cf85 [Overlay/Stylesheets] Add seperate Overlay stylesheets for default stylesheets. (#11005)
Added the overlays to the preference packs also made the editor text a bit darker.
2023-10-16 11:13:28 -03:00
Kacper Donat
e1d64e8f30 Gui: Target proper widget when passing wheel event
Fixes: #11015
2023-10-16 10:45:34 -03:00
Kacper Donat
b21cd75395 Gui: Register overlay search path from preference packs
This commit adds "<mod>/overlay" path to search paths of "overlay"
prefix. This allows preference packs to register custom overlay
stylesheets.

Fixes: #11023
2023-10-14 16:48:24 -04:00
wmayer
e360436f06 Gui: Switch back to a single Reset button
The reset button opens a menu that offers all options to reset the user settings.
2023-10-14 21:48:53 +02:00
wmayer
3a294aeb07 Gui: [skip ci] remove empty lines from .ui file 2023-10-14 16:30:37 +02:00
wmayer
abe9fabc46 Gui: implement option to disable overlay management 2023-10-14 13:36:12 +02:00
Paddle
ae3198419e Add setHeaderIcon to actiongroup.h 2023-10-13 19:05:16 +02:00
Paddle
527ffeb3b4 EditableDatumLabel : Prevent passing the focus with tab. And small thing. 2023-10-13 19:03:45 +02:00
Paddle
ce4cb6eea7 Adds SoDatumLabel::getLabelTextCenter() to get the externalize the finding of position of text center. 2023-10-13 19:03:45 +02:00
Paddle
6741e95990 editableDatumLabel : add setSpinboxInvisibleToMouse 2023-10-13 19:03:45 +02:00
wmayer
821b57f969 Gui: Make sure the title of the combo view is 'Model' again 2023-10-13 16:17:25 +02:00
wmayer
a02d1fe45a Gui: make tab position of combo view configurable and set it back to North by default 2023-10-13 16:17:25 +02:00
wmayer
76e2a91c65 Gui: refactor MainWindow::initDockWindows
* split MainWindow::initDockWindows into smaller functions
* remove of legacy group for Tree view, Property view and DAG view
* simplify code logic
2023-10-13 16:17:25 +02:00
wmayer
0932b54abd Gui: fix size policy of placement dialog 2023-10-13 11:09:33 +02:00
wmayer
2091f02033 Gui: fix invalid placeholder for argument in QString 2023-10-13 08:39:55 +02:00
Kacper Donat
502dbca3e7 [Gui] Fix trailing whitespace and spelling issues 2023-10-12 15:54:24 +02:00
Kacper Donat
14b89b1404 [Gui] Prefer Dark-Outline as default overlay stylesheet
FreeCAD 3D View is often somewhat dark even if the UI is in light
colors. So if user has not speficially applied "Light" stylesheet we
should prefer to use "Dark-Outline" stylesheet which provides proper and
fully transparent overlay panels.
2023-10-12 15:54:24 +02:00
Haas
8db59593cb Fixed indicator for Qcombobox for Qstyle Fusion 2023-10-12 12:06:44 +02:00
wmayer
91aa75fb18 Gui: fix some important linting warnings:
* cppcoreguidelines-explicit-virtual-functions
* google-explicit-constructor
2023-10-12 11:48:16 +02:00
wmayer
3ba5cd569d Gui: port new code to Qt6 2023-10-12 11:48:16 +02:00
wmayer
b8e8b2aca8 Gui: remove trailing whitespaces (thanks luzpaz) 2023-10-12 00:58:44 +02:00
wmayer
e543840afc Gui: removing parameters from settings that affects older versions is rude 2023-10-12 00:58:44 +02:00
wmayer
9eb5fd8036 Gui: fixes OverlayManager issues
* QMetaObject::invokeMethod: No such method Gui::OverlayManager::raiseAll()
* variable 'total' set but not used [-Wunused-but-set-variable]
* 'globalPos' is deprecated: Use globalPosition() [-Wdeprecated-declarations]
2023-10-12 00:58:44 +02:00
wmayer
04af090e86 Gui: replace deprecated QDesktopWidget with QScreen
Since Qt5.11 QDesktopWidget is marked as deprecated and has been removed in Qt6. New code has to use QScreen instead.
2023-10-12 00:58:44 +02:00
wmayer
7bd4af9c68 Gui: fix tab order and duplicated widget names in DlgSettingsTheme.ui 2023-10-12 00:58:44 +02:00