Alexander Golubev
96ae671a23
PartDesign/Gui: prevent Task*PatternParameters not crash on non sketchBased features
2016-04-12 18:12:19 +02:00
Alexander Golubev
3261fdce14
PartDesign/TaskLoftParameters: removed unused hidden widgets
2016-04-12 18:12:19 +02:00
Alexander Golubev
57c583bb09
Part/Gui: remove ViewProviderPart::onDelete which handled unnecessary body housekeaping
...
Also do some headers cleanup
2016-04-12 18:12:19 +02:00
Alexander Golubev
3bbbb941d1
PartDesign/ViewProviderBody: reduce number of recalculations in the body
2016-04-12 18:12:19 +02:00
Alexander Golubev
ec47cfce54
PartDesign/Gui: rework of ViewProviderDatumCS
2016-04-12 18:12:19 +02:00
Alexander Golubev
4aaad7811f
PartDesign/ViewProviderDatum: minor enhancements
...
- added defaultSize constant
- fixed typo in margin{g,}Factor function name
2016-04-12 18:12:19 +02:00
Alexander Golubev
a8fcda3523
GeoFeaturertDesign/Gui: Add recompute sizes and datums to the body vp
2016-04-12 18:12:19 +02:00
Alexander Golubev
f7bcf565d9
App/OriginFeature: a minor cleanup
2016-04-12 18:12:19 +02:00
Alexander Golubev
625ba08226
Gui: forbid to delete OriginFeatures
2016-04-12 18:12:19 +02:00
Alexander Golubev
ba57e0e4dd
PartDesign/Gui: rework ViewProviderDatumPlane
2016-04-12 18:12:19 +02:00
Alexander Golubev
0be77b1884
PartDesign/Gui: make Datums use general material interface
...
- Make Datums colorable and transparent
- Change default datums color to yellow and transparency to 60%
- Rework Lines and Points datum view provider
- Add ViewProviderDatum::defaultBoundBox()
2016-04-12 18:12:19 +02:00
Alexander Golubev
d62aa38ac4
PartDesign/App: cleanup datum's classes and headers
2016-04-12 18:12:19 +02:00
Alexander Golubev
2c3bca4c9e
PartDesign/CommandBody: a minor fix in MoveTip command
2016-04-12 18:12:19 +02:00
Alexander Golubev
68c78de00d
PartDesign/Gui: add origin sizing and rework datums sizing
2016-04-12 18:12:18 +02:00
Alexander Golubev
a3e3c78388
App/Part: add getPartOfObject() to search a part for object
2016-04-12 18:12:18 +02:00
Alexander Golubev
3ed51ac4bd
PartDesign: add Origin to the Body and unstrap the module from the Parts
2016-04-12 18:12:18 +02:00
Alexander Golubev
88ad00e056
Gui/ViewProviderOriginFeature: remove the "New" selection model stuff
...
The new selection model is not usable for the OriginFeature's view
provider due to from one side it doesn't really have any subfeatures, so
it won't be really needed, and on the other side we will have to use
SoFCSelection because in that case it isn't possible to implement
highlighting in any sane way (unless we will reimplement drawing ourselfs).
2016-04-12 18:12:18 +02:00
Alexander Golubev
44dd2c8e22
Gui/ViewProviderOriginGroup: prevent recalculation of origin size on ViewProviderOriginFeature changes
2016-04-12 18:12:18 +02:00
Alexander Golubev
1b76b1117d
Gui: refactor Plane's and Line's ViewProviders and add yet another one for OriginFeature
...
- Share the code of Gui::ViewProviderPlanes and Gui::ViewProviderLine
in Gui::ViewProviderOriginFeature
- Add support for coloring and transparencing the OriginFeatures by
ViewProviderGeometryObject means.
2016-04-12 18:12:18 +02:00
Alexander Golubev
6414c3166b
Gui/SoFCSelection: added a methode for applying defaults from settings
2016-04-12 18:12:18 +02:00
Stefan Tröger
f6f2565b8c
fix origin plane and line viewprovider
...
master changed the highlight code for viewproviders, needed an adjustement after rebase
2016-04-12 18:12:18 +02:00
Alexander Golubev
a93fd8f6e9
Gui/ViewProviderGeoFeatureGroup: suppress DocumentObjectGroup's hide/show behavior
2016-04-12 18:12:18 +02:00
Alexander Golubev
d72a919384
OriginGroup: add new abstraction layer between the Part and the GeoFeatureGroup
2016-04-12 18:12:18 +02:00
Alexander Golubev
d5ebf932b2
Gui/ViewProviderDocumentObjectGroup: minor enhancements
2016-04-12 18:12:18 +02:00
Alexander Golubev
44734cea91
Gui/ViewProviderOrigin: fix a segfault when accessed uninitialized plane's view providers when setted up lines sizes
2016-04-12 18:12:18 +02:00
Alexander Golubev
1d7a1982aa
Part/Attacher: remove a couple of no more valid asserts
2016-04-12 18:12:18 +02:00
Alexander Golubev
305151be34
App/Origin: big refactoring
...
- Rebase App::Origin on App::DocumentObject
- Keep all control over the Origin structure inside the Origin and it's
ViewProvider
- Add OriginFeature class as common base for App::Plane and App::Line
- Rebase App::Plane and App::Line on top of newly created class and
move to the file.
- Change Origin's ViewProvider API associated with temporary display
- Lots of associated changes to files
- Several minor fixes
- Lots of new bugs
2016-04-12 18:12:18 +02:00
Alexander Golubev
8bad396f16
App: minor fix of spacing
2016-04-12 18:12:17 +02:00
Alexander Golubev
54e572fd4c
App: add two callback to DocumentObject to perform initialization/uninitialization inside an object
...
Added two callbacks to App::DocumentObject
- setupObject()
- unsetupObject()
All associated code was added to App::Document
Also was added a specific flag ObjectFlag::Deleted wich is set when performing the deletion.
2016-04-12 18:12:17 +02:00
Alexander Golubev
ade1dec103
Revert "part deletion handling"
...
This reverts commit 6ab2002021ac1df26ebe77f488f5cd94e1df0b26.
2016-04-12 18:12:17 +02:00
Alexander Golubev
e26c6174ac
App/GeoFeatureGroup: derive from DocumentObjectGroup
...
Refactor GeoFeatureGroup and derive it from DocumentObjectGroup rather
than GeoFeatureObject to unify code of those two classes.
2016-04-12 18:12:17 +02:00
Alexander Golubev
78de2a193a
Commented out a portion of code cosed a segfault
2016-04-12 18:12:17 +02:00
Alexander Golubev
9db890015c
PartDesign/Body: move deletion of subobjects to view provider
2016-04-12 18:12:17 +02:00
Alexander Golubev
57a913f796
DocumentObjectGroup: fix deleting of groups in case of malformed links
...
This one prevents thurther object structure damage if
DocumentObjectGroup::Group connains multiple links to the same feature.
Also minorr changes:
- Fix some spacing
- Ask the user if he wants to delete group content
2016-04-12 18:12:17 +02:00
Alexander Golubev
067530c168
PartDesign/Gui: Make partDesign's add sketch command Workflow-aware
2016-04-12 18:12:17 +02:00
Alexander Golubev
ddd0ecafa9
PartDesign/Gui: initial migration command implementation
2016-04-12 18:12:17 +02:00
Alexander Golubev
771c2b2fce
PartDesign/Gui: rename some fonctions in ReferenceSelection.cpp
...
e.g. getPythonStr -> buildLinkListPythonStr etc
2016-04-12 18:12:17 +02:00
Alexander Golubev
dfeb2e3f42
Gui/ViewProciderPart: fix XZ plane orientation
...
Also fix spacing and a Workbench.getValue() condition
2016-04-12 18:12:17 +02:00
Alexander Golubev
ad64c4f453
Fix a crash then sketch calls recalculation
2016-04-12 18:12:17 +02:00
Alexander Golubev
37aab92bbc
PartDesign/Body: remowe Part::Feature from isAllowed()
2016-04-12 18:12:17 +02:00
Alexander Golubev
9e47fea5ab
PartDisign/WorkflowManager: initial implementation
2016-04-12 18:12:17 +02:00
Alexander Golubev
eec03e20cc
PartDesign/FeaturePrimitive: suppress a -Woverloaded-virtual warning
2016-04-12 18:12:17 +02:00
Alexander Golubev
9347f66a9e
PartDesign/Gui: Move various utility stuff from Workbench to a separate file
...
Also do some header cleanup.
2016-04-12 18:12:17 +02:00
Alexander Golubev
5459768c3f
PartDesign: update body management commands according to the changes in body paradigms
2016-04-12 18:12:16 +02:00
Alexander Golubev
2e27001382
Sketcher: minor enhance in sketch interaction with body
2016-04-12 18:12:16 +02:00
Alexander Golubev
09b32218ef
PartDesign: fix negative Offset property in pad and pocket
2016-04-12 18:12:16 +02:00
Alexander Golubev
3fff7c6ef2
PartDesign/Gui: move body commands to a separate file
2016-04-12 18:12:16 +02:00
Alexander Golubev
f6b0ed3a47
PartDesign: Body rework - add BaseFeature property and make Tip always point to solid
2016-04-12 18:12:16 +02:00
Alexander Golubev
1040133be5
Gui: prevent DAGView crash freecad when a document gets a circular dependency
2016-04-12 18:12:16 +02:00
Alexander Golubev
0b9cc3c19e
Gui/Tree: make tree view correctly handle child order than moving them
2016-04-12 18:12:16 +02:00