Commit Graph

4474 Commits

Author SHA1 Message Date
Abdullah Tahiri
251022cfc9 NotificationArea: Preference pages clang-formatting 2023-03-26 11:33:57 +02:00
Abdullah Tahiri
ef84d56970 NotificationArea: Preference page to control warnings and errors 2023-03-26 11:33:57 +02:00
Abdullah Tahiri
ddd9a97211 NotificationArea: subscription to errors and warnings
=====================================================

Subscription to errors and warnings is controlled by parameters.
2023-03-26 11:33:57 +02:00
wmayer
32d0ac6417 Gui: by default restore the last visited page in the preferences dialog
See also: https://forum.freecad.org/viewtopic.php?t=77071
2023-03-25 18:23:09 +01:00
wmayer
c579db1ee0 Gui: fix failure of QMetaObject::connectSlotsByName
because in Qt6 QSpinBox::valueChanged(QString) and QComboBox::activated(QString) have been removed
2023-03-24 22:11:24 +01:00
wmayer
f30a6c634a Gui: fix some lint warnings 2023-03-24 21:19:27 +01:00
wmayer
2082329223 Gui: move built-in Python code of DlgProjectUtility to script file 2023-03-24 19:50:49 +01:00
0penBrain
081c23e514 Gui: use QActionGroup signal for dimension indicator change handling 2023-03-24 19:31:41 +01:00
0penBrain
6bd88f64db Gui: add live retranslation to dimension indicator 2023-03-24 19:31:41 +01:00
0penBrain
6a3e6ec46b Gui: dimension indicator moved to custom widget to handle unit schema change in other places 2023-03-24 19:31:41 +01:00
0penBrain
3ed1ce28ee Gui: change dimension indicator from QToolButton to QPushButton for lighter style
Consistency with navigation style indicator

 Also fix typo in function name and remove comment
2023-03-24 19:31:41 +01:00
Uwe
e004c5bab9 [Gui] Application.cpp: fix too long lines
- for better readability (less scrolling in the IDE)
2023-03-24 04:38:45 +01:00
Chris Hennes
633eb24f88 Merge pull request #8955 from wwmayer/issue_8556
Move image loading to core
2023-03-22 16:00:43 -05:00
Abdullah Tahiri
48a921d2b7 NotificationBox: Clang format 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
26e48cb63a NotificationArea: Clang format 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
23739bc2d0 NotificationArea: Change Icon color to indicate missed notifications 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
c2b48fbe91 Resources: New Intray icon 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
885824f8c8 NotificationArea: Preference dialog add preferences to control inactive window behaviour 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
83eca46308 NotificationArea: Parameters to control inactive notification show behaviour 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
76892d918d NotificationBox: Convert options to enum class 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
49966ac84d NotificationBox: Add option to hide notification if reference widget is deactivated 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
f0883512d5 NotificationBox: Enable options to not show if reference widget is not active and refactor restricttoarea 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
d9de68334b NotificationBox: Hide notification if FreeCAD is deactivated 2023-03-22 19:13:32 +01:00
wmayer
649e5a673c Gui: fix image handling:
* Change FileHandlder to accepts all image format supported by Qt
* Make sure image object is not touched after accepting or rejecting changes
* Make option 'Keep aspect ratio' the default
* Fix WhatThis text of command
2023-03-22 17:55:55 +01:00
luzpaz
c3cc964a1f Migrate tabs to spaces in src/Gui/3Dconnexion/* 2023-03-22 17:06:47 +01:00
wmayer
788fe1f139 Gui: add function to scale image 2023-03-22 16:24:51 +01:00
wmayer
a55ecbff57 Gui: set size of plane from loaded image file 2023-03-22 16:16:30 +01:00
wmayer
3c9392ce8b Gui: allow to change orientation of image plane, implement two-side rendering 2023-03-22 16:15:35 +01:00
wmayer
2aef0cfa61 Gui: move class Camera to own source files 2023-03-22 16:13:38 +01:00
wmayer
03d2479047 Gui: add image icon resources 2023-03-22 16:08:09 +01:00
wmayer
565cf73f1d Gui: send message events for zoom in/out commands to also support the image view 2023-03-22 16:03:14 +01:00
wmayer
63320c752b Gui: improve loading file by drag and drop 2023-03-22 16:02:28 +01:00
wmayer
a9bff40914 Gui: fix printing from ImageView 2023-03-22 15:47:25 +01:00
wmayer
965aeb4b6b Gui: add an image view 2023-03-22 15:45:38 +01:00
wmayer
77ecde6527 Core: use FileHandler in Application::sOpen and Application::sInsert 2023-03-22 15:14:45 +01:00
wmayer
f94f844142 Core: implement class FileHandler 2023-03-22 14:06:17 +01:00
wmayer
084f77f8be Core: move image plane to core system 2023-03-22 13:44:00 +01:00
wmayer
c36843d42f Gui: issue #8939: timers are moved between non-QThreads 2023-03-22 13:27:00 +01:00
Abdullah Tahiri
37eeccf705 NotificationBox/NotificationArea: Restrict rendering area to main frame
========================================================================

The NotificationBox is extended to take the QRect in global coordinates. Then
it will try to dimension the label within this area. If a fixed width is provided, that
is enforced (take precedence).

The NotificationArea passes the QRect of the main window to the NotificationBox.

This is intended to fix:
https://github.com/FreeCAD/FreeCAD/issues/8940
2023-03-20 15:43:42 +01:00
wmayer
0e64e76514 Gui: fix some lint warnings 2023-03-19 03:19:49 +00:00
wmayer
3ed781ce1e Gui: solves #8939: timers are moved between non-QThreads
For more details see: https://github.com/FreeCAD/FreeCAD/issues/8939#issuecomment-1474888902
2023-03-18 22:41:48 +01:00
Paddle
13d175e891 Sketcher: Stylesheets: Taskbox buttons revert margin and padding. 2023-03-18 18:22:21 +01:00
Alexander Golubev
57f2f06fe2 Gui: add a tooltip about how to modify shortcuts into DlgKeyboard 2023-03-18 17:59:50 +01:00
Alexander Golubev
992dec2c6b Gui: Prevent UiLoader from loading 3rd-party Qt plugins.
Due to a flaw in the QUiLoader, UiLoader were loading all designer plugins
it can find in QApplication::libraryPaths(). This in general a bad
practice and leads to bugs due to some plugins may perform some unexpected
actions upon load which may interfere with FreeCAD's functionality.

To avoid such problems reset the libraryPaths before creation of a
UiLoader object.

Also move setLanguageChangeEnabled(true) into constructor due to it's
called every time it's being instanced anyway.

See: https://github.com/FreeCAD/FreeCAD/issues/8708
2023-03-18 17:59:50 +01:00
Abdullah Tahiri
45401e30ce Notifications: Extend translated notification to include caption
===============================================================

For translated notifications now the caption is included in the
message, as the translation is already done, and this improves
the semantics of existing messages.
2023-03-18 09:07:39 +01:00
wmayer
a1689319ce Gui: add missing include for Qt6 build 2023-03-18 00:08:40 +01:00
Paddle
697ca8cb1c Core: Add possibility to change the unit in the sizeLabel. 2023-03-17 14:04:24 +00:00
Abdullah Tahiri
24eb601fb0 NotificationArea: Preferences - width 2023-03-17 11:29:30 +01:00
Abdullah Tahiri
f00e6d93dc NotificationArea: Convert plain text to HTML to perserve format 2023-03-17 11:29:30 +01:00
Abdullah Tahiri
2de5076b74 NotificationArea: Use fixed size notifications 2023-03-17 11:29:30 +01:00