Commit Graph

67 Commits

Author SHA1 Message Date
luz paz
80efe8191e Cleanup: move return statement to new line + trailing
Follow-up to #6497
2022-12-12 11:38:06 +01:00
wmayer
951ea0a768 Gui: fix clazy warnings:
* Wclazy-connect-by-name
* Wclazy-connect-3arg-lambda
2022-11-13 16:08:46 +01:00
wmayer
0679c40d26 Gui: fix readability-identifier-length 2022-11-12 23:57:14 +01:00
wmayer
6a8468f5bd Gui: implement WorkbenchSwitcher class to encapsulate the parameter details 2022-11-11 22:53:02 +01:00
wmayer
c966c98614 Gui: simplify code to handle workbench selector
+ replace three boolean parameters with a single string parameter
+ refactor DlgGeneralImp::saveSettings/loadSettings
+ handle visibility of corner widgets
2022-11-11 22:53:02 +01: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
b1343cc13c Gui: fix some minor warnings reported by GH Actions 2022-11-03 13:58:07 +01:00
0penBrain
3eadba2b21 Gui: add decimal point converter to Translator 2022-11-03 13:41:06 +01:00
Chris Hennes
dc2bf6c754 Gui: Add importing CFG to PrefPack dialog 2022-09-15 22:44:18 -05:00
berniev
75acacd1b7 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
ff876bf72c 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
66d0c35dc7 Gui: Fix pref pack apply crash (Fixes #6702) 2022-04-02 13:20:01 -05:00
0penBrain
c22d37a82c Gui: Default Translator::SetLocale to OS locale + simplify code 2022-03-29 10:26:49 +02:00
0penBrain
ec3c905b6b 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
21e5a41480 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
bba7719cd1 Gui: fixes #6663: [Bug] Decimal separator not chosen by locale system settings anymore 2022-03-28 15:38:51 +02:00
0penBrain
e3bc06a341 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
eb0e8e215a [Gui] DlgEditor etc.: remove unused includes 2022-03-16 22:57:13 +01:00
wmayer
2dc78804b6 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
cf49fc7c6d 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
973eb27d7e 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
a7e356c865 Preference Packs: Add revert to backup option 2022-02-20 22:12:09 -06:00
Chris Hennes
7a566ea4d8 Gui: Add interface for managing preference packs 2022-02-17 19:51:24 -06:00
marioalexis
19668d2924 Gui: Add option to enable/disable text cursor blinking 2022-01-29 11:05:31 +01:00
marioalexis
ec167207bf Gui: Add functionality to enable/disable block shape cursor in text editor and console 2022-01-26 11:53:29 +01:00
0penBrain
dc4a8e5beb [Gui] Decimal separator substitution : add option in Preferences 2021-11-27 04:30:17 +01:00
Chris Hennes
1076ba0df5 [Gui] PrefPacks - remove "type" parameter
In display, show the "tags" instead.
2021-10-11 13:22:28 -05:00
Chris Hennes
c8a019c312 Improve display of Apply button 2021-09-25 17:17:35 -05:00
Chris Hennes
4427de68c2 Redesign pref pack GUI 2021-09-24 16:09:17 -05:00
Chris Hennes
01ba4030ff Clean up missing directory behavior 2021-08-24 11:49:07 -05:00
Chris Hennes
85b32bb3c8 Fix Linux compilation bugs 2021-08-23 14:43:30 -05:00
Chris Hennes
ada7327dee Enabled Manage... button to show directory 2021-08-21 14:12:51 -05:00
Chris Hennes
554ea62cd1 Add code to ensure unique preference pack names. 2021-08-19 12:29:08 -05:00
Chris Hennes
858e88afe1 [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
50c7ee36bf [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +02:00
luz paz
298c677873 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
e1cfaf1298 Gui: [skip ci] handle case if an absolute path to a qss file is set 2020-06-18 12:34:43 +02:00
wmayer
ec8b1bc072 [skip ci] use QLocale class consistently to make it possible to change it application-wide 2020-03-26 16:37:45 +01:00
wmayer
d496e714c9 Gui: move handing of style sheets to Application::setStyleSheet to avoid code duplication 2020-03-19 15:57:20 +01:00
triplus
af5e7abe46 Use relative path to stylesheet fix #4130 2020-03-19 14:25:03 +01:00
Zheng, Lei
a8e048ec1f Gui: fix tree view mode option in general preference 2020-02-08 13:12:30 +01:00
wmayer
298b1d49ac Gui: [skip ci] clear language combo box when loading settings 2020-01-17 22:57:25 +01:00
Markus Lampert
c6c761b812 Added <last> as an option to the workbench selection. 2019-11-01 17:42:14 -03:00
Zheng, Lei
c18bf11821 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
c3fb5edc41 allow to define custom background images 2019-03-06 11:09:14 +01:00
wmayer
55160676d3 fixes 0003880: list of languages is not sorted in the preferences settings 2019-03-05 17:50:15 +01:00
wmayer
f29df543c2 remove unused controls from General preference page 2019-03-04 15:18:05 +01:00
wmayer
3297399542 fix possible crash when saving preferences 2018-04-17 19:44:26 +02:00
wmayer
1ec3e5da82 workaround for broken tree indicators with Qt 5.6 under Windows 2017-05-21 10:02:26 +02:00
Kurt Kremitzki
b68fa265c6 Fix preferences Python console bug 2017-03-23 20:19:35 -05:00