Commit Graph

54 Commits

Author SHA1 Message Date
wmayer
c5910c1530 TD: [skip ci] Fix several clazy issues:
* Using copy-ctor but class TechDraw::anglePoints has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
* Using copy-ctor but class TechDraw::arcPoints has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* C++11 range-loop might detach Qt container (QList) [-Wclazy-range-loop-detach]
* signal arguments need to be fully-qualified (TechDrawGui::QGIView instead of QGIView) [-Wclazy-fully-qualified-moc-types]
* Use multi-arg instead [-Wclazy-qstring-arg]
* Use midRef() instead [-Wclazy-qstring-ref]
2022-07-25 17:00:48 +02:00
Uwe
7b4e5d7522 [TD] remove more superfluous nullptr checks 2022-07-20 02:32:52 +02:00
Uwe
36add10c86 [TD] App: remove some superfluous nullptr checks 2022-07-19 02:03:50 +02:00
Benjamin Alterauge
fead475d64 Group dxf relevant files in one folder 2022-07-16 10:55:24 +02:00
Wanderer Fan
60b79e0d72 [TD]fix Dimension export to DXF 2022-06-30 08:50:07 -04:00
Wanderer Fan
75486e930b [TD]Include CosmeticLines in Dxf 2022-06-30 08:50:07 -04:00
Wanderer Fan
1bf7803b15 [TD]fix diameter dim alignment in DXF 2022-03-24 15:22:23 -04:00
wmayer
e8f9c8a1d3 TD: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Wanderer Fan
bb779f8ee2 [TD]fix double units in dxf page export 2022-03-22 08:41:36 -04:00
Uwe
f8191d1899 [TD] remove Python.h and Xerces
seems not to be necessary anymore
2022-03-21 02:53:47 +01:00
wmayer
1f12dca2b4 Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
wmayer
0f9768fb33 Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
Wanderer Fan
1f1012f7a9 [TD]correct retrieval of dim text for DXF export 2022-02-11 16:24:35 -05:00
marioalexis
9801f76e2f TechDraw: Call PyMem_Free() to free allocated buffer 2022-02-09 16:04:59 +01:00
Wanderer Fan
aa6f8c4b14 [TD]migrate DrawingWB projection functions to TechDrawWB 2022-01-29 14:49:15 -05:00
luz paz
738a697d94 [TD] remove Py2 code from TD 2021-04-22 13:08:56 +02:00
Yorik van Havre
e947b9bb3b TechDraw: Exposed GeomHatch functionality to Python in TechDraw.makeGeomHatch() 2021-02-02 17:49:44 +01:00
wmayer
b3cd06afe8 Py: fix memory leaks by incorrect use of PyList_Append 2020-12-13 16:30:04 +01:00
Aapo
e7b4d9ed99 [TD] Refactor DrawViewDimension getFormatedValue() into two functions. 2020-12-02 16:38:21 +01:00
wmayer
7224fe8e8f Coverity: Explicit null dereferenced 2020-07-20 17:34:27 +02:00
wandererfan
d7659c7741 [TD]Dimension Py Routine fixes 2020-05-10 18:06:40 -04:00
wandererfan
ac8e653e0e [TD]support Horiz/Vert Dims in Dxf export 2020-01-23 13:46:51 -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
wandererfan
b9035c8ad7 [TD]fix py2 unicode/string handling 2019-11-02 14:59:32 -04:00
wandererfan
88b07896e6 [TD]Extent Dimensions 2019-11-02 14:59:32 -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
fbfdb69c20 [TD]Py Cosmetic Vertex, Line, Circle Arc 2019-07-15 12:36:48 -04:00
wandererfan
2dd9e67887 Expose findCentroid to Python 2018-08-11 11:24:12 +02:00
wandererfan
08a3e315ce Add support for Dxf Export R14 spec 2018-07-18 10:52:03 -03:00
wandererfan
aec643fd84 Fix wrong point in Radius dim 2018-06-10 19:13:22 +02:00
wandererfan
d3befd1801 Position DPGI Dimensions correctly in Dxf file 2018-06-04 12:56:26 -04:00
wandererfan
d4552fb11a Export Diametric Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan
8115c8e80b Export Radial Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan
65f67d8ff8 Export Angular Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan
06e8572d98 Export Linear Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan
6f61c21e3c export TD Annotation to Dxf 2018-05-16 18:58:10 -04:00
wmayer
5e484d0a92 disable Py::Exception(const std::string&) constructor as it will be removed in future PyCXX versions 2018-04-29 11:00:28 +02:00
wandererfan
8047ec3f7e Add View and Page Dxf export 2018-04-29 10:12:31 +02:00
wmayer
99ec96acd5 prepare for PyCXX 7.0 2018-04-18 19:20:50 +02:00
WandererFan
02b64dca3a VPart/VSection Graphic Properties to Gui side 2018-02-14 15:42:26 -05:00
wmayer
0d617f97d6 Port to occ7.2:
+ Standard_Failure::Caught() is now marked as deprecated and should be replaced with standard C++ exception handling
2017-09-01 16:27:46 +02:00
luzpaz
657795cb12 TechDraw: typo fix 2017-07-10 19:29:55 -03:00
WandererFan
04eaca7e20 Add viewPartAsSvg in App 2017-06-23 08:14:46 +02:00
WandererFan
cd79ae2d5e Add viewPartAsDxf function in App 2017-06-23 08:14:46 +02:00
Peter Lama
fa4bebf2e0 Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided
with OCCT 7.0. See
https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form
and
https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019
for why this is necessary for OCCT >= 7.1
2017-04-20 12:27:34 +02:00
WandererFan
8abda88d4a Fix error handling 2016-11-18 10:14:59 +01:00
WandererFan
78de266aa3 Add planar embedding to EdgeWalker 2016-11-18 10:13:41 +01:00
WandererFan
9ad177915d Create outline of 3D shape 2016-11-07 17:20:19 -05:00
WandererFan
6b9d422136 Protect EdgeWalker against bad input 2016-09-11 13:12:24 -04:00
WandererFan
5197ae5313 Fix for Wires with same bbox, different areas 2016-09-01 12:14:43 -04:00