Commit Graph

806 Commits

Author SHA1 Message Date
wmayer
a99be14233 TD: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Wanderer Fan
1620fd5a69 [TD]fix double units in dxf page export 2022-03-22 08:41:36 -04:00
Uwe
5e6699e48d [TD] remove Python.h and Xerces
seems not to be necessary anymore
2022-03-21 02:53:47 +01:00
Wanderer Fan
c9f6aea463 [TD]fix default scale 2022-03-18 08:21:21 -04:00
wmayer
d69defaa3c Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
Wanderer Fan
aa4ba37a6c [TD]fix update suppression logic 2022-03-16 09:31:29 -04:00
Wanderer Fan
02155296ce [TD]fix spelling mistake in comment for CI 2022-03-14 20:03:08 -04:00
Wanderer Fan
8f1bd5340b [TD]fix DetailView alignment 2022-03-14 20:03:08 -04:00
Wanderer Fan
7c6a7aa25b [TD]fix detail highlight on DrawViewDetail 2022-03-14 20:03:08 -04:00
wmayer
0054cbddaa Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
Uwe
7a2952abf7 [TD] fix compilation error 2022-03-14 01:13:56 +01:00
Wanderer Fan
244caf39cd [TD]fix unit display to standards 2022-03-13 19:04:42 -04:00
wmayer
68171bd20c TD: Fix several coverity issues:
* CID 316569: Uninitialized scalar variable
* CID 350651: Unchecked dynamic_cast
* CID 350565: Unchecked dynamic_cast
* CID 350595: Unchecked dynamic_cast
* CID 350638: Unchecked dynamic_cast
* CID 350547: Division or modulo by float zero
2022-03-13 15:40:49 +01:00
Wanderer Fan
12f0736189 [TD]fix 2 edge angle Dim special case 2022-03-12 08:55:35 -05:00
Wanderer Fan
ed82b361bf [TD]fix getScale should be Scale.getValue 2022-03-11 11:59:31 -05:00
Wanderer Fan
0676c27443 [TD]fix Dim text on wrong side 2022-03-11 08:10:58 -05:00
Wanderer Fan
bbffb3f413 [TD]handle ScaleType in old documents 2022-03-10 09:25:52 -05:00
Wanderer Fan
5926060281 [TD]fix ScaleType change behaviour 2022-03-07 09:30:39 -05:00
wmayer
58a719e207 Base: move ILogger sub-classes to their own source files in order to reduce including stream classes in client code 2022-03-06 10:13:47 +01:00
wmayer
ca3c8185e0 App/Gui: move template classes (ViewProvider)ExtensionPythonT to their own header files 2022-03-04 18:54:42 +01:00
Wanderer Fan
3c34abc0fa [TD]move format spec to dimension tab
- also make %.2w default format
2022-03-04 09:28:16 -05:00
Wanderer Fan
913fb21502 [TD]fix misplaced section line
- BRepBndLib::Add results in wrong bbox center.
- replaced with BRepBndLib::AddOptimal
2022-03-03 09:31:29 -05:00
Wanderer Fan
eb4a5384c0 [TD]add alignment grid to page 2022-02-27 14:34:35 -05:00
Roy-043
8a92953f2a TechDraw: Use Draft.get_svg instead of Draft.getSVG
The Draft.getSVG has been renamed. Using it results in warnings in the Report view. The new function Draft.get_svg has the same signature.
2022-02-15 08:58:25 -05:00
Wanderer Fan
484ff4fafb [TD]fix handling of composite shapes 2022-02-12 08:12:50 -05:00
Wanderer Fan
88004e8dc9 [TD]correct retrieval of dim text for DXF export 2022-02-11 16:24:35 -05:00
marioalexis
7895af1822 TechDraw: Call PyMem_Free() to free allocated buffer 2022-02-09 16:04:59 +01:00
Wanderer Fan
309a1455cb [TD]Fix 4486 allow detail view of Base with no solids 2022-02-01 09:15:00 -05:00
Benjamin Bræstrup Sayoc
4f9e5cd464 Improve code simplicity/readability 2022-02-01 09:10:36 -05:00
luz paz
a5135efd87 TD: cleanup after #5457 [skip ci]
Fix header uniformity  
Fix grammar  
Fix trailing whitespace
2022-01-30 10:38:55 -05:00
edi271
a26933bf4c [TD] Include Intersection method into DrawUtil class 2022-01-29 14:49:44 -05:00
Wanderer Fan
cc770208ea [TD]migrate DrawingWB projection functions to TechDrawWB 2022-01-29 14:49:15 -05:00
Wanderer Fan
4da3c21dcf [TD]Allow override of dimension line angles 2022-01-27 09:42:49 -05:00
Aapo
253817e3e9 [TD] Add new non-standard format specifier '%w' that truncates trailing zeros. 2022-01-21 11:24:44 -05:00
edi271
c46a4f776b [TD] Move Circulation method to DrawUtil 2022-01-21 11:22:40 -05:00
Wanderer Fan
79f9fb6845 [TD]expose Page request paint method to Python 2022-01-11 09:36:48 -05:00
Wanderer Fan
3a7a12e436 [TD]improve handling of View in multiple Pages 2022-01-11 09:36:48 -05:00
Wanderer Fan
e91cc8e329 [TD] avoid memory leaks by using shared_ptr
TD geometry objects are sometimes double deleted.  This
change uses shared_ptr instead of raw pointers to manage
deletions.
2022-01-07 13:34:20 -05:00
luz paz
4f886b2b8c Fix various typos and refinements 2022-01-06 20:22:34 +01:00
Wanderer Fan
cec898c6b3 [TD]prevent touched but must be execute on DrawPage 2022-01-02 09:48:38 -05:00
wmayer
5fba9cecae TD: [skip ci] partially fix issue 0004765 2021-12-21 11:39:17 +01:00
wmayer
6ad156b6b7 TD: [skip ci] partially fix issue 0004765 2021-12-20 10:11:03 +01:00
wmayer
c11d5df80a TD: replace usage of raw pointers of Vertex and Face with shared pointers.
This fixes issue 4741: Broken File After Using Landmark Dimension in TechDraw
2021-12-10 14:25:24 +01:00
Yorik van Havre
f3ccc6d660 Merge pull request #5023 from marioalexis84/gui-encoding
Gui:  Harmonize encoding/decoding between view, property editor and command line.
2021-10-14 12:24:49 +02:00
Chris Hennes
485be3acf8 Merge pull request #5082 from pavltom/Balloon_Updates
TechDraw - Balloon handling updates
2021-10-09 13:28:48 -05:00
wmayer
74639da997 OCCT: port FreeCAD sources to version 7.6
SMESH is not yet ported
Although FreeCAD code compiles with OCCT 7.6 it doesn't work at the moment
2021-10-09 13:49:02 +02:00
Tomas Pavlicek
c7cc7fa0fd TechDraw - Balloon updates 2021-10-03 13:43:53 +02:00
marioalexis
63d34c8e41 TechDraw: Fix Unicode and UTF-8 encoding character behavior 2021-09-23 21:21:24 -03:00
wmayer
e211b89cf8 port to MSYS2/clang 2021-09-19 19:49:44 +02:00
mwganson
dfe02d4099 [TechDraw] prevent crash where user duplicates page without also duplicating dependencies 2021-09-06 13:20:29 -05:00