Commit Graph

177 Commits

Author SHA1 Message Date
Paddle
805745599c Pref: Remove Unit tab and move settings back to main page. 2023-04-01 16:30:51 +02: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
Abdullah Tahiri
23739bc2d0 NotificationArea: Change Icon color to indicate missed notifications 2023-03-22 19:13:32 +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
b27bd2b4b5 Gui: Add Notification Area to Status bar
========================================

Parameter "NotificationAreaEnabled" can be used to completely disable the Notification Area.

If disabled it won't appear on the UI at all and no non-intrusive notification will be generated.
2023-03-12 06:06:29 +01:00
Abdullah Tahiri
c604d1741d Console/ILogger: Refactor and extension
=======================================

Refactor:
 - Substitute the use of variadic templates with parameter packs.
 - Use recently incorporated external library "fmt" to handle printf like formating.
 - Extensive cleaning of pragmas and unnecessary forward declarations.
 - Parameter packs and libfmt provide a much stronger type checking now, so
   conversions that are by standard implicit as bool to int need an explicit static_cast
   to avoid compilation warnings.

Extension:
 - Include a notifier field, so that the originator of the message can be provided. E.g. Document#DocumentObject
 - Include a new type of message called CriticalMessage, this message is intended to have
   special behaviour in the future. Namely, it will be used to notify forward compatilibity issues.
   It will be used to substitute the current signal/slot mechanism.
 - Include two new types of messages for user notifications (Notification and TranslatedNotification). This messages
   will be use to convey UI notifications intended for the user (such as non-intrusive message about the usage of a tool). There
   are two versions to mark whether the string provided as a message is already translated or not. When using the console system for
   notifications, these notifications may originate from the App or the Gui. In the former, it is generally the case that the strings
   of messages are not (yet) translated (but they can be marked with QT_TRANSLATE_NOOP). In the latter, often the messages to be provided
   are already translated.

Python support for CriticalMessage, Notification and TranslatedNofification, including shortcuts:

    Crt = FreeCAD.Console.PrintCritical
    Ntf = FreeCAD.Console.PrintNotification
    Tnf = FreeCAD.Console.PrintTranslatedNotification
2023-03-07 16:13:23 +01:00
Adrian Insaurralde Avalos
c6c3c54b74 Improve NaviCube font matching on linux 2023-02-28 10:01:33 +01:00
wmayer
0d23594107 Core: add functions setPackedARGB and fromPackedRGBA 2023-02-26 10:11:53 +01:00
wmayer
ffd9ca6e69 Gui: [skip ci] set object name to tabbar of MDI area 2023-02-15 19:12:37 +01:00
Jakub Świerk
09c00c5155 Gui: Removed unused method. 2023-01-10 13:46:33 +01:00
Jakub Świerk
d3300d1fc0 GUI: Removed Std_ArrangeIcons command. 2023-01-10 13:46:33 +01:00
wmayer
c18adc2cee Gui: fix activating of MDI views via menu commands 2023-01-06 14:42:29 +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
3c709f31df Gui: make unit tests working from command line if Gui is up 2022-12-24 19:13:40 +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
Uwe
9869a2c3d7 [Build] output point release version
- to Splashscreen, About, MainWindow and Console
2022-12-05 00:26:43 +01:00
wmayer
182aa2ac4c Gui: replace old-style with new-style connect 2022-11-12 21:57:26 +01:00
adrianinsaval
ceab81593d Use Std_New for new document creation at startup
so it uses the translated string
2022-10-20 19:58:16 -05:00
wmayer
807fa281a8 Core: replace QRegExp with QRegularExpression 2022-10-06 13:54:20 +02:00
wmayer
860e50b589 Gui: code refactoring of dock window setup 2022-09-15 16:03:41 +02: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
berniev
a909df7f39 Gui: Single arg ctors must be explicit (PR #7369) 2022-08-24 15:06:03 +02:00
berniev
0c70d45c83 Gui: Use override etc 2 2022-08-09 12:43:23 +02:00
berniev
656ef8961f Gui: redundant void 2 2022-08-08 10:21:44 +02:00
berniev
d88729d2c4 Gui: use empty 2022-08-06 16:35:45 +02:00
berniev
6ac4d8392e Gui: use emplace_back 2022-08-05 10:33:41 +02:00
wmayer
1faf86c3da Gui: Use new-style syntax of connect()
When fixing clazy issues -Wclazy-fully-qualified-moc-types then old-style syntax of connect() may fail. Thus, replace it with the new-style syntax
2022-07-26 16:32:18 +02:00
Uwe
316a869b26 [Gui] remove superfluous nullptr checks 2022-07-18 03:17:42 +02:00
andrea
3018985f80 Remove unused code into GUI 2022-07-17 03:53:11 +02:00
0penBrain
95a98669a4 Gui: implement temporary blocker for console observer 2022-07-05 13:35:18 +02:00
0penBrain
3fe4e4b6a6 [BUGFIX] Gui: correctly save and restore warning type enabling in report view 2022-07-05 13:35:18 +02:00
wmayer
d5921e08ec fix (Qt) issues found by clang's clazy tool:
+ -Wclazy-incorrect-emit
+ -Wclazy-strict-iterators
+ -Wclazy-overloaded-signal
+ -Wclazy-qstring-arg
+ -Wclazy-unused-non-trivial-variable
+ -Wclazy-container-anti-pattern
+ -Wclazy-range-loop-reference
+ -Wclazy-const-signal-or-slot
+ -Wclazy-detaching-temporary
+ -Wclazy-qfileinfo-exists
2022-06-29 21:00:54 +02:00
Chris Hennes
5219718eb0 GUI: Preliminary support for HiDPI splashscreen 2022-06-13 15:19:40 +02:00
wmayer
ca279e4057 Gui: avoid that toolbars of active workbench become invisible
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=8&t=67748
2022-05-18 14:08:32 +02:00
wmayer
2397883adb Gui: [skip ci] avoid that mouse is stuck after opening Help page with What's This 2022-04-06 18:32:55 +02:00
Yorik van Havre
eec99d5f53 Gui: Added 'open Addon Manager' to Help message box - issue #6514 2022-03-30 14:54:20 +02:00
Yorik van Havre
f6464c7d5f Merge branch 'master' of github.com:FreeCAD/FreeCAD 2022-03-30 10:28:41 +02:00
Yorik van Havre
18b588dcbb Gui: Fixed wrong button on Help messaage box - issue #6514 2022-03-30 10:28:27 +02:00
Chris Hennes
bedf920702 Gui: PR6497 move return statement to new line 2022-03-29 12:33:50 -05:00
Yorik van Havre
aae0201a8b Merge pull request #6634 from yorikvanhavre/retire-qassistant-2
Retire qassistant (try 2)
2022-03-24 09:42:33 +01:00
wmayer
96adb98f46 Gui: modernize C++11
* use nullptr
2022-03-23 18:41:21 +01:00
Yorik van Havre
ac663cd0c4 Qassistant retirement: avoid ref leak 2022-03-23 13:19:46 +01:00
Yorik van Havre
d05974b486 Qassistant retirement: Added GIL lock 2022-03-23 12:00:35 +01:00
Yorik van Havre
e0e4bf1810 Retiring qtassistant : Added Werner's fixes 2022-03-21 13:27:27 +01:00
Yorik van Havre
c3dde65180 Gui: Disable use of qassistant
Displaying of help pages is now handled by the Help addon.
In case the Help addon is not installed, an info message is shown.
2022-03-21 13:26:58 +01:00
wmayer
1ca7429705 Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00