Commit Graph

28 Commits

Author SHA1 Message Date
Uwe
70decbebf5 [Gui] DlgMacro etc.: remove unused includes 2022-03-16 23:41:14 +01:00
luz paz
79d2a192fc [GUI] Adjust Preferences dialog display position to be fully visible.
based on [commit](b1effe2250)
forum thread [thread](https://forum.freecadweb.org/viewtopic.php?f=8&t=66410)  
This PR replaces #6398
2022-02-20 21:55:12 -06:00
Uwe
bb4e6e477c [Gui] improvements for PCH builds 2022-02-19 06:38:45 +01:00
Chris Hennes
40171d7858 [GUI] Add PreferencePack support
Preference Packs are collections of preferences that can be applied en
mass to the user's current setup. Any preference that can be stored in
user.cfg can be stored in a preference pack, and they are designed to be
easy to distribute.

Support is also added for saving a subset of current preferences into a
new preference pack in order to facilitate easy creation of new
"themes", etc.
2021-05-13 09:08:33 -05:00
Chris Hennes
098d7b9aee [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +02:00
Chris Hennes
224a9186af Fix minor issues with Workbenches preference panel
This fixes three issues with the new Workbench Loader preferences panel reported by users:
* Some icons were not being properly scaled to the new 48x48 size
* Some text was being incorrectly cut off, despite fitting in the column
* The sort order of the workbenches was incorrect when external workbenches were added
2021-02-05 13:22:00 +01:00
Chris Hennes
249a5868d4 Add Workbench name as Tab item tooltip
In cases where the user's font is large or the Workbench name is long,
the new, narrower sidebar may not display the entire workbench name. To
address those cases, the tooltip for the element is now also set to the
workbench name. Thanks to Github user @marioalexis84 for the suggestion.
2021-02-04 19:40:31 +01:00
Chris Hennes
5730dac889 Fix bug due to early return
Github user @marioalexis84 found a bug that caused only the first page
of the most recently-added workbench to show. This refactors the
AddPage() static function to eliminate the early return statement that
was the cause of that bug.
2021-02-04 19:40:13 +01:00
Chris Hennes
be9b557dd6 Add pref window that loads unloaded workbenches
A new group is added to the Preferences window that explains why
some preferences may appear to be missing due to the workbench being
unloaded. It lists the unloaded workbenches, and offers to load them,
updating the preferences dialog as necessary.

This at least partially resolves issue #4474.
2021-02-04 19:38:57 +01:00
luz paz
38815b9550 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
e89508355f Gui: [skip ci] fix warning when opening preferences dialog in debug mode
The warning is e.g.: QWindowsWindow::setGeometry: Unable to set geometry 570x454+1524+350 on QWidgetWindow/'Gui__Dialog__DlgPreferencesWindow
2020-07-10 12:53:29 +02:00
wmayer
cff0638672 Qt5: QDesktopWidget is deprecated use QScreen [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
d0db1daff7 fixes 0003848: Preferences dialog not fully visible 2019-02-23 16:28:39 +01:00
wmayer
e23db2e313 PVS: V773 A memory leak is possible 2019-02-17 18:40:06 +01:00
Silas
895a920b19 Improve readability with some comments 2019-01-03 11:43:43 +01:00
wmayer
aef839b3e3 issue #0002733: Preferences dialog box 2016-10-16 08:14:29 +02:00
wmayer
e2398b4b06 fix Coverity issues 2016-08-21 14:03:02 +02:00
Mateusz Skowroński
6942c23895 Qt4's qglobal.h defined TRUE and FALSE. Qt5 does not do it anymore. Replace it with true and false.
158f39ec78

This change is Qt4/Qt5 neutral.
2016-01-05 16:43:33 +01:00
Mateusz Skowroński
f48f0f69be Qt::WFlags is obsolete in Qt5. Replace it with Qt::WindowFlags.
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:58 +01:00
Mateusz Skowroński
c275b35d48 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Mateusz Skowroński
05f95c0506 Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
2e672847ab + fixes #0002106: Add 'Default' option in Preferences 2015-09-15 00:12:40 +02:00
wmayer
b80bbaaed8 + fixes #0001925: Preferences not kept well 2015-01-23 19:41:31 +01:00
wmayer
bb5c41dfc3 + issue #0000953: No scroll bar on preferences dialog window 2014-03-09 15:04:44 +01:00
wmayer
06b0928ad0 + issue #0000953: No scroll bar on preferences dialog window 2014-03-09 13:03:49 +01:00
wmayer
d2501d4cc8 + use dialog button box where possible, replace old Python icon 2014-03-08 15:17:56 +01:00
wmayer
224f5dff78 Allow also other file types for group icons in preference page when size is 96x96 2012-07-28 16:01:46 +02:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00