Commit Graph

5037 Commits

Author SHA1 Message Date
Rexbas
9eee332bb3 Gui: maybe_unused for unused parameters 2023-10-25 11:17:55 +02:00
Rexbas
7bb97c1882 Gui: Bring back removed lookAtPoint(SbVec3f&) 2023-10-25 11:17:55 +02:00
Rexbas
a2c2bf5a4b Gui: Revert breaking Python interface change for viewPosition() 2023-10-25 11:17:55 +02:00
Rexbas
3a4fdbb3fd Gui: Add QObject as friend of NavigationAnimation 2023-10-25 11:17:55 +02:00
Rexbas
a10fa294b6 Gui: Fix animation translation 2023-10-25 11:17:55 +02:00
Rexbas
65a4a65553 Gui: Set exact orientation when animation is finished 2023-10-25 11:17:55 +02:00
Rexbas
bb1815b80a Gui: Add animation interrupted signal 2023-10-25 11:17:55 +02:00
Rexbas
fdc07dba67 Gui: Split stopAnimation() into onStop() and inherited stop() 2023-10-25 11:17:55 +02:00
Rexbas
b147e78cda Gui: Replace startAnimation() with inherited start() 2023-10-25 11:17:55 +02:00
Rexbas
e2579b7685 Gui: Remove unnecessary 'started' variable member in navigation animation 2023-10-25 11:17:55 +02:00
Rexbas
37e600e766 Gui: Refactor navigation animations
- Animations are played through an Animator
- Standard animations have a fixed duration and inherit from QVariantAnimation
- The animation duration can be changed in the preferences
- Fix animations when using the two arrows above the NaviCube
- Start an animation or start and wait for an animation
- Replaces standard camera animations (e.g. by selecting standard views or NaviCube) with FixedTimeAnimation
- Replace View3DInventorViewer's CameraAnimation with FixedTimeAnimation
- Replace OpenInventor navigation style infinite spin animation with SpinningAnimation
- Stops an active animation when a new animation is started
- Stops an active animation when the user starts dragging, panning or zooming
- Refactor reorientCamera so it can be used in animations
- Enable animations by default
2023-10-25 11:17:55 +02:00
Paddle
0b7e8c80e1 EditableDatumLabel : prevent re-activation or re-startEdit. 2023-10-24 19:27:10 +02:00
Paddle
eff45035a7 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
7f1fe0a3f7 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
aaa962944b Gui: With Qt6 QColor's redF(), greenF(), blueF() methods return a float 2023-10-24 13:30:40 +02:00
wmayer
a8c65ec621 Gui: rename methods setBacklight() & isBacklight() to harmonize with setHeadlightEnabled() & isHeadlightEnabled() 2023-10-24 13:30:40 +02:00
Paddle
2c3b467567 Fix build fail by adding
#include <Inventor/draggers/SoDirectionalLightDragger.h> to PreCompiled.
2023-10-24 10:46:41 +02:00
wmayer
c017386d91 Gui: suppress & fix some lint warnings in DlgSettingsLightSources 2023-10-23 19:34:54 +02:00
wmayer
7350855ca0 Gui: fix possible crash when opening DlgSettingsLightSources 2023-10-23 19:34:54 +02:00
Paddle
d08ead4d7f Set the default icon of View3DInventor 2023-10-23 12:06:08 -04:00
wmayer
f566b449a6 Gui: fixes issue #11113: Adjust Default Main Light Position 2023-10-23 11:05:21 -05:00
Roy-043
6d8fb68f3b 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
e642210eab Gui: Remove CornerNaviCube from OverlayParams and use directly in OverlayManager 2023-10-23 01:42:26 -03:00
Roy-043
e28d8234bc Gui: Improve texts for unit system preferences 2023-10-20 20:13:17 +02:00
Roy-043
2f5ea88ab7 Gui: MenuText for Std_SelBack and Std_SelForward in sentence case 2023-10-20 20:11:36 +02:00
Paddle
98e4f840ac EditableDatumLabel add 'isInEdit' to check if the label is in edit. 2023-10-20 11:23:33 +02:00
Paddle
b3f8745d93 EditableDatumLabel add support for angle labels. 2023-10-20 11:23:33 +02:00
wmayer
cefa965e8c Gui: remove redundant std::string from DlgRevertToBackupConfigImp::showEvent() 2023-10-19 15:49:04 +02:00
Kacper Donat
e8c1a13b7c Gui: Target 3DViewer directly for overlay wheel events
Fixes: #11015
2023-10-18 18:48:05 +02:00
Victor Predko
f76f842302 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
1547003554 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
70cce0d65b Gui: implement the methods of WorkbenchManipulatorPython 2023-10-16 18:13:41 +02:00
wmayer
823a8d593f Gui: when closing application remove all manipulators 2023-10-16 18:13:41 +02:00
wmayer
728b867738 Gui: expose functions to Python to add and remove a manipulator 2023-10-16 18:13:41 +02:00
wmayer
bf31a2ce03 Gui: Python support of workbench manipulation 2023-10-16 18:13:41 +02:00
atlast-50
c8fbe03eb1 Gui: Rename forumula to expression + add hotkey to expression tooltip
Fixes #10601
2023-10-16 18:03:10 +02:00
MisterMaker
5401e856df [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
de030e8fbb Gui: Target proper widget when passing wheel event
Fixes: #11015
2023-10-16 10:45:34 -03:00
Kacper Donat
147cd7cc53 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
b99feff9fb 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
74c236f947 Gui: [skip ci] remove empty lines from .ui file 2023-10-14 16:30:37 +02:00
wmayer
310c052134 Gui: implement option to disable overlay management 2023-10-14 13:36:12 +02:00
Paddle
259a9dba37 Add setHeaderIcon to actiongroup.h 2023-10-13 19:05:16 +02:00
Paddle
4dbca6eab2 EditableDatumLabel : Prevent passing the focus with tab. And small thing. 2023-10-13 19:03:45 +02:00
Paddle
fa2b0c8f7c Adds SoDatumLabel::getLabelTextCenter() to get the externalize the finding of position of text center. 2023-10-13 19:03:45 +02:00
Paddle
3f1251df25 editableDatumLabel : add setSpinboxInvisibleToMouse 2023-10-13 19:03:45 +02:00
wmayer
e859961e8f Gui: Make sure the title of the combo view is 'Model' again 2023-10-13 16:17:25 +02:00
wmayer
19fcb32ff0 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
46f8ad3d7f 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
a264a6fb5e Gui: fix size policy of placement dialog 2023-10-13 11:09:33 +02:00