Zheng, Lei
f0e46ff71c
App/Gui: Fix auto checking 'Sync sub object' if property link editor
...
Related FreeCAD/FreeCAD#6672 case C
2022-04-10 14:31:25 +02:00
wmayer
c84c2fb6eb
Gui: clean-up Selection API
...
Replace the int of the SubType of SelectionChanges with an enum class.
The meaning of it is nowhere documented and some magic numbers like 0,1,2 are used in several places in the code.
2022-04-09 23:07:02 +02:00
wmayer
6f2167e0f2
Gui: add enum class to Selection Python API
2022-04-09 18:03:45 +02:00
wmayer
0b2c73cf32
Gui: clean-up Selection API
...
Replace the int of the 'resolve' argument of several functions with a proper enum class.
* This avoids the inconsistencies in client code where often true/false is passed when an int is expected
* This avoids the use of magic numbers like 0, 1, 2 or the undocumented 3
2022-04-09 17:03:43 +02:00
wmayer
db2236fe22
Gui: [skip ci] improve readability of SoFCColorGradient::setRange
2022-04-08 15:17:41 +02:00
wmayer
5a93f68d6f
Gui: [skip ci] avoid that mouse is stuck after opening Help page with What's This
2022-04-06 18:32:55 +02:00
0penBrain
80f692ca9c
Gui: if expression is emptied, pressing Enter discards expression
2022-04-06 13:42:18 +02:00
Uwe
bc017a7c03
[Gui] Color Gradient: handle case of min = 0
...
When the minimum is zero, we don't want scientific notation, for example for a range [0, 12.57]
2022-04-05 03:40:10 +02:00
Uwe
e34ecb0c5e
[Gui] fix color gradient label format
...
- large numbers like e.g. stress outputs were not displayed in scientific notation
- also some code style improvements and a fixed typo
2022-04-05 02:42:53 +02:00
wmayer
7f66a6e170
Gui: handle number of labels and decimals in the immediate update
2022-04-04 15:27:13 +02:00
wmayer
b9dee98063
Gui: more fixes of DlgSettingsColorGradientImp:
...
* make sure that DlgSettingsColorGradientImp::setRange() generates a valid string according to the validator settings
* change back to QLineEdit::editingFinished because for huge models an immediate update considerably slows down editing
2022-04-04 11:43:43 +02:00
Zheng, Lei
ed582bbecd
Gui: put private class to anonymous namespace
2022-04-04 04:53:52 +02:00
Zheng, Lei
ac0d56b961
Code change according to suggestion
2022-04-04 04:53:52 +02:00
Zheng, Lei
9c5963b20d
Gui: fix property enumeration editor initialization
2022-04-04 04:53:52 +02:00
Zheng, Lei
88e6121efa
Gui: support auto grouping editing for PropertyEnumeration
...
The PropertyEnumeration editor (PropertyEnumItem) will check for
separator characeter '|' in enumeration items to auto create
hierarchical groups of items using sub-menus for user to select.
2022-04-04 04:53:52 +02:00
wmayer
078ce76b88
Gui: fixes DlgSettingsColorGradientImp:
...
* handle exception in lambda function if max <= min
* fix regression of 10768fb32: a validator can be set to only one widget at a time
2022-04-03 10:51:10 +02:00
Adrian
39f4d20ead
[Macros][skip ci] change text of Addons... button to Download to help new people
2022-04-02 23:34:04 -05:00
Chris Hennes
b3ef69ef69
Gui: Fix pref pack apply crash ( Fixes #6702 )
2022-04-02 13:20:01 -05:00
0penBrain
29c3417285
Revert "Gui: [skip ci] fix a small regression caused by PR #5232 (or commit 7d649fe55)"
...
This reverts commit 350de2e367ed955b466ad7779b464b0fba79fe55.
2022-04-02 18:09:35 +02:00
wmayer
5409f1d86d
Gui: fix some issues in DlgSettingsColorGradientImp:
...
* fix regression by rounding Max/Min values when setting up dialog
* switch signals from QLineEdit::editingFinished to QLineEdit::textEdited to get changes immediately
2022-04-02 13:24:12 +02:00
wmayer
de699f81c5
Gui: automatically apply changes made in color gradient dialog
2022-04-02 12:14:42 +02:00
wmayer
c2ba7cf414
Gui: refactor DlgSettingsColorGradientImp
2022-04-02 11:41:20 +02:00
wmayer
bb19d8cb03
App/Gui: refactor ColorGradient and move all settings to ColorGradientProfile
2022-04-02 10:58:04 +02:00
Uwe
81d861ad5c
[Gui] Color gradient dialog: add missing tooltips
2022-04-02 03:22:56 +02:00
wmayer
fb86d1d5b4
Gui: change notification between SoFCColorBarBase nodes
2022-04-01 19:27:45 +02:00
wmayer
b3d8acf8e7
Gui: [skip ci] drop the _bOutInvisible member and use the corresponding function of ColorGradient instead
2022-04-01 10:39:02 +02:00
wmayer
f8c5256866
Gui: add functions setPrefEntry() and setPrefPath() to PrefWidget to avoid build failures if the attribute stdset=0 isn't set in a .ui file
2022-04-01 10:37:36 +02:00
Uwe
0ed47fb26e
[GUI] fix color gradient dialog
...
- large numbers as they appear of most simulations were not correctly displayed
- remove non-functional help button
2022-04-01 03:13:43 +02:00
Yorik van Havre
19feabd072
Merged crowdin translations
2022-03-31 11:41:28 +02:00
Yorik van Havre
1e70c425f6
Merge pull request #6694 from oficinerobotica/splash-screen
...
Update v0.20 splash screen images
2022-03-31 11:08:57 +02:00
wmayer
e08879ee16
Gui: [skip ci] replace hardcoded Alt+F4 with QKeySequence::Quit to use the appropriate shortcut for each platform
2022-03-31 08:33:38 +02:00
Uwe
17c502ce8a
[Gui] remove misleading button from About Dialog
...
- the help button in the title bar had no function but I remember people asked in the forum what it does. Since we don't use it, remove it
2022-03-31 04:15:28 +02:00
oficine robotica
2bc7955c4b
Update v0.20 splash screen images
...
As requested by @yorikvanhavre
2022-03-30 21:54:11 +02:00
Yorik van Havre
76f78654c3
Gui: Added 'open Addon Manager' to Help message box - issue #6514
2022-03-30 14:54:20 +02:00
Yorik van Havre
e392bb691d
New 0.20 splash screen
2022-03-30 13:46:16 +02:00
Yorik van Havre
12a94dfb9a
Merge branch 'master' of github.com:FreeCAD/FreeCAD
2022-03-30 10:28:41 +02:00
Yorik van Havre
8a55c797ab
Gui: Fixed wrong button on Help messaage box - issue #6514
2022-03-30 10:28:27 +02:00
Chris Hennes
5df3dbae6f
Gui: PR6497 move return statement to new line
2022-03-29 12:33:50 -05:00
0penBrain
3753a4b237
Gui: Add dual info about FC + OS locale in full information
...
+ clean some horrible old code
2022-03-29 10:26:49 +02: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
0penBrain
63d211dca9
Gui: improve a bit number format selection
2022-03-29 10:26:49 +02:00
0penBrain
eb38017828
Gui: fix locale number formatting propagation
2022-03-29 10:26:49 +02:00
wmayer
650b2f3073
Gui: fix several regressions in DlgSettingsColorGradientImp
...
* make line edit fields wide enough to not truncate the text
* fix error: Unhandled Base::Exception caught in GUIApplication::notify.
2022-03-29 08:49:42 +02:00
Chris Hennes
20a0003cfb
Gui: PR4556 Step 3: sort QGridLayout by row-col
2022-03-28 10:43:21 -05:00
Chris Hennes
32829c8423
Gui: PR4556 Step 2: remove native=true
2022-03-28 10:43:21 -05:00
wmayer
b50ec016bd
Gui: fixes #6663 : [Bug] Decimal separator not chosen by locale system settings anymore
2022-03-28 15:38:51 +02:00
Uwe
1aadb84b6f
[Gui] fix for DlgSettingsColorGradient dialog
...
- we have cases where the max = min is correct. For example in the FEM DataAtPoint filter - since it is a point, max = min.
2022-03-28 12:27:43 +02:00
Uwe
4bfee097e1
[skip CI] [Gui] some UI improvements for the color gradient dialog
...
- mostly by Qt Designer
- also some code style fixes by MSVC
2022-03-28 10:38:19 +02:00