Commit Graph

4281 Commits

Author SHA1 Message Date
wmayer
f565fa2f7a Gui: refactor PythonWrapper 2023-01-01 17:42:25 +01:00
wmayer
6358ad1717 Gui: refactor PythonWrapper 2023-01-01 16:35:12 +01:00
wmayer
102e89988a Gui: switch to new-style connect in order to find build failures with Qt6 2023-01-01 12:40:07 +01:00
wmayer
3e58513c24 Mod: fix some compiler warnings:
* QString::indexOf() is now marked as [[nodiscard]]
* QApplication::fontMetrics() is deprecated, use the constructor of QFontMetricsF
* fix -Wunused-result
* fix -Wunused-but-set-variable
2022-12-31 21:54:45 +01:00
wmayer
fec35dfdc5 Gui: QVariant::Type is deprecated, use QMetaType::Type 2022-12-31 21:54:45 +01:00
wmayer
81d2361d9f Gui: Qt6 port
* QString::indexOf() is now marked as [[nodiscard]]
* Replace deprecated methods of QMessageBox
* QMouseEvent::globalPos() is deprecated, use globalPosition().toPoint()
* QWidget::enterEvent() requires a QEnterEvent as argument
* QLibraryInfo::location() is deprecated, use path()
* QVariant::Type is deprecated, use QMetaType::Type
* QVariant::canConvert(int) is deprecated, use QVariant::canConvert(QMetaType) or QVariant::canConvert<T>()
* QMessageBox::standardIcon is deprecated, use QStyle::standardIcon()
* Replace deprecated method QMessageBox::question(), ...
* QApplication::fontMetrics() is deprecated
* QDropEvent::mouseButtons() is deprecated, use buttons()
* QDropEvent::keyboardModifiers() is deprecated, use modifiers()
* Constructor of QFontDatabase is deprecated, use static methods instead
* Qt::AA_DisableHighDpiScaling is deprecated
* Qt::AA_EnableHighDpiScaling is deprecated
* Qt::AA_UseHighDpiPixmaps is deprecated
2022-12-31 21:54:45 +01:00
wmayer
5e408445be Gui: expose Document::save()/saveAs() to Python 2022-12-31 13:01:20 +01:00
Chris Hennes
8997802ce9 GUI: Minor translation issues 2022-12-27 21:44:11 -06:00
wmayer
3c709f31df Gui: make unit tests working from command line if Gui is up 2022-12-24 19:13:40 +01:00
wmayer
f9718ded22 Gui: [skip ci] fix incorrect tool tip 2022-12-23 14:35:58 +01:00
wmayer
b8d2a88102 Gui: fix several warnings reported by GH actions 2022-12-22 20:26:39 +01:00
wmayer
eb31752998 Gui: [skip ci] move widget() handling to MDIViewPyWrapImp 2022-12-22 16:48:41 +01:00
wmayer
53e93c4363 Gui: include header for QPrinter 2022-12-22 16:28:01 +01:00
wmayer
c1d77ee7c6 Gui: support of MDI views written in Python that implements onMsg() or onHasMsg(): fixes #8071 2022-12-22 16:20:37 +01:00
wmayer
caa7eb36f9 Gui: support of QPrintSupport module in PythonWrapper 2022-12-22 16:18:18 +01:00
wmayer
1e02e70d38 Gui: default implementation of MDIView::print(), MDIView::printPdf() and MDIView::printPreview() 2022-12-22 16:17:29 +01:00
Yorik van Havre
8890f229ba Regenerated ts files using lupdate6.6 2022-12-22 15:39:42 +01:00
Yorik van Havre
ec12763278 Fixed ts files 2022-12-22 13:34:31 +01:00
wmayer
7d221f10c1 Gui: [skip ci] fix build failure due to missing include 2022-12-22 11:01:23 +01:00
Abdullah Tahiri
bcc65d2fbb 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
793a70b0e2 Gui: Set status bit when restoring is initiated by the user from the UI 2022-12-21 16:01:23 +01:00
Abdullah Tahiri
6cb616aeb8 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
b5c5d0af95 Merged crowdin translations 2022-12-20 10:01:00 +01:00
Yorik van Havre
a95b7dc4b5 Updated ts files 2022-12-20 09:31:25 +01:00
Uwe
83a7c57b68 [skip ci] [Gui] change default navigation orbit style back to trackball 2022-12-20 03:35:24 +01:00
Nabos
9cda82cf20 Gui: Added FreeTurntable orbit style (#8048)
* Added FreeTurntable orbit style
2022-12-20 03:21:46 +01:00
wmayer
e171a1f6e1 Gui: enable range check in QuantitySpinBox when opening expression editor 2022-12-19 14:46:31 +01:00
wmayer
d7957531f2 Gui: enable range check in QuantitySpinBox when opening expression editor 2022-12-19 13:48:26 +01:00
wmayer
9cc78c4d9e Gui: support of range checks in DlgExpressionInput 2022-12-19 13:47:15 +01:00
wmayer
9c8b255660 Gui: simplify logic of Placement dialog 2022-12-16 17:49:22 +01:00
wmayer
d6d3369856 Gui: refactor Placement dialog 2022-12-16 15:33:52 +01:00
wmayer
36aae6f24e Gui: refactor Placement dialog 2022-12-16 12:00:56 +01:00
wmayer
9e702c016b App: handle sub-components in PropertyRotation 2022-12-14 21:21:02 +01:00
Ajinkya Dahale
82afba7459 [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
0533550f95 remove some unnecessary Boolean checks
- checks for true/false and nullptr
2022-12-12 21:17:49 -06:00
wmayer
787a37be82 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
2f575a3c91 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
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
Uwe
035546b05c [Sketch] Gui: improve precompiled headers 2022-12-11 23:59:28 +01:00
Uwe
b4bd8d9f6c [Mesh] Gui: enable precompiled header 2022-12-10 01:35:55 +01:00
Uwe
f709f39ce7 [Iamge] Gui: enable precompiled header 2022-12-09 02:11:44 +01:00
Uwe
91efe220a5 [skip ci] [Gui] QtAll.h: whitespace 2022-12-08 03:29:28 +01:00
Uwe
3b1580136b [Surface] App:: remove unused includes
- also some sorting
2022-12-08 00:34:08 +01:00
Uwe
e6b3d5aded [PD] improve PreCompiled.h handling 2022-12-07 21:31:16 +01:00
wmayer
302d3f5b95 Core: allow to set file filter from PropertyFileIncluded 2022-12-07 12:58:07 +01:00
wmayer
633fb4488a Gui: [skip ci] fix several warnings:
* -Wunused-variable
* -Wunused-lambda-capture
2022-12-05 12:22:22 +01:00
wmayer
ab41f7d091 Gui: [skip ci] fix warnings: [-Winconsistent-missing-override] 2022-12-05 12:02:45 +01:00
wmayer
313525a012 Core: [skip ci] ignore some code spell checks and filter all '_rc_.py' files 2022-12-05 10:12:49 +01:00
Uwe
9869a2c3d7 [Build] output point release version
- to Splashscreen, About, MainWindow and Console
2022-12-05 00:26:43 +01:00