Commit Graph

237 Commits

Author SHA1 Message Date
Chris Hennes
5a1170c795 Merge pull request #19941 from WandererFan/PropertiesAndSpinBoxes
[TD]Properties and spin boxes
2025-03-10 16:55:13 +00:00
Benjamin Bræstrup Sayoc
1078ee8c35 Remove magic number and hard type enums in DrawViewPart.h
- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
2025-03-02 17:14:24 +01:00
wandererfan
8ec5ebeba7 [TD]use correct property type for directions 2025-03-02 09:05:10 -05:00
Benjamin Bræstrup Sayoc
9f8f6b1f56 [TechDraw] Use templates instead of duplicate code: toGp 2025-02-08 22:35:57 +01:00
wandererfan
3bc2dde5bd [TD]fix autoscale loop
- checkfit and autoscale were calculating page size differently
2024-07-29 11:08:59 -05:00
wandererfan
526e6c5a62 [TD]remove spurious error messages 2024-06-13 19:25:29 -04:00
wandererfan
75b655fea0 [TD]fix incorrect section lines with expression link 2024-06-07 10:19:13 -04:00
wandererfan
5c8b216567 [TD]fix dimension autocorrect
- autocorrect was not handling scaled and rotated reference geometry
  properly.
2024-05-05 20:38:14 -04:00
PaddleStroke
5eb73cf949 TechDraw: Enable setting a custom direction. Fixes #5821 2024-04-22 15:53:14 +02:00
PaddleStroke
246496eed1 TechDraw: Add taskbox to Part View. Removes Projection Group from toolbar. 2024-04-22 15:53:14 +02:00
wandererfan
1bd3379bef [TD]fix crash on corrupt reference 2024-04-17 18:42:16 -04:00
wandererfan
43fc04309a [TD]implement BrokenView 2024-04-06 15:25:23 -04:00
wmayer
48ff9ad3a1 [TD]Refactor LTNP correction code for Dimensions
- additional geometry types

- add method to handle line like bsplines

- handle deleted ref body feature

- add test for empty savedGeometry

- add switch for matcher/LTNP on/off
2024-03-17 08:56:34 -04:00
mos
037fbbc5c5 removed deprecaded functions
.

.
2024-02-26 17:38:01 +01:00
wandererfan
df0cf92243 [TD]Revert detail to piecewise algo 2024-01-11 18:24:51 -05:00
wandererfan
1d3aca0733 [TD]handle loose geometry via HLR 2023-12-03 08:55:59 -05:00
wandererfan
70d89b7437 [TD]Standard Line Styles - App components 2023-12-01 11:27:29 -05:00
Florian Foinant-Willig
1d8a51b47b TechDraw: modernize type checking 2023-10-23 18:08:59 +02:00
wandererfan
2535a9e835 [TD]#11091 item 12 array over run 2023-10-19 10:07:48 -04:00
wandererfan
5b65757404 [TD]fix sketch location in view 2023-10-03 13:35:36 -04:00
André Caldas
0f27212d57 TechDraw: creates closure for concurrent thread context.
We use a lambda function with a copy of variables
that might be destructed in the original calling thread,
possibly producing dangling references.

See: https://forum.freecad.org/viewtopic.php?t=81260
2023-09-20 09:26:15 -04:00
wandererfan
2f8a8beca8 [TD]fix 10013 detail of sketch 2023-08-20 12:25:12 -04:00
wandererfan
41817c188f [TD]split GeometryObject 2023-08-18 15:18:42 -04:00
wandererfan
6565732207 [TD]move dvp cosmetic functions to extension 2023-08-10 10:17:22 -04:00
wandererfan
08237b6c2c [TD]remove unused code dvp & sections 2023-08-10 10:17:22 -04:00
wmayer
b6f331f4fa modernize C++: use transparent functors 2023-08-07 16:08:35 +02:00
wmayer
7a3106d31b modernize C++: use bool literals 2023-08-06 01:35:39 +02:00
grubertechnic
a972cbd249 [TechDraw] seam line in HLR default false 2023-07-30 12:48:30 -04:00
wandererfan
3d0d65b41c [TD]make scrubbing count a property of view 2023-04-17 20:43:20 -04:00
Benjamin Bræstrup Sayoc
a93060c6b9 [TechDraw] Simplify return logic
Normal warmup
2023-04-11 13:49:57 -04:00
Benjamin Bræstrup Sayoc
6df0a20214 [TechDraw] Simplify return logic
Easy warmup
2023-04-11 13:00:45 -04:00
Benjamin Bræstrup Sayoc
5d05acc87e [TechDraw] Simplify retrievement of user preferences
for all TechDraw files
2023-04-10 23:34:05 -04:00
Benjamin Bræstrup Sayoc
0bfae905d9 [TechDraw] Move CenterLine into own file 2023-04-06 13:51:35 -04:00
WandererFan
d813f46bdf Update DrawViewPart.cpp
missed removing old line
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
wandererfan
8a11528a7e [TD]corrupt dim reference detect and correct 2023-03-22 20:09:35 -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
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
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
Uwe
b846722f3a [TD] fix compiler about a variable redefinition 2023-02-26 10:31:36 +01:00
wandererfan
437457e996 [TD]remove obsolete log messages 2023-01-13 12:15:33 -05:00
wandererfan
97b6788464 [TD]fix wrong calculation of 3d two edge angle 2023-01-07 16:32:03 -05:00
wandererfan
208104e9e0 [TD]Refactor Dimensions for 3d upgrade
- separate validation, geometry and reference handling into
  individual files
- improve 3d reference geometry handling
- eliminate duplicate dim creation code

- add Dimension reference repair dialog

- Refactor formatting out of DrawViewDimension

- move dimension repaint control to ViewProvider
2023-01-07 16:32:03 -05:00
wandererfan
411bf827a7 [TD]remove debug statements 2022-12-26 12:13:34 -05:00
wandererfan
02ca0ff998 [TD]fix startup exception on empty compound 2022-12-26 12:13:34 -05:00
wandererfan
100d4956c8 [TD]detail of rotated ComplexSection 2022-12-18 09:42:42 -05:00
wandererfan
02386e3150 [TD]move makeAlignedPieces to separate thread
- correct ComplexSection rotation

- fix fail to load CS for some profiles and directions
2022-12-18 09:42:42 -05:00
Aapo
d0d511f940 [TD] DrawViewPart: Fix Dimension attachment for Coarse Views and faceless Views 2022-11-20 08:08:33 -05:00
Aapo
300ca5b206 [TD] DrawViewPart: Fix Dimension attachment on Cosmetic CenterLines upon document restore 2022-11-17 19:25:43 -05:00
wmayer
77bae9c9a0 TD: fix memory leaks with raw pointers of GeometryObject
Replacing the use of raw pointers of GeometryObject with shared pointers fixes the observed memory leaks when running the unit tests of TechDraw
2022-11-15 16:16:08 -05:00