Commit Graph

1427 Commits

Author SHA1 Message Date
Benjamin Bræstrup Sayoc
3f81006ac4 [TechDraw] Simplify return logic
Normal warmup
2023-04-11 13:49:57 -04:00
Benjamin Bræstrup Sayoc
70c9cf0fc0 [TechDraw] Simplify return logic
Easy warmup
2023-04-11 13:00:45 -04:00
Benjamin Bræstrup Sayoc
ef5fc4f237 [TechDraw] Simplify return logic 2023-04-10 23:34:05 -04:00
Benjamin Bræstrup Sayoc
15fe52a04b [TechDraw] Simplify retrievement of user preferences
for all TechDraw files
2023-04-10 23:34:05 -04:00
Chris Hennes
72fae51ef4 TechDraw: Fix Windows compilation 2023-04-10 13:26:00 -04:00
wandererfan
d3f8132273 [TD]fix error in DPG from bf00a1afc9 2023-04-09 21:43:43 -04:00
Benjamin Bræstrup Sayoc
3b2e44a274 [TechDraw] Simplify retrievement of user preferences 2023-04-09 11:59:43 -04:00
wandererfan
f5a7b499ce [TD]fix fail on transform of infinite shape
- passing an infinite shape to TopoShape::transformGeometry
  throws exception GeoConvert::Surface2BSpline() - infinite surface
2023-04-07 17:15:43 -04:00
wandererfan
bf582bc760 [TD]add missing namespace 2023-04-07 17:15:43 -04:00
wandererfan
eba80267ff [TD]use namespace with endl 2023-04-06 13:51:35 -04:00
Benjamin Bræstrup Sayoc
a207822ee8 [TechDraw] Move CenterLine into own file 2023-04-06 13:51:35 -04:00
Benjamin Bræstrup Sayoc
124bbcdeb9 [TechDraw] Move CosmeticVertex into own file 2023-04-06 13:51:35 -04:00
WandererFan
31e81a2857 Update DrawViewPart.cpp
missed removing old line
2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
0035956e33 [TechDraw] Improve readability of EdgeWalker.cpp 2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
4455e40463 [TechDraw] Improve readability of DrawViewSymbol.cpp 2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
466b167443 [TechDraw] Improve readability of DrawViewSection.cpp 2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
fabce4405e [TechDraw] Improve readability of DrawViewPart.cpp 2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
4b5eeb351f [TechDraw] Improve readability of DrawTemplatePyImp.cpp 2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
1337b656b5 [TechDraw] Improve readability of DrawProjGroupItemPyImp.cpp 2023-04-05 14:35:58 -04:00
Benjamin Bræstrup Sayoc
41bc59cd6a [TechDraw] Improve readability of DrawProjGroupItem.cpp 2023-04-05 14:35:58 -04:00
Benjamin Bræstrup Sayoc
bf00a1afc9 [TechDraw] Improve readability of DrawProjGroup.cpp 2023-04-05 14:35:58 -04:00
Benjamin Bræstrup Sayoc
48eded99a6 [TechDraw] Improve readability of DrawProjectSplit.cpp 2023-04-05 14:35:30 -04:00
Benjamin Bræstrup Sayoc
857e4d0dd0 [TechDraw] Improve readability of DrawParametricTemplatePyImp.cpp 2023-04-05 14:35:30 -04:00
Benjamin Bræstrup Sayoc
a53d10d63d [TechDraw] Improve readability of DrawParametricTemplate.cpp 2023-04-05 14:35:30 -04:00
Benjamin Bræstrup Sayoc
2e12a8fad2 [TechDraw] Improve readability of DrawPage.cpp 2023-04-05 14:35:30 -04:00
Benjamin Bræstrup Sayoc
e34874b591 [TechDraw] Improve readability of DrawLeaderLine.cpp 2023-04-05 14:32:56 -04:00
Benjamin Bræstrup Sayoc
b57c7eab12 [TechDraw] Improve readability of DrawHatch.cpp 2023-04-05 14:32:56 -04:00
Benjamin Bræstrup Sayoc
32e56cfc9c [TechDraw] Improve readability of DrawGeomHatch.cpp 2023-04-05 14:32:56 -04:00
edi271
28def30592 Move getTrianglePoint to DrawUtil 2023-04-05 08:23:47 -04:00
wmayer
f2aa219075 TD: remove deprecation warning 2023-03-31 11:03:10 -04:00
wmayer
ed4b09349d TD: implement XMLQuery for Qt6 2023-03-31 11:03:10 -04:00
wmayer
82a1e43e00 TD: use new license header 2023-03-31 11:03:10 -04:00
Benjamin Bræstrup Sayoc
5329cede7f Improve readability of DrawUtil.cpp 2023-03-31 08:45:05 -04:00
wandererfan
20e44eba50 [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
4acc78844b [TD] GeometryMatcher.cpp: fix compiler warning
about unused variable
2023-03-24 06:16:31 +01:00
wandererfan
85216bd127 [TD]Lint/Tidy/Review comments applied 2023-03-22 20:09:35 -04:00
wandererfan
b9fa9cb33e [TD]corrupt dim reference detect and correct 2023-03-22 20:09:35 -04:00
luzpaz
eb852691df Fix typos and whitespace 2023-03-22 17:10:38 +01:00
wmayer
c585a9f430 TD: move all XML query handling to a single function 2023-03-18 19:26:01 -04:00
wmayer
a9694e1878 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
328cd863a1 [TD]trap bad format spec
- bad format spec can break QString::asprintf
2023-03-16 08:32:57 -04:00
wandererfan
7ed22cc5f6 [TD]add autocorrect preference 2023-03-13 19:03:32 -04:00
wandererfan
fb9b3a9e9e [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
wmayer
2a970b3045 clang: fix -Wunused-but-set-variable 2023-03-12 15:05:21 +01:00
Uwe
ab327114c3 [TD] fix compiler warning about code duplication and unused variable 2023-03-10 11:25:16 -05:00
wandererfan
0adc473d53 [TD]fix error from BSpline.asCircle 2023-03-09 13:40:16 -05: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
xtemp09
323476a9a4 [TechDraw] Improved readability of DrawViewSpreadsheet.cpp
I was stretching my fingers
2023-03-04 09:59:02 -05:00
wandererfan
01641433c1 [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
Uwe
c32bf8e99a [TD] fix compiler about a variable redefinition 2023-02-26 10:31:36 +01:00