Commit Graph

4986 Commits

Author SHA1 Message Date
Kacper Donat
4f1fcbd03b [Gui] Fix trailing whitespace and spelling issues 2023-10-12 15:54:24 +02:00
Kacper Donat
9d5390ed83 [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
75419d50b0 Fixed indicator for Qcombobox for Qstyle Fusion 2023-10-12 12:06:44 +02:00
wmayer
552b1f48b1 Gui: fix some important linting warnings:
* cppcoreguidelines-explicit-virtual-functions
* google-explicit-constructor
2023-10-12 11:48:16 +02:00
wmayer
e37e924b85 Gui: port new code to Qt6 2023-10-12 11:48:16 +02:00
wmayer
27dd573101 Gui: remove trailing whitespaces (thanks luzpaz) 2023-10-12 00:58:44 +02:00
wmayer
b016e328f5 Gui: removing parameters from settings that affects older versions is rude 2023-10-12 00:58:44 +02:00
wmayer
be70307867 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
4eee90f6d4 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
5449281108 Gui: fix tab order and duplicated widget names in DlgSettingsTheme.ui 2023-10-12 00:58:44 +02:00
wmayer
fbc447ad4b Gui: fixes a problem that if executing a macro that requires user-interaction this is blocked 2023-10-11 15:19:04 +02:00
Zheng, Lei
21e6e7a79b Gui: expose various overlay UI options to preference pages 2023-10-11 09:58:53 +02:00
Zheng, Lei
bf9584a90b Gui: add support for transparent overlay docking widget 2023-10-11 09:58:53 +02:00
Zheng, Lei
07542c5660 Gui/TechDraw: declare 'panning' capability in views
OverlayManager queries this capability to determin whether to auto hide
the overlay docking widgets
2023-10-11 09:58:53 +02:00
Zheng, Lei
9287f94974 Gui: fix selection of nested object in App::Part 2023-10-10 14:28:26 +02:00
wmayer
7c33d7d473 Gui: Initial save of a document doesn't have the expected thumbnail
When saving the thumbnail there is a check if the 3D window is the active window. This check fails if a document is saved for the first time because
the appearing file dialog causes the 3D window to not be active any more. Thus, no snapshot of the 3D window will be created and the program logo will be
saved instead. A workaround is to save the document twice.

This PR removes the check for the active window so that the snapshot can be created. The issue might be related to #10937.
2023-10-10 13:08:29 +02:00
Rexbas
908f6c9f78 Gui: Fix rotation center indicator for Gesture styles 2023-10-09 22:30:05 +02:00
Haas
b86d8852e5 Update DlgSettingsWorkbenchesImp.cpp
added translucent background for workbench name/icon widget.
2023-10-09 16:42:53 +02:00
xtemp09
a710eb23c2 [GUI] Fix memory leak in ViewProviderPlane.cpp 2023-10-09 16:27:39 +02:00
wmayer
13dce7864d Gui: Enable the thumbnail size widget by default
With PR #10016 the saving of thumbnails is on by default but the spin box to set the size is still disabled.
This results into an inconsistency and one has to click the Save thumbnails check box twice to enable the size widget.
2023-10-09 16:23:35 +02:00
wmayer
ce3e6b9b24 Core: add method to XMLReader to access next element of an XML file
If the next element could be read-in successfully true is returned, and false otherwise.
2023-10-09 15:06:45 +02:00
wmayer
56820718c5 Core: Revert superfluous changes made with PR #9521 2023-10-09 15:06:45 +02:00
luzpaz
e7a0690d47 Preferences: remove whitespace before colon
Uniformity fix in the preference page
2023-10-09 14:44:42 +02:00
sliptonic
aa82948b27 Merge pull request #9521 from AgCaliva/User/Document/Feature_level_units_selection_#7746
Adding "ProjectUnitSystem" support to project files.
2023-10-06 07:56:59 -05:00
mwganson
579d4278de [MacroExecuteDialog] set keyboard focus to LineEditFind 2023-10-05 10:35:32 +02:00
AgCaliva
2212e68a30 merge master via cli 2023-10-04 13:28:48 -03:00
wmayer
255e9eb434 Part: move CmdSelectFilter and friends from core to Part module 2023-10-03 19:26:28 +02:00
wmayer
77f88d39c3 Part: handle Part_SectionCut in WorkbenchManipulator 2023-10-03 19:26:28 +02:00
wmayer
ac342af190 Gui: integrate WorkbenchManipulator 2023-10-03 19:26:28 +02:00
wmayer
690b892536 Gui: add class WorkbenchManipulator 2023-10-03 19:26:28 +02:00
Vincenzo Calligaro
d8636dd058 [Feature Request] [Core] [Preferences] [UI/UX] Buttons to reset default values of Pages/Groups (#10688)
* Gui: added buttons to restore the default values of the selected Tab or Group
 * reformatted texts for better translations
 * Morphed buttons from QPushButton to QToolButton
 * added code to resize items list and buttons on language change

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2023-10-02 16:14:29 -05:00
Paddle
e076e4bf31 Remove Std_MacroStopRecord command as obsolete. 2023-10-01 17:22:19 -05:00
Paddle
ec07dcede7 Remove macro recording stop from toolbar and menu, and adds the stop functionality to the main macro recording command. 2023-10-01 17:22:19 -05:00
wmayer
2e1f3d862d Gui: several minor improvements:
* replace C array with std::array
* use range-based loop
* activate the first of tabified dock widgets
* refactor DockWindowManager::setup
2023-09-30 17:33:33 +02:00
wmayer
0398716487 Gui: fixes #10807: By default keep the old tabulated layout of ComboView and TaskView 2023-09-30 17:33:33 +02:00
Chris Hennes
5dfd4d5190 Update translations 2023-09-29 22:57:37 -05:00
wmayer
a9f6835306 Gui: fix build failure with Qt6 on macOS 2023-09-29 11:19:25 +02:00
dyylanhammond
f1a6a9e3a6 Change default file saving preferences (#10781)
* Change default compression level from 3 to 7
* increase default thumbnail size to 256
2023-09-27 16:08:43 -05:00
Yorik van Havre
ffd66cf826 Revert "Gui: Refactor navigation animations" 2023-09-26 19:44:16 +02:00
wmayer
3433ce70a6 Gui: fix automatic spinning of DemoMode 2023-09-26 15:41:12 +02:00
wmayer
eec9bdcefa Gui: do not create the commands StdCmdSelBack and StdCmdSelForward twice 2023-09-26 11:07:51 +02:00
Yorik van Havre
79a74e722b Merge pull request #10790 from Rexbas/rotation-center-preferences
Gui: Add rotation center indicator color, transparency and size preferences
2023-09-26 11:01:19 +02:00
AgCaliva
1f9bae0de7 Merge branch 'master' into User/Document/Feature_level_units_selection_#7746 2023-09-25 22:58:23 -03:00
Yorik van Havre
84cb841f3f Merge pull request #9446 from Rexbas/navigation-animation
Gui: Refactor navigation animations
2023-09-25 18:15:43 +02:00
Chris Hennes
8945ab642d Merge pull request #10761 from Ondsel-Development/ui_view_toolbar
Toolbar View and Structure cleaning
2023-09-25 10:42:26 -05:00
Yorik van Havre
951aafde60 Merge pull request #10555 from Syres916/Font_8514oem_exclude
[Preferences] Exclude 8514oem from Monospace fonts
2023-09-25 10:57:26 +02:00
wmayer
9728e60753 Gui: fixes #10782: Unable to cancel Select module Open obj messagebox 2023-09-24 16:08:02 -05:00
Rexbas
148f4adef0 Gui: Add rotation center indicator color, transparency and size preferences 2023-09-23 22:42:20 +02:00
wmayer
5a81fcd7a5 MSVC: fix warnings and build failure 2023-09-23 19:10:32 +02:00
wmayer
fdc44d50ef Gui: fixes #10724: TaskView gets truncated 2023-09-21 19:11:45 -05:00