Commit Graph

72 Commits

Author SHA1 Message Date
WandererFan
489e3ca6fc TechDraw: fix leader positioning (snapping) (#24468)
* [TD]specialize leader snap handling

* [TD]fix leader live update regression

* [TD]QGTracker code clean-up
2025-10-13 18:21:31 +02:00
wmayer
ae2e71b153 TD: Fix loading project files
With PR 19941 there is a regression where parts of the document
won't be restored. This is caused by overriding the virtual method
handleChangedPropertyType() but not calling the method of the base class.

While searching for a fix another problem showed up where (due to the
incomplete loading) exceptions are thrown but not handled within TD.
Therefore the method recompute() is overridden in DrawView to also handle
OCC exceptions.
2025-09-01 14:11:52 +02:00
wandererfan
d0faf2a6b4 [TD]Ensure changed expression value is processed 2025-08-11 10:35:12 -05:00
WandererFan
3cabb3f7b8 [TD]Allow non-shape views to have children (#20768) (#21099)
* [TD]Allow non-shape views to have children (#20768)

* Update src/Mod/TechDraw/App/DrawView.cpp

Review comment

Co-authored-by: Benjamin Nauck <benjamin@nauck.se>

* Update src/Mod/TechDraw/App/DrawView.cpp

review comment

Co-authored-by: Benjamin Nauck <benjamin@nauck.se>

* Update src/Mod/TechDraw/Gui/ViewProviderDrawingView.cpp

review comment

Co-authored-by: Benjamin Nauck <benjamin@nauck.se>

* Update src/Mod/TechDraw/Gui/ViewProviderDrawingView.cpp

review comment

Co-authored-by: Benjamin Nauck <benjamin@nauck.se>

---------

Co-authored-by: Benjamin Nauck <benjamin@nauck.se>
2025-05-08 09:18:09 -05:00
Andrea
146d8a356b change MIN_boost_version
ubuntu version 20.04 is no longer supported.
The minimum boost version used for freecad is now 1.74 (ubuntu 22.04) https://launchpad.net/ubuntu/jammy/+package/libboost-system-dev
2025-02-15 13:33:32 -06:00
WandererFan
140bcf605e [TD]Fix section snapping (fix #15961) (#15450)
* [TD]Add view snapping preferences

* [TD]fix section snapping algo

- snap sections to section normal line.
- snap views to other views in X&Y

* [TD]fix snapping to ProjectionGroups
2024-09-02 18:41:25 +02:00
wandererfan
042733d975 [TD]fix balloon drag on rotated view (fix #15726) 2024-09-02 17:47:40 +02:00
pavltom
1ead8c6f0f [TechDraw] Unify Projection Group parent linking 2024-03-16 19:59:49 -04:00
pavltom
ed3a1a6184 [TechDraw] Reimplement Rich Annotation parent linking 2024-02-26 16:22:30 -05:00
pavltom
ff14c58ccc [TechDraw] Add Owner property to Symbols 2024-02-11 16:03:44 -05:00
wandererfan
238e8acda5 [TD]fix Section scale for DPGI base views 2024-01-18 13:27:29 -05:00
wandererfan
d69551eccb [TD]add label translation for Page and Template 2023-08-17 19:23:29 -04:00
wandererfan
a8cc561396 [TD]apply translateLabel after all addObject calls 2023-08-17 19:23:29 -04:00
wandererfan
f4180658dc [TD]Add method to translate View labels 2023-08-17 19:23:29 -04:00
Uwe
44a91217a2 [TD] DrawView*: remove unused includes - part 1
- also sort includes
- also additions to precompiled header
2022-10-07 01:08:38 +02:00
wandererfan
5cae6597b3 [TD]position view within clip group 2022-09-17 09:07:30 -04:00
wandererfan
aa2b1b8392 [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
wmayer
5f91eaa5eb TD: modernize C++: replace 'typedef' with 'using' 2022-08-30 10:59:39 +02:00
Wanderer Fan
81949d0817 [TD]use new style QObject::connect 2022-08-21 21:18:26 -04:00
Wanderer Fan
e97b95341a [TD]code clean ups
- QtConcurrent include and CMake for Win

- include clean up dvp, dvs, dvd

- variable names and nested if clean up

- remove debug code
2022-08-18 09:34:32 -04:00
Wanderer Fan
ae3a955877 [TD]add progress reporting framework 2022-08-18 09:34:32 -04:00
Wanderer Fan
5a92b30f17 [TD]run hlr and extractFaces in threads 2022-08-18 09:34:32 -04:00
berniev
71dc5ead2f Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
Wanderer Fan
67ac6019eb [TD]fix X,Y change propagation
- X,Y changes to object1 were not propagated to
  object2 linked by expression
2022-05-02 17:51:51 -04:00
Uwe
60012cd27e [TD] App Headers: remove unused header - part 2 2022-03-25 00:01:49 +01:00
Wanderer Fan
d9afcaa807 [TD]handle ScaleType in old documents 2022-03-10 09:25:52 -05:00
Wanderer Fan
437a89e42a [TD]fix ScaleType change behaviour 2022-03-07 09:30:39 -05:00
Wanderer Fan
f6653d44af [TD]improve handling of View in multiple Pages 2022-01-11 09:36:48 -05:00
mwganson
cf961d6cca [TechDraw] prevent crash where user duplicates page without also duplicating dependencies 2021-09-06 13:20:29 -05:00
wmayer
3ad1d8fccc TD: [skip ci] implement DrawView::recompute to handle all OCC exception types 2021-02-25 12:39:50 +01:00
Mateusz Skowroński
98f63ba60f Fix build warnings from deprecated Boost headers (they are used internally by Boost). Thanks @wwmayer for the hint. 2020-12-29 10:20:53 +01:00
wmayer
d401d761cb TechDraw: [skip ci] fix -Wextra-semi -Winconsistent-missing-override 2020-02-26 18:44:45 +01:00
wandererfan
cb2a3d529c [TD]Landmark Dims initial impl 2020-02-25 17:21:00 -05:00
wandererfan
d2a8571737 [TD]fix autoscale for DPG 2020-02-14 07:44:56 -05:00
wandererfan
79d5d35eb1 [TD]Preferences: reorganize and add missing 2020-01-27 08:02:29 -05:00
luz.paz
d1dc813a80 TD: fix header uniformity
This PR fixes header uniformity across all TechDraw WB.
2019-12-21 09:57:45 -05:00
donovaly
70be2a2bff TechDraw: add unit for rotation 2019-12-07 07:29:07 -05:00
wandererfan
2fbf35eb50 [TD]fix Jumping Dimensions
- X,Y were changed to PropertyLength (>0), but some X,Y
  are relative, so X,Y sb PropertyDistance.
2019-12-03 17:12:01 -05:00
donovaly
f7ca1d91d3 TechDraw: add units for position
see https://forum.freecadweb.org/viewtopic.php?f=35&t=40608 for details
2019-12-01 21:48:46 -05:00
wandererfan
97c17029a6 [TD]fix Front lock icon in DPG 2019-10-11 09:16:41 -04:00
Zheng, Lei
e90d09dc40 TechDraw: Link related changes
* Support link and group objects

* Support view sync by implementing view provider API getMDIView()

* Use handleChangedPropertyType() for object migration instead of
  reimplementing Restore() because of a lots of changes in
  PropertyContainer::Restore().

* Various other small fixes.
2019-08-17 15:15:46 +02:00
wandererfan
5d601c1cdd [TD]Add CenterLine edit function 2019-07-15 12:36:48 -04:00
wandererfan
3f7570ad80 Initial version addCosmeticVertex 2019-05-24 19:38:02 -04:00
wandererfan
abf419f68c Text Leader initial version 2019-05-05 21:01:31 -04:00
wandererfan
2240ba0e2a Fix #3810 X/Y Property Update on Locked View
- fixes x/y update when position locked for simple
  Views and ProjectionGroups.
2019-02-14 21:14:10 +01:00
wandererfan
3ec65a32ec Fix View position in ClipGroup 2018-11-19 10:12:09 +01:00
wandererfan
f9aa3ea957 Fix iso View position in AutoDistribute 2018-07-31 16:08:48 -03:00
wandererfan
e4debdcfce Convert deprecated boost::signal to signals2 2018-05-11 10:32:24 -03:00
WandererFan
6fa92cb188 KeepLabel Property to Gui side 2018-02-14 15:42:25 -05:00