Commit Graph

4192 Commits

Author SHA1 Message Date
vernzimm
5f4dbf7b4c 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
7869b443db [skip ci] [Gui] NaviCube: fix warning about too short variable name
- also some whitespace unification
2022-11-11 05:16:18 +01:00
Uwe
60d536bdf2 [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
3ee47be1e0 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
1139e209a8 Gui: [skip ci] fix several warnings reported by GH actions 2022-11-10 23:52:29 +01:00
wmayer
84d0f4fb6f Gui: fix regression: show commands of selected category in Toolbar tab 2022-11-10 23:20:18 +01:00
wmayer
a95aefdb18 Gui: use new-style connect and add curly braces to improve readability 2022-11-10 23:20:18 +01:00
wmayer
1147758787 Gui: restore fixes of DlgKeyboard.ui and DlgToolbars.ui and fix build failure 2022-11-10 23:20:18 +01:00
Zheng, Lei
1611724d39 Gui: do not remove ending puncuation when clean action title 2022-11-10 23:20:18 +01:00
Zheng, Lei
7458912b33 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
b48458673c Gu: fix readonly AccelLineEdit 2022-11-10 23:20:18 +01:00
Zheng, Lei
4b377e2c31 Gui: fix command completer selection on item activate 2022-11-10 23:20:18 +01:00
Zheng, Lei
362c781553 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
93c4c0884e 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
64bddb0d88 Gui: change Command::getRevision() to const 2022-11-10 23:20:18 +01:00
Zheng, Lei
a067f477fd Gui: fix missing separator item in Customize -> Toolbar 2022-11-10 23:20:18 +01:00
Zheng, Lei
039d1a0193 Gui: fix macro command sync in Customize -> Keyboard/Toolbar 2022-11-10 23:20:18 +01:00
Zheng, Lei
2a5190f67f Gui: move CommandCompleter into its own source file 2022-11-10 23:20:18 +01:00
Zheng, Lei
02e0af2f1d Gui: fix GroupCommand icon setup 2022-11-10 23:20:18 +01:00
Zheng, Lei
aba01ca182 Gui: fix ShortcutManager modifier detection 2022-11-10 23:20:18 +01:00
Zheng, Lei
d94953ef91 Fix build warning 2022-11-10 23:20:18 +01:00
Zheng, Lei
3f0f5cff99 Minor code change according to suggestions 2022-11-10 23:20:18 +01:00
Zheng, Lei
31d77a954b Gui: fix action title processing 2022-11-10 23:20:18 +01:00
Zheng, Lei
3e508dd7ed Fix comment typo 2022-11-10 23:20:18 +01:00
Zheng, Lei
af920dd625 Gui: fix shortcut editor 2022-11-10 23:20:18 +01:00
Zheng, Lei
1341eb635b Gui: refactor 'Customize -> Toolbars' command list handling
By reusing code in DlgCustomKeyboardImp
2022-11-10 23:20:18 +01:00
Zheng, Lei
2328284884 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
45dc6d3a49 Gui: determine the view size of the focal plane in perspective mode 2022-11-10 13:34:59 +01:00
wmayer
f503c061fc Gui: fix warnings in DlgDisplayPropertiesImp reported by GH actions 2022-11-09 14:39:00 +01:00
wmayer
b26fec66b1 Gui: use new-style connect() in DlgDisplayPropertiesImp 2022-11-09 10:20:49 +01:00
wmayer
5ab37d8cc2 Gui: use QSignalBlocker in DlgDisplayPropertiesImp 2022-11-09 09:36:43 +01:00
wmayer
4a27fa4ed5 Gui: refactor DlgDisplayPropertiesImp to avoid code duplication 2022-11-09 09:33:31 +01:00
Uwe
78c86711eb [skip ci] [Gui] DlgDisplayProperties: fix dialog height
- further changes done by Qt Designer
2022-11-09 02:14:58 +01:00
Adrian Insaurralde Avalos
fc76d37d6f Add button to set point color in Appearance task dialog 2022-11-09 02:12:20 +01:00
Chris Hennes
7d4bb806ad GUI: Remove references to MS Shell DLG2 font 2022-11-08 17:54:59 +01:00
Chris Hennes
49229576fd GUI: Limit editor fonts to fixed-width 2022-11-08 17:54:59 +01:00
Chris Hennes
afeaebe6de GUI: Default editor font to monospaced 2022-11-08 17:54:59 +01:00
luz paz
30b918dac8 Gui: Rename 'Output window' to 'Report view'
Closes #7659
2022-11-07 22:51:23 -06:00
Paddle
8d346f1bf5 Gui: Add setting enabling workbench selector to be on the menubar. Restart required. 2022-11-07 11:57:53 -05:00
wmayer
5c02a7c0e8 Gui: use braced-init-list to create LibraryInfo objects 2022-11-06 21:11:15 +01:00
wmayer
0c7c427b7e + fix build failure if SMESH support is disabled 2022-11-06 20:23:13 +01:00
wmayer
b3372a5205 Gui: [skip ci] fix several warnings reported by GH Actions 2022-11-06 15:53:18 +01:00
Uwe
6a68da4871 [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
d6a7b282d5 Core: Qt6 migration, use PySide 2022-11-06 14:09:18 +01:00
wmayer
06922ae093 Gui: [skip ci] fix several warnings reported by GH Actions 2022-11-06 13:07:34 +01:00
Uwe
d20d97d6c5 [Gui] SplashScreen: modernize Qt connection
- was reported as warning by our CI
2022-11-06 12:50:23 +01:00
Uwe
7a5019b262 [skip ci] [Gui] DlgMaterialPropertiesImp: Clang formatting 2022-11-06 03:36:53 +01:00
wmayer
d119c1c7a5 Gui/Sketcher: disable geometry deselection when user holds Ctrl or additionally Shift or Alt 2022-11-05 22:56:38 +01:00
Uwe
f3c0cfbd59 output SMESH version number in about dialog
- in order to get this info when user reports bugs
2022-11-05 17:46:34 +01:00
wmayer
927b342fbe Gui: handle std::exception and Base::Exception inside DlgPreferencesImp::createPageInGroup to avoid that the preferences dialog won't be shown at all 2022-11-05 15:47:08 +01:00