Commit Graph

59 Commits

Author SHA1 Message Date
Chris Hennes
532e509dc2 Gui: Add importing CFG to PrefPack dialog 2022-09-15 22:44:18 -05:00
berniev
ae53c9b0a4 Gui: Use auto and range-based for (#7481)
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto. 
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
wmayer
71caf67686 Gui: clear combo boxes before re-filling them, fix handling of icon size in preferences pack 2022-08-12 14:08:04 +02:00
Chris Hennes
b3ef69ef69 Gui: Fix pref pack apply crash (Fixes #6702) 2022-04-02 13:20:01 -05:00
0penBrain
7a74ae01d3 Gui: Default Translator::SetLocale to OS locale + simplify code 2022-03-29 10:26:49 +02:00
0penBrain
32f6443bd4 Gui: fix (another) algorithmic issue in number format change
'localeIndex' shall be updated not only at settings loading but each time
 settings are saved, otherwise it can lead to unexpected behavior (number
 format not took into account) when changing number format back and forth
 and only using 'Apply' button.
2022-03-29 10:26:49 +02:00
0penBrain
c6ea26a70c Gui: fix algorithmic issue in language change
If number format mode is "Selected language", even if this mode isn't modified,
 we need to force 'setLocale' to update if "Language" has been changed
2022-03-29 10:26:49 +02:00
wmayer
b50ec016bd Gui: fixes #6663: [Bug] Decimal separator not chosen by locale system settings anymore 2022-03-28 15:38:51 +02:00
0penBrain
f043cb5ca5 Gui: add preference to use selected language number formatting, fixes #6330
If not enabled (default), will defaults to C/POSIX formatting
2022-03-17 16:46:01 +01:00
Uwe
b7a6c51cdb [Gui] DlgEditor etc.: remove unused includes 2022-03-16 22:57:13 +01:00
wmayer
b78dc894e1 Core: Fix several coverity issues:
* CID 350582: Big parameter passed by value
* CID 350639: Big parameter passed by value
* CID 305234: Uncaught exception
* CID 316529: Uncaught exception
* CID 350597: Uncaught exception
* CID 350623: Uncaught exception
* CID 332690: Uncaught exception
* CID 332700: Unchecked return value
* CID 350576: Uninitialized scalar field
* CID 350587: Uninitialized scalar variable
* CID 192606: Uninitialized scalar field
* CID 332699: Uninitialized pointer field
* CID 350561: Dereference null return value
* CID 350610: Dereference null return value
* CID 350567: Dereference after null check
2022-03-13 13:53:32 +01:00
wmayer
fce7e11636 Gui: Attach PythonConsole to parameter group and handle changes in its OnChange() method
This avoids code duplications and makes sure the group name is used only once.
The parameters are saved to the group 'PythonConsole' instead of 'General'.
2022-02-21 19:26:44 +01:00
wmayer
71a6ffde35 Gui: move Python console specific settings to its own tab because General is quite overloaded 2022-02-21 17:49:27 +01:00
Chris Hennes
3ecd0cd0f0 Preference Packs: Add revert to backup option 2022-02-20 22:12:09 -06:00
Chris Hennes
b7056b94b9 Gui: Add interface for managing preference packs 2022-02-17 19:51:24 -06:00
marioalexis
21d7fd92c5 Gui: Add option to enable/disable text cursor blinking 2022-01-29 11:05:31 +01:00
marioalexis
0a6a0dd499 Gui: Add functionality to enable/disable block shape cursor in text editor and console 2022-01-26 11:53:29 +01:00
0penBrain
1f6608aff0 [Gui] Decimal separator substitution : add option in Preferences 2021-11-27 04:30:17 +01:00
Chris Hennes
d0b867bdd5 [Gui] PrefPacks - remove "type" parameter
In display, show the "tags" instead.
2021-10-11 13:22:28 -05:00
Chris Hennes
abf031d4bf Improve display of Apply button 2021-09-25 17:17:35 -05:00
Chris Hennes
c2e1f9937d Redesign pref pack GUI 2021-09-24 16:09:17 -05:00
Chris Hennes
5aaaf17570 Clean up missing directory behavior 2021-08-24 11:49:07 -05:00
Chris Hennes
18d73580ae Fix Linux compilation bugs 2021-08-23 14:43:30 -05:00
Chris Hennes
76d666779d Enabled Manage... button to show directory 2021-08-21 14:12:51 -05:00
Chris Hennes
080e2ea198 Add code to ensure unique preference pack names. 2021-08-19 12:29:08 -05: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
luz paz
38815b9550 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
3d2694d536 Gui: [skip ci] handle case if an absolute path to a qss file is set 2020-06-18 12:34:43 +02:00
wmayer
e14e5b845e [skip ci] use QLocale class consistently to make it possible to change it application-wide 2020-03-26 16:37:45 +01:00
wmayer
522eefba4f Gui: move handing of style sheets to Application::setStyleSheet to avoid code duplication 2020-03-19 15:57:20 +01:00
triplus
873769d021 Use relative path to stylesheet fix #4130 2020-03-19 14:25:03 +01:00
Zheng, Lei
c89a62ba52 Gui: fix tree view mode option in general preference 2020-02-08 13:12:30 +01:00
wmayer
8e8fb953e4 Gui: [skip ci] clear language combo box when loading settings 2020-01-17 22:57:25 +01:00
Markus Lampert
d5820329c5 Added <last> as an option to the workbench selection. 2019-11-01 17:42:14 -03:00
Zheng, Lei
81d3cf1b89 Gui: refactor tree view
* Major refactor of tree view to support external linking.

* Item update and selection change are now mostly handled by timer for
  performance improvement.

* Major change to drag and drop for better support of switching between
  copy, move and replace action, and auto adjustment of placement and
  relative link.

* Add second column for user changable object description.

* Unified tree view options and action into command group
  Std_TreeViewActions.

* Modified object search function to find external objects using
  Expression syntax.
2019-08-17 15:08:33 +02:00
wmayer
25f180e4d3 allow to define custom background images 2019-03-06 11:09:14 +01:00
wmayer
1df86be0b1 fixes 0003880: list of languages is not sorted in the preferences settings 2019-03-05 17:50:15 +01:00
wmayer
e561a4a015 remove unused controls from General preference page 2019-03-04 15:18:05 +01:00
wmayer
adfa72051f fix possible crash when saving preferences 2018-04-17 19:44:26 +02:00
wmayer
769bc97f63 workaround for broken tree indicators with Qt 5.6 under Windows 2017-05-21 10:02:26 +02:00
Kurt Kremitzki
50a5f64037 Fix preferences Python console bug 2017-03-23 20:19:35 -05:00
Kurt Kremitzki
f60dd25fb8 Add persistence to Python console word wrap 2017-02-07 10:58:38 -02:00
Alexander Gryson
bea0099fd9 Show current icon size if not in list 2017-01-30 18:19:13 +01:00
Alexander Gryson
16e9208038 Show icon units 2017-01-30 18:19:12 +01:00
Alexander Gryson
6cc58b1518 Remove reliance on PM_ToolBarIconSize 2017-01-30 18:19:12 +01: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
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
0695552cff QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
wmayer
d126506fca + event to restore/clear action style scheme 2015-07-09 23:08:10 +02:00