Commit Graph

2251 Commits

Author SHA1 Message Date
WandererFan
d813f46bdf Update DrawViewPart.cpp
missed removing old line
2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
bc5346c185 [TechDraw] Improve readability of EdgeWalker.cpp 2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
124650f8c7 [TechDraw] Improve readability of DrawViewSymbol.cpp 2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
2f193bbc0e [TechDraw] Improve readability of DrawViewSection.cpp 2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
acca47ab6f [TechDraw] Improve readability of DrawViewPart.cpp 2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
6f52f91803 [TechDraw] Improve readability of DrawTemplatePyImp.cpp 2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
372e2e0be9 [TechDraw] Improve readability of DrawProjGroupItemPyImp.cpp 2023-04-05 14:35:58 -04:00
Benjamin Bræstrup Sayoc
ebdf4cb49c [TechDraw] Improve readability of DrawProjGroupItem.cpp 2023-04-05 14:35:58 -04:00
Benjamin Bræstrup Sayoc
1fa423fd40 [TechDraw] Improve readability of DrawProjGroup.cpp 2023-04-05 14:35:58 -04:00
Benjamin Bræstrup Sayoc
468c3b3afb [TechDraw] Improve readability of DrawProjectSplit.cpp 2023-04-05 14:35:30 -04:00
Benjamin Bræstrup Sayoc
9a99412605 [TechDraw] Improve readability of DrawParametricTemplatePyImp.cpp 2023-04-05 14:35:30 -04:00
Benjamin Bræstrup Sayoc
623ae8da0d [TechDraw] Improve readability of DrawParametricTemplate.cpp 2023-04-05 14:35:30 -04:00
Benjamin Bræstrup Sayoc
8c24b09341 [TechDraw] Improve readability of DrawPage.cpp 2023-04-05 14:35:30 -04:00
Benjamin Bræstrup Sayoc
775c260af2 [TechDraw] Improve readability of DrawLeaderLine.cpp 2023-04-05 14:32:56 -04:00
Benjamin Bræstrup Sayoc
9d8afd1722 [TechDraw] Improve readability of DrawHatch.cpp 2023-04-05 14:32:56 -04:00
Benjamin Bræstrup Sayoc
5da15d23cf [TechDraw] Improve readability of DrawGeomHatch.cpp 2023-04-05 14:32:56 -04:00
edi271
c9c82960ab Manage rotated section views 2023-04-05 08:23:47 -04:00
edi271
c9d9284fb1 Move getTrianglePoint to DrawUtil 2023-04-05 08:23:47 -04:00
wandererfan
c9c872d187 [TD]fix oversight in PR9129 2023-03-31 20:14:38 -04:00
wmayer
5f73ab8923 TD: remove deprecation warning 2023-03-31 11:03:10 -04:00
wmayer
7eb661cd78 TD: implement XMLQuery for Qt6 2023-03-31 11:03:10 -04:00
wmayer
0de7d14e15 TD: use new license header 2023-03-31 11:03:10 -04:00
Benjamin Bræstrup Sayoc
0b29a5f0a0 Improve readability of DrawUtil.cpp 2023-03-31 08:45:05 -04:00
Benjamin Bræstrup Sayoc
8196ca323e Improve readability of QGIView.cpp 2023-03-31 08:45:05 -04:00
wandererfan
181c7ba5eb [TD]fix bad 3d dimensions
- mapToPage was left in place when converting to using
  projectPoint instead of projectToPlane.
2023-03-25 18:14:26 -04:00
Uwe
9af1a451ba [TD] QGIViewDimension.h: fix compiler warning
- about unused private field
2023-03-25 21:03:40 +01:00
Uwe
26bb8b1666 [TD] GeometryMatcher.cpp: fix compiler warning
about unused variable
2023-03-24 06:16:31 +01:00
wandererfan
354480e9a4 [TD]Lint/Tidy/Review comments applied 2023-03-22 20:09:35 -04:00
wandererfan
fd26842001 [TD]autocorrect default to true 2023-03-22 20:09:35 -04:00
wandererfan
8a11528a7e [TD]corrupt dim reference detect and correct 2023-03-22 20:09:35 -04:00
luzpaz
f1bbcd9e13 Fix typos and whitespace 2023-03-22 17:10:38 +01:00
luzpaz
f87b919e0d Fix various whitespace issues 2023-03-20 16:38:40 +01:00
wmayer
6fb167582a TD: move all XML query handling to a single function 2023-03-18 19:26:01 -04:00
wandererfan
966c577ec4 [TD]add wait for threads to Dimension test script 2023-03-16 10:37:14 -04:00
wandererfan
d76efcd0cf [TD]prevent bleed through on Detail mat 2023-03-16 10:37:14 -04:00
wandererfan
aa93708439 [TD]skip center marks for view frame 2023-03-16 10:37:14 -04:00
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