Commit Graph

26860 Commits

Author SHA1 Message Date
Abdullah Tahiri
d0930a545f Part: GeometryMigrationExtension classes
========================================

This is a light-weight c++ only geometry extension to enable migration of information that was stored within
the Part WB and should be migrated to another WB (for example Sketcher WB)

It is designed so that a single extension can migrate different types of data (current and future).

When new data needs to be migrated, first a new enum bit is to be added to the class enum and new data members are to
be added to store the information within GeometryMigrationExtension class.

In the Restore() function restoring the data to be migrated, a GeometryMigrationExtension extension is added to the
geometry to be migrated with the data information and the corresponding enum bit set.

In the object to receive the migration data, onDocumentRestored() it is checked whether an extension of type
GeometryMigrationExtension is present, if yes, it is checked whether a bit used for migration is set and, if yes,
the data is retrieved and the GeometryMigrationExtension extension (preferably) removed from the Geometry object.
2020-12-10 18:34:06 +01:00
Abdullah Tahiri
2c47b340bb Part: Geometry - Add non-const getters for extensions 2020-12-10 18:34:06 +01:00
Abdullah Tahiri
a15fd629e1 Part: Geometry refactor member copy
===================================

Encapsulate Part::Geometry data member copy process in a single function (copyNonTag).

Part::Geometry derived classes need not know the specifics of the data member of Part::Geometry.

Change the delegation of the copy of extensions from clone() to copyNonTag. Because clone() relies on
copy() and now copy() of Part::Geometry data member relies on copyNonTag(), there is no actual change
to the clone() functionality, but the copy() funcionality gains the copy of the extensions via copyNonTag().
2020-12-10 18:34:06 +01:00
luz paz
392069b657 AddonManager: Sort .qrc file
[skip ci]
2020-12-10 11:57:25 +01:00
luz paz
1877611332 Part: fix header uniformity + trailing whitespace
[skip ci]
2020-12-10 11:56:55 +01:00
Ryan White
a9f19f467b Merge branch 'master' into master 2020-12-10 00:54:32 -08:00
Ryan White
5c2487fa0a Update README.md
Updated per comments on first PR
2020-12-10 00:52:46 -08:00
marioalexis
7c20483c12 Draft: Improve makeWires in upgrade function 2020-12-09 15:21:33 -03:00
wmayer
c235b9fba9 PD: [skip ci] fix invalid strings 2020-12-09 16:59:34 +01:00
wmayer
564610211c Gui: [skip ci] Fix Qt warning 'Unable to set geometry ...' 2020-12-09 16:22:14 +01:00
wmayer
f54c755dc0 Main: [skip ci] handle C++ exception in main() function 2020-12-09 15:38:06 +01:00
Chris Hennes
d0cafe34fb Merge branch 'master' into fixAirfoilImportNumberRegex 2020-12-09 08:35:24 -06:00
Chris Hennes
8556885f14 Add support for integer values. 2020-12-09 08:32:43 -06:00
wmayer
22c555d460 Fix compiler warnings about redefinition of GL_GLEXT_LEGACY 2020-12-09 14:45:52 +01:00
Yorik van Havre
2fb2e1a5a8 Draft: Better layout of the Draft SetStyle task panel 2020-12-09 14:42:50 +01:00
Yorik van Havre
85003c7ccd Arch: Fixed typo (Awming->Awning) 2020-12-09 11:54:35 +01:00
Andreas Brinner
63f7aa3b66 Check return value of getMDIViewPage() a second time
When exporting a hidden TechDraw::Page with exportPageAs[Pdf|SVG] a
Segmentation Fault occured.

