Commit Graph

5762 Commits

Author SHA1 Message Date
Abdullah Tahiri
07f85212af Gui: Handle user notifications
==============================

This commit provides specific behaviour on how to handle user messages signalled by App::Document for the different types of notifications.

For critical messages DURING a user initiated restore (i.e. only if the user clicked in the UI, not applicable for macros or Python initiated):
- The first critical message during restore requires user confirmation by clicking a button in a modal dialog box. The user has the choice to
request to be asked for confirmation for any subsequent critical message during restore or to forgo confirmation.
- If he chooses to forgo confirmation, subsequent critical messages are shown as auto-closing non-modal dialogs in a non-intrusive way. The user
can continue working while this information is shown. There is a maximum of auto-closing non-modal dialgos that can be enqueued. Over this maximum,
A warning pop up indicates this situation, referring to the Report View. No further auto-closing messages are enqueued until all existing messages
have disappeared. This is done to prevent overwhelming the user with notifications in cases where malfunction causes too many notifications to be
generated.

For any type of message OUTSIDE a user initiated restore:
- Messages are shown as non-intrusive non-modal auto-closing messages (it is not possible to generate modal/blocking messages outside a user
initiated restore).
- Messages are enqueued respecting a limit as above.
2022-12-21 16:01:23 +01:00
Abdullah Tahiri
4ac0702bb3 Gui: Set status bit when restoring is initiated by the user from the UI 2022-12-21 16:01:23 +01:00
Abdullah Tahiri
907a0a6de9 Gui:: Application - user initiated restore status bit
=====================================================

