Commit Graph

2215 Commits

Author SHA1 Message Date
wmayer
16e27eecc7 TD: port to Qt6
* in QtConcurrent::run the order of 1st and 2nd argument are swapped
* QtConcurrent::run asserts that the argument of the passed function pointer is not non-const
* Used methods of QFontDatabase are static in Qt5 and Qt6
* QTextStream::setCodec() has been removed in Qt6
* Argument of enterEvent() has changed from QEvent to QEnterEvent
* QTextCharFormat::setFamily() is deprecated
2023-03-16 09:17:39 -04:00
wandererfan
04db253b8a [TD]trap bad format spec
- bad format spec can break QString::asprintf
2023-03-16 08:32:57 -04:00
wandererfan
65a3637891 [TD]add autocorrect preference 2023-03-13 19:03:32 -04:00
wandererfan
a0f98a35df [TD]allow loading SVG item from file 2023-03-12 22:05:16 -04:00
wandererfan
53290618dd [TD]fix centering of shape
- centering of shape was not affecting the OCC TShape, so
  we now make a deep copy of the original
2023-03-12 19:21:22 -04:00
xtemp09
a1ac89f422 [TechDraw] Minor improvement of TaskLineDecor.cpp 2023-03-12 13:57:45 -04:00
wmayer
2a0e52e71e clang: fix -Wunused-but-set-variable 2023-03-12 15:05:21 +01:00
wandererfan
62953f1a8e [TD]remove unused override methods 2023-03-11 08:08:58 -05:00
Uwe
fb13cbf4b5 [TD] fix compiler warning about code duplication and unused variable 2023-03-10 11:25:16 -05:00
wandererfan
1aa5026fd1 [TD]fix error from BSpline.asCircle 2023-03-09 13:40:16 -05:00
Abdullah Tahiri
ee0c3ad5c1 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
edi271
9fb39b63a7 [TD] Solve two issues in CmdHoleShaftFit 2023-03-06 20:02:21 -05:00
mosfet80
bed7b76524 remove Python2 code 2023-03-04 17:51:43 -06:00
xtemp09
692399787b [TechDraw] Improved readability of DrawViewSpreadsheet.cpp
I was stretching my fingers
2023-03-04 09:59:02 -05:00
wandererfan
704fb894a5 [TD]getters and setters for geometry
- make attributes private (or protected) and use
  getters and setters instead of accessing attributes
  directly.
2023-02-28 08:15:06 -05:00
Yorik van Havre
be6a654b3e merged crowdin translations 2023-02-27 16:01:15 +01:00
Yorik van Havre
2cd27ce328 updated ts files 2023-02-27 15:35:51 +01:00
Uwe
b846722f3a [TD] fix compiler about a variable redefinition 2023-02-26 10:31:36 +01:00
luzpaz
a134129868 Fix various trailing whitespace issues 2023-02-16 09:30:22 -05:00
edi271
bf108be321 [TD] solve reported issues 2023-02-13 14:45:04 -05:00
edi271
cfc5d0bb53 Changed files 2023-02-13 14:45:04 -05:00
edi271
ca910312bf Combo View dialog source hole / shaft fit 2023-02-13 14:45:04 -05:00
edi271
818255f416 [TD] Command source hole /shaft fit 2023-02-13 14:45:04 -05:00
edi271
a25233b526 [TD] ui file hole /shaft fit 2023-02-13 14:45:04 -05:00
edi271
598acfd88e [TD] Icon file hole/shaft fit 2023-02-13 14:45:04 -05:00
Yorik van Havre
0566d90cc5 merged crowdin translations 2023-02-13 15:45:26 +01:00
wandererfan
e9e68c5bf3 [TD]fix face hatch location inSvg export 2023-02-12 11:50:20 -05:00
wandererfan
76ffee77bc [TD]fix validation of hybrid dimension 2023-02-11 13:30:15 -05:00
wandererfan
25e6f33725 [TD]centralize balloon prefs 2023-02-11 13:30:15 -05:00
Yorik van Havre
d8b0e64e14 Merged crowdin translations 2023-02-07 15:55:31 +01:00
Yorik van Havre
94cd431eb2 updated ts files 2023-02-07 15:55:31 +01:00
edi271
ee798b0b36 [TD] Add Command Axo Length Dimension
Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com>
2023-02-05 14:50:44 -08:00
luzpaz
1f7ab06160 Fix whitespace issues 2023-02-05 16:39:58 +01:00
luzpaz
1b43baa418 Fix various trailing newlines, typos and grammar 2023-02-04 18:29:07 +01:00
wmayer
8d6ef6ba12 TD: replace slots with member function pointers 2023-02-03 00:21:38 +01:00
wandererfan
b6754947f1 [TD]use correct shape for section of section 2023-02-02 05:55:32 -08:00
wandererfan
86d0975b2c [TD]fix handling of perforated section faces 2023-02-02 05:55:32 -08:00
wandererfan
95d1ed54b6 [TD]allow section line when base is section 2023-02-02 05:55:32 -08:00
wmayer
25beef481c TD: move to new style connect() 2023-02-01 01:33:34 +01:00
Yorik van Havre
80c68fa4df Merged crowdin translations 2023-01-30 10:04:15 +01:00
Yorik van Havre
433b17b829 Merged crowdin translations 2023-01-23 11:25:49 +01:00
Yorik van Havre
48fdd4896a Updated ts files 2023-01-23 10:41:33 +01:00
luzpaz
feb18d8a15 Fix various typos 2023-01-22 20:27:47 -06:00
luzpaz
79e150a81b Fix trailing whitespace, typos, headers
Fix trailing whitespace, typos, and header uniformity.
2023-01-23 00:34:37 +01:00
luzpaz
91a336b659 TechDraw: header uniformity + trailing whitespace 2023-01-21 20:11:08 -05:00
wandererfan
be7c12cf3c [TD]fix crash on dim create on Mac 2023-01-19 13:21:12 -05:00
wandererfan
547df2b4df [TD]apply tester feedback on DimRepair 2023-01-18 17:48:22 -05:00
wandererfan
75ceb8e03e [TD]Ungroup dimension commands 2023-01-18 17:48:22 -05:00
Yorik van Havre
5033f64ce9 Merged crowdin translations 2023-01-17 09:40:31 +01:00
Yorik van Havre
12239f7f99 Updated ts files 2023-01-17 09:24:46 +01:00