Commit Graph

77 Commits

Author SHA1 Message Date
Chris Hennes
001c79f459 Gui: Translate unit system UI 2023-05-15 20:16:46 -05:00
Chris Hennes
dbc71090f1 GUI: Transform sr-CS to sr_Latn in menu entry 2023-04-28 17:16:03 -05:00
Paddle
0a5e85d6c7 pref: general: connect comboBox_UnitSystem manually. Fix System unit tooltip string 2023-04-01 16:30:51 +02:00
Paddle
805745599c Pref: Remove Unit tab and move settings back to main page. 2023-04-01 16:30:51 +02:00
Paddle
0e2bc871e8 Changed copyright texts of modified pages. 2023-03-28 15:18:28 +02:00
Paddle
2fe2da2c4e Preferences: Workbench: Move startup workbench to workbench page 2023-03-28 12:09:03 +02:00
Paddle
9f904ae04f Preference: Move workbench selector position to the workbench preference page. 2023-03-28 11:59:32 +02:00
wmayer
64771f3d4d Gui: fix some lint warnings 2023-03-27 15:49:17 +02:00
wmayer
5e257feb65 Gui: add method isEnabledDecimalPointConversion() to Translator
and use it in DlgGeneralImp::setDecimalPointConversion to fix annoying warning in debug builds
2023-03-27 15:49:17 +02:00
luz paz
7637d58df0 Add missing brackets + change indentation to spaces 2022-12-12 11:38:06 +01:00
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