Add Status bits. Currently only to mark whether an UI operation of restore was initiated by the user (via click in the open dialog or in the hyperlink of the shortcuts of the home page).
2022-12-21 16:01:23 +01:00
Yorik van Havre
3376e387da Merged crowdin translations 2022-12-20 10:01:00 +01:00
Yorik van Havre
d206d5cd1f Updated ts files 2022-12-20 09:31:25 +01:00
Uwe
e3d2b607a9 [skip ci] [Gui] change default navigation orbit style back to trackball 2022-12-20 03:35:24 +01:00
Nabos
0c267efb30 Gui: Added FreeTurntable orbit style (#8048)
* Added FreeTurntable orbit style
2022-12-20 03:21:46 +01:00
wmayer
64f421d815 Gui: enable range check in QuantitySpinBox when opening expression editor 2022-12-19 14:46:31 +01:00
wmayer
ae54a88cc7 Gui: enable range check in QuantitySpinBox when opening expression editor 2022-12-19 13:48:26 +01:00
wmayer
b77ad300a2 Gui: support of range checks in DlgExpressionInput 2022-12-19 13:47:15 +01:00
wmayer
0925d9a47e Gui: simplify logic of Placement dialog 2022-12-16 17:49:22 +01:00
wmayer
89c24714df Gui: refactor Placement dialog 2022-12-16 15:33:52 +01:00
wmayer
1b693dbf7e Gui: refactor Placement dialog 2022-12-16 12:00:56 +01:00
wmayer
9fac4a79ee App: handle sub-components in PropertyRotation 2022-12-14 21:21:02 +01:00
Ajinkya Dahale
8ef77072f0 [GUI] Add missing include
This `memory` header is needed for `unique_ptr`, at least on Manjaro/Arch Linux with GCC.
2022-12-14 14:37:42 +01:00
Uwe
2b9a28e0ec remove some unnecessary Boolean checks
- checks for true/false and nullptr
2022-12-12 21:17:49 -06:00
wmayer
184afd9761 Gui: fix View3DInventorViewer's getViewProviderByPath, getViewProviderByPathFromTail, getViewProvidersOfType
The View3DInventorViewer only contains the top-level view providers which caused unexpected behaviour when using the three methods above. Thus, in client code they haven't been used any more.
Now the methods internally invoke the corresponding methods of the document. This allows it in client code to directly call the appropriate methods again (LoD).
2022-12-12 16:41:58 +01:00
MrBlock
20329514c5 Fix bug #7563 where menus and tooltips are not visible in fullscreen mode on windows systems. (#8027)
* Fix bug where menus and tooltips are not visible in fullscreen mode on windows systems.
2022-12-12 12:44:36 +01:00
luz paz
26cf9e771f Add missing brackets + change indentation to spaces 2022-12-12 11:38:06 +01:00
luz paz
f17b73a7bf Cleanup: move return statement to new line + trailing
Follow-up to #6497
2022-12-12 11:38:06 +01:00
Uwe
5e2fb4fb62 [Sketch] Gui: improve precompiled headers 2022-12-11 23:59:28 +01:00
Uwe
9b76d44be0 [Mesh] Gui: enable precompiled header 2022-12-10 01:35:55 +01:00
Uwe
79e169a5de [Iamge] Gui: enable precompiled header 2022-12-09 02:11:44 +01:00
Uwe
fe18f04cf3 [skip ci] [Gui] QtAll.h: whitespace 2022-12-08 03:29:28 +01:00
Uwe
101ac1175d [Surface] App:: remove unused includes
- also some sorting
2022-12-08 00:34:08 +01:00
Uwe
0424ddc598 [PD] improve PreCompiled.h handling 2022-12-07 21:31:16 +01:00
wmayer
4f5600fa77 Core: allow to set file filter from PropertyFileIncluded 2022-12-07 12:58:07 +01:00
wmayer
3c7d30dd07 Gui: [skip ci] fix several warnings:
* -Wunused-variable
* -Wunused-lambda-capture
2022-12-05 12:22:22 +01:00
wmayer
9c82596ba9 Gui: [skip ci] fix warnings: [-Winconsistent-missing-override] 2022-12-05 12:02:45 +01:00
wmayer
1a56033e74 Core: [skip ci] ignore some code spell checks and filter all '_rc_.py' files 2022-12-05 10:12:49 +01:00
Uwe
aef629ece1 [Build] output point release version
- to Splashscreen, About, MainWindow and Console
2022-12-05 00:26:43 +01:00
Chris Hennes
815a39b854 Gui: Temporarily disable tree icon height call 2022-12-03 17:08:17 -06:00
Zheng, Lei
5d0402321e Gui: fix transparency saving in PrefColorButton 2022-12-03 17:08:17 -06:00
Zheng, Lei
0cfec4061a Gui: support more parameter types in PrefComboBox
Using a user defined property 'prefType'
2022-12-03 17:08:17 -06:00
Zheng, Lei
b141f8f491 Gui: split out TreeParams into its own source files
Auto generated using TreeParams.py
2022-12-03 17:08:17 -06:00
Zheng, Lei
01f7782124 Base/App: add new signal interface to Parameter
Added new signal interface using boost::signals2 signalParamChanged.

Exposed to Python as ParameterGrpPy.AttachManager() to monitor changes
to all parameters, sub groups under the referring group.

Added new attribute for ParameterGrp(Py) to query the Parent and Manager
of the referring group.
2022-12-03 17:08:17 -06:00
luz paz
818e2b2841 Gui: fix trailing whitespace 2022-12-02 19:18:54 -06:00
luz paz
07d34012dd L10N: Don't translate strings that dont contain any alphabetic character
Per 0penBrain's suggestion
2022-12-02 11:57:34 +01:00
luz paz
772fe258b9 L10N: Don't translate "..." string
Follow-up to 1d001afcc7
2022-12-02 11:57:34 +01:00
Chris Hennes
1cbd981e1e Gui: Don't translate "..."
With no context, translators can't figure out what to do with it.
2022-12-01 19:47:49 -06:00
berniev
90eda3da47 cast max 2022-12-02 00:50:00 +01:00
berniev
5a5394516e fix invalid unicode 2022-12-01 12:56:58 +01:00
luz paz
056d1aea87 Fix various typos and grammatical issues 2022-11-30 12:45:29 +01:00
Zheng, Lei
637c53b8c5 Gui: hiding detail dependency information in DlgObjectSelection 2022-11-30 01:36:01 +01:00
wmayer
6653991a97 Gui/Mod: handle several compiler warnings:
* ignore -Wfree-nonheap-object for generated code
* replace 0 with Qt::NoModifier when creating a QKeyEvent
* in Qt 5.14 QCombobox::activated(QString) is deprecated, use textActivated
* don't mix QCheckBox::setChecked() with tristate API
2022-11-29 10:36:02 +01:00
Uwe
8f968384f8 [skip ci] [Gui] NaviCube: remove tabs
- as detected by the CI
2022-11-29 01:38:34 +01:00
Adrian Insaurralde Avalos
3db6da540d [fixes #7875] Gui: use hexagon shape in NaviCube corners
makes the corners bigger and therefore easier to click

fix inconsistent NaviCube borders


Co-authored-by: Rexbas <rexbasie@gmail.com>
2022-11-29 01:31:48 +01:00
luz paz
52764d93f5 Gui: fix header uniformity
Make uniform all Gui/ directory headers.
2022-11-28 08:39:38 -06:00
wmayer
d038801aca Gui: move class SelectionObserverPython to its own source files 2022-11-22 15:44:26 +01:00
0penBrain
5429aeef3f Gui: ActionGroup also get its tooltip title updated 2022-11-21 04:06:20 +01:00