Commit Graph

23271 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
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
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
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
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
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
Markus Lampert
f0a0a9a70a Cleaned up properties 2020-12-03 18:15:36 -08:00
Markus Lampert
ac4af399c3 Added support for imperial threads to thread milling 2020-12-03 18:15:36 -08:00
Markus Lampert
885036553b Added actual thread milling path generation. 2020-12-03 18:15:36 -08:00
Markus Lampert
310f72145d Added thread milling radii calculation 2020-12-03 18:15:36 -08:00
Markus Lampert
ab9bf8c222 Add basic thread milling op 2020-12-03 18:15:36 -08:00
Aapo
514b41b1c2 [TD] GQIViedDimension.cpp, GQCustomText.cpp - Fix Dimension label unit positioning bug and too tight bounding rectangle. 2020-12-03 21:31:01 +01:00
sliptonic
9f930af3fe Merge pull request #4097 from Russ4262/millface_fix
Path: Millface fix - Address rounding issue
2020-12-03 13:29:14 -06:00
sliptonic
13be5f89c7 Merge pull request #4102 from sliptonic/vcarvedepth
[PATH] Add finaldepth property.
2020-12-03 13:27:44 -06:00
donovaly
4bae944950 [TD] make LineGroup selectable
At the moment one has to specify the LineGroup as string. But one doesn't know what groups exist. So one has to check the Wiki, learn there where the groups are defined and then open the definition file with a text editor.

This PR simplifies this by reading the existing groups out of the definition file and fill the combobox accordingly.
It also give the user info what the selected LineGroup defines via the tooltip.

A nice side effect is that no typos can occur since you don't have to enter the LineGroup name as text.
2020-12-03 17:24:49 +01:00
wmayer
23273c42db Py3: [skip ci] make FreeCAD thumbnailer working with Py3 by opening PNG icon in binary mode 2020-12-03 16:50:45 +01:00
Yorik van Havre
728cf3ca11 Draft: Fixed Annotation style dialog's arrow types - fixes #4505 2020-12-03 16:30:05 +01:00
donovaly
7f856a251f tolerances can be negative, thus the decimal precision check must be adapted 2020-12-03 15:50:06 +01:00
donovaly
a2b523fb39 [TD] fix unit mismatch bug
- also make global decimal option italic since it only affects new dimensions
- also fix a typo in UnitsApi.h
2020-12-03 15:50:06 +01:00
Yorik van Havre
8c15f7f84f Draft: Colored grid axes 2020-12-03 15:15:15 +01:00
wmayer
eac5b9466f PartDesign: [skip ci] for PartDesign::Torus primitive use TopoShape::makeTorus 2020-12-03 15:06:22 +01:00