The return value of getMDIViewPage() was only checked for the first call, but
not for the second call. showMDIViewPage() silently returns, when the
TechDraw::Page is hidden and does not load the page.
2020-12-09 11:21:59 +01:00
wmayer
65ac47759f [skip ci] avoid to let Coin redefine several HAVE_ macros 2020-12-08 19:06:09 +01:00
wmayer
5d7a2df758 App: [skip ci] by default disable transactions on recompute 2020-12-08 13:17:16 +01:00
Aapo
a421a35f1f [TD] Add a comment about QGIViewBalloon.cpp draw() function needing refactoring. 2020-12-07 23:48:28 +02:00
Aapo
6670197fad [TD] Add Balloon property LineVisible for making the Balloon line visible or hidden. 2020-12-07 23:40:12 +02:00
Aapo
d274805567 [TD] Add Balloon property EndTypeScale for scaling line end decorations (arrows etc). 2020-12-07 23:40:12 +02:00
travisapple
51a30c7e74 Update importWebGL.py 2020-12-07 12:57:53 -08:00
Ryan White
ac3cc0804e Update README.md
Added details on reporting issues to the README.md file
2020-12-07 11:38:23 -08:00
Chris Hennes
63dd784e64 Merge branch 'master' into fixAirfoilImportNumberRegex 2020-12-07 13:27:03 -06:00
Chris Hennes
9e9e1b5b54 [Draft] Fix airfoil data detection regex
The regular expression that Draft's airfoil data importer uses did not allow for lowercase "e" when using scientific notation. This corrects that, and silences Python Developer Mode warnings about deprecated escape sequences by converting most of the regex to use raw strings.
2020-12-07 13:13:34 -06:00
JAndersM
bd913d1dd5 Update task_scale.py
The changes solves the Ticket #3691 - Bug in draft scale. Only integers work
2020-12-07 19:51:29 +01:00
wmayer
751f48a54f Import: [skip ci] fixes #0004477: Can't import .STEP files with cyrillic symbols 2020-12-07 17:54:17 +01:00
Yorik van Havre
80d49c444e Merge pull request #4068 from aapo-aapo/TD-Spreadsheet-fix
[TD] TechDraw DrawViewSpreadsheet fix
2020-12-07 14:15:01 +01:00
Yorik van Havre
5fcbe1ba16 Merge pull request #4113 from bitacovir/Std_File_Menu_Icons
Add SVG icons for ten Std File Menu Commands
2020-12-07 13:29:00 +01:00
bitacovir
cc1e2625db Add SVG icons for ten Std File Menu Commands
This commit adds SVG files with icons for these commands. Also, it makes the necessary changes on CommandDoc.cpp, CommandWindow.cpp, CommandStd.cpp and resource.qrc files.
2020-12-06 18:25:20 -03:00
sliptonic
14216dcaa0 Merge pull request #4089 from mlampert/feature/thread-milling
Path: Feature/thread milling
2020-12-05 13:16:53 -06:00
donovaly
36686f78b1 [TD] treat dimensions the same way, no matter if with unit or not
fixes the issue reported here: https://forum.freecadweb.org/viewtopic.php?f=35&t=52545&start=40#p454483
2020-12-05 03:58:39 +01:00
Aapo
f72bf9d325 [TD] Make DrawViewSpreadSheet respect DrawPage::redrawCommand() update mechanism. 2020-12-05 00:50:20 +02:00
Aapo
3dd77d7e89 [TD] Fix column index range checking bug in std::string DrawViewSpreadsheet::getSheetImage(void) 2020-12-05 00:50:19 +02:00
luz paz
60a6e8e36e FEM: Added instructions to fem.dox file 2020-12-04 17:50:05 +01:00
luz paz
55f471b72c FEM: doxygen 2020-12-04 17:50:00 +01:00
Mark O'Donovan
e88dff8902 Remove unused variable in DrawViewDimension.cpp 2020-12-04 17:13:56 +01:00
wmayer
628fcedb11 App: [skip ci] in addition to PR4104 pop the diagnostic 2020-12-04 17:11:22 +01:00
Mark O'Donovan
976c7f5346 Suppress gcc warnings also in FeaturePythonPyImp.h
Clang warnings are already disabled.
2020-12-04 17:09:06 +01:00
donovaly
97e7913b11 [TD] uniform wording
in other/existing elements of line width we speak of "width", so do the same for line groups
2020-12-04 13:56:38 +01:00
Markus Lampert
4aeac73b39 More py2 special handling for unit tests 2020-12-03 19:39:33 -08:00
Markus Lampert
371daca128 Added consistent encoding headers and fixed whitespaces 2020-12-03 18:15:36 -08:00
Markus Lampert
d098547e17 Fixed unit test breakage for py2 2020-12-03 18:15:36 -08:00
Markus Lampert
5e6725a84f Added thread milling files to cmake 2020-12-03 18:15:36 -08:00
Markus Lampert
1fdff7a894 Added example thread cutter to default library 2020-12-03 18:15:36 -08:00
markus
deb03f678d Use new ToolBits (and only those) for thread milling. 2020-12-03 18:15:36 -08:00
markus
beb4f2e011 Filter all TCs for suitability for a given op. 2020-12-03 18:15:36 -08:00
markus
8fb1cd078b Catch exception if shape file does not include a thumbnail. 2020-12-03 18:15:36 -08:00
markus
03d09be6b7 Fixed merge issue 2020-12-03 18:15:36 -08:00