Commit Graph

4194 Commits

Author SHA1 Message Date
wmayer
5bf7199804 Gui: replace old-style connect() with new-style 2022-11-11 22:53:02 +01:00
wmayer
bc3c81e138 Gui: fix warnings reported by GH Actions:
* Fix trailing spaces
* Replace tabs
* Mark constructors with one argument explicit
* Fix typos
* Include FCGlobal.h to fix parsing errors
2022-11-11 09:56:43 +01:00
vernzimm
1c6aa45fd6 Gui: Add default JPEG save quality (#7737)
* Update SoFCOffscreenRenderer.cpp

Set jpg screenshot capture to 100% quality vs qimage defaulting to -1

* Add default quality to JPG export

Fixed original version and use quality 90% as compromise between file size and fidelity.
2022-11-10 22:49:28 -06:00
Uwe
7a26e69405 [skip ci] [Gui] NaviCube: fix warning about too short variable name
- also some whitespace unification
2022-11-11 05:16:18 +01:00
Uwe
4bade5d96b [Gui] NaviCube: fix rotation to backside
- when pressing the "dot" besides the NaviCube, the rotation to the backside was not in the center thus the view jumped
2022-11-11 04:58:20 +01:00
wmayer
439a2c65cf Gui: don't use '_tooltip' as argument name because it's already used for a class member 2022-11-11 01:25:33 +01:00
wmayer
6e6e42f696 Gui: [skip ci] fix several warnings reported by GH actions 2022-11-10 23:52:29 +01:00
wmayer
2f41f652c8 Gui: fix regression: show commands of selected category in Toolbar tab 2022-11-10 23:20:18 +01:00
wmayer
07224605dc Gui: use new-style connect and add curly braces to improve readability 2022-11-10 23:20:18 +01:00
wmayer
ee4e64328e Gui: restore fixes of DlgKeyboard.ui and DlgToolbars.ui and fix build failure 2022-11-10 23:20:18 +01:00
Zheng, Lei
2138189f8e Gui: do not remove ending puncuation when clean action title 2022-11-10 23:20:18 +01:00
Zheng, Lei
ae8ba0de3d Gui: fix shortcut context handling in ShortcutManager
Related #6097

Qt ignores shortcut of actions in invisible toolbar, but not for actions
in a hidden menu action of menu bar, which is likely a Qt bug. The
desired behavior should be that of toolbar actions, so that actions
belong to different workbenches can have the same shortcut without
conflict.

This commit works around this inconsistency by ensuring only the active
actions are added in menu bar. In addition, all active actions will be
added to a zero sized child widget of the main window, which ensures the
shortcuts of these actions being active regardless whether the action is
in toolbar or menu bar, visible or not.
2022-11-10 23:20:18 +01:00
Zheng, Lei
057f6773b0 Gu: fix readonly AccelLineEdit 2022-11-10 23:20:18 +01:00
Zheng, Lei
d10a7aae7c Gui: fix command completer selection on item activate 2022-11-10 23:20:18 +01:00
Zheng, Lei
7942ed61c5 Gui: fix Customize -> Keyboard shortcut priroity list
Add API Command::initAction() to force create action for all commands
with shortcut in order to register with ShortcutManager to obtain a
complete list of actions with the same shortcut.
2022-11-10 23:20:18 +01:00
Zheng, Lei
71449b1fec Gui: remove command description label in Customize -> Keyboard
Because long description may cause undesired dialog layout changes. The
description is available through tool tip of the command tree widget.
2022-11-10 23:20:18 +01:00
Zheng, Lei
dc8bcf46c4 Gui: change Command::getRevision() to const 2022-11-10 23:20:18 +01:00
Zheng, Lei
a2d886b7ea Gui: fix missing separator item in Customize -> Toolbar 2022-11-10 23:20:18 +01:00
Zheng, Lei
516b60826d Gui: fix macro command sync in Customize -> Keyboard/Toolbar 2022-11-10 23:20:18 +01:00
Zheng, Lei
028c30e56d Gui: move CommandCompleter into its own source file 2022-11-10 23:20:18 +01:00
Zheng, Lei
2cb2fa5626 Gui: fix GroupCommand icon setup 2022-11-10 23:20:18 +01:00
Zheng, Lei
9d8efe1488 Gui: fix ShortcutManager modifier detection 2022-11-10 23:20:18 +01:00
Zheng, Lei
ea44ccd5b1 Fix build warning 2022-11-10 23:20:18 +01:00
Zheng, Lei
0a37a85ea2 Minor code change according to suggestions 2022-11-10 23:20:18 +01:00
Zheng, Lei
063ad7a5f0 Gui: fix action title processing 2022-11-10 23:20:18 +01:00
Zheng, Lei
dfe921672e Fix comment typo 2022-11-10 23:20:18 +01:00
Zheng, Lei
bd2f9fd0e0 Gui: fix shortcut editor 2022-11-10 23:20:18 +01:00
Zheng, Lei
49a86238cf Gui: refactor 'Customize -> Toolbars' command list handling
By reusing code in DlgCustomKeyboardImp
2022-11-10 23:20:18 +01:00
Zheng, Lei
775452cbc0 Gui: add ShortcutManager to unify shortcut handling
Support longest key sequence match with user defined delay (configurable
through 'Customize -> Keyboard -> Key sequence delay').

Support user defined priority to resolve shortcut conflict through
'Customize -> Keyboard')

Add 'All' category in 'Customize -> Keyboard' to list all command and
showing their shortcuts

Unify macro command shortcut setting (BaseApp/Preferences/Shortcut).
2022-11-10 23:20:18 +01:00
wmayer
641d3ba35c Gui: determine the view size of the focal plane in perspective mode 2022-11-10 13:34:59 +01:00
wmayer
96b35e5421 Gui: fix warnings in DlgDisplayPropertiesImp reported by GH actions 2022-11-09 14:39:00 +01:00
wmayer
3e4cf0cea4 Gui: use new-style connect() in DlgDisplayPropertiesImp 2022-11-09 10:20:49 +01:00
wmayer
ad649bc685 Gui: use QSignalBlocker in DlgDisplayPropertiesImp 2022-11-09 09:36:43 +01:00
wmayer
1802487e38 Gui: refactor DlgDisplayPropertiesImp to avoid code duplication 2022-11-09 09:33:31 +01:00
Uwe
4a58a2e008 [skip ci] [Gui] DlgDisplayProperties: fix dialog height
- further changes done by Qt Designer
2022-11-09 02:14:58 +01:00
Adrian Insaurralde Avalos
5508ab329b Add button to set point color in Appearance task dialog 2022-11-09 02:12:20 +01:00
Chris Hennes
398aaa1aac GUI: Remove references to MS Shell DLG2 font 2022-11-08 17:54:59 +01:00
Chris Hennes
d7b7bb88ca GUI: Limit editor fonts to fixed-width 2022-11-08 17:54:59 +01:00
Chris Hennes
e643b26280 GUI: Default editor font to monospaced 2022-11-08 17:54:59 +01:00
luz paz
d14cfc37d5 Gui: Rename 'Output window' to 'Report view'
Closes #7659
2022-11-07 22:51:23 -06:00
Paddle
c87c4bbd9f Gui: Add setting enabling workbench selector to be on the menubar. Restart required. 2022-11-07 11:57:53 -05:00
wmayer
ab31c1dee2 Gui: use braced-init-list to create LibraryInfo objects 2022-11-06 21:11:15 +01:00
wmayer
4b4a8b57f6 + fix build failure if SMESH support is disabled 2022-11-06 20:23:13 +01:00
wmayer
9345738604 Gui: [skip ci] fix several warnings reported by GH Actions 2022-11-06 15:53:18 +01:00
Uwe
cef5c5c11c [Gui][Mod]: uniform spin button step size to 5%
- as discussed here: https://github.com/FreeCAD/FreeCAD/pull/7103 we have different transparency spin button step sizes. This PR uniforms them all to 5%.
2022-11-06 14:27:55 +01:00
wmayer
d91de9ceb2 Core: Qt6 migration, use PySide 2022-11-06 14:09:18 +01:00
wmayer
e94513b97d Gui: [skip ci] fix several warnings reported by GH Actions 2022-11-06 13:07:34 +01:00
Uwe
72d10e3fc8 [Gui] SplashScreen: modernize Qt connection
- was reported as warning by our CI
2022-11-06 12:50:23 +01:00
Uwe
d75bd02971 [skip ci] [Gui] DlgMaterialPropertiesImp: Clang formatting 2022-11-06 03:36:53 +01:00
wmayer
43d2fd2da9 Gui/Sketcher: disable geometry deselection when user holds Ctrl or additionally Shift or Alt 2022-11-05 22:56:38 +01:00