Stefan Tröger
e58ae2b616
Setup ShapeBinder Viewprovider and command
2016-04-12 18:12:19 +02:00
Stefan Tröger
811ccc410c
PartDesign: Reorder datum commands
2016-04-12 18:12:19 +02:00
Stefan Tröger
9969aac671
fix dependent copy references
...
to make them work with sketches an additional Part2DObject reference needed to be created
2016-04-12 18:12:19 +02:00
blobfish
78f3e9786b
Core: Gui: DAGView: using pending icon and showing valid status for tool tip
2016-04-12 18:12:19 +02:00
blobfish
e6f77dc067
Core: Gui: DAGView: add pending icon
2016-04-12 18:12:19 +02:00
Alexander Golubev
36fbf73011
PartDesign/TaskLoftParameters: Added UpdateView checkbox +cleanup
2016-04-12 18:12:19 +02:00
Alexander Golubev
efef23d8e2
PartDesign/Gui: prevent Task*PatternParameters not crash on non sketchBased features
2016-04-12 18:12:19 +02:00
Alexander Golubev
aa7d054d47
PartDesign/TaskLoftParameters: removed unused hidden widgets
2016-04-12 18:12:19 +02:00
Alexander Golubev
0ff24fd618
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
ba57a843ad
PartDesign/ViewProviderBody: reduce number of recalculations in the body
2016-04-12 18:12:19 +02:00
Alexander Golubev
3be2f99b52
PartDesign/Gui: rework of ViewProviderDatumCS
2016-04-12 18:12:19 +02:00
Alexander Golubev
fa29bfa667
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
d4c67c0366
GeoFeaturertDesign/Gui: Add recompute sizes and datums to the body vp
2016-04-12 18:12:19 +02:00
Alexander Golubev
0c620cc885
App/OriginFeature: a minor cleanup
2016-04-12 18:12:19 +02:00
Alexander Golubev
5918f6f264
Gui: forbid to delete OriginFeatures
2016-04-12 18:12:19 +02:00
Alexander Golubev
bceec93a92
PartDesign/Gui: rework ViewProviderDatumPlane
2016-04-12 18:12:19 +02:00
Alexander Golubev
7ac1ab6a6d
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
118f1cec6a
PartDesign/App: cleanup datum's classes and headers
2016-04-12 18:12:19 +02:00
Alexander Golubev
04f3ae0605
PartDesign/CommandBody: a minor fix in MoveTip command
2016-04-12 18:12:19 +02:00
Alexander Golubev
26fb01b429
PartDesign/Gui: add origin sizing and rework datums sizing
2016-04-12 18:12:18 +02:00
Alexander Golubev
56823eeb9d
App/Part: add getPartOfObject() to search a part for object
2016-04-12 18:12:18 +02:00
Alexander Golubev
1a26f7551f
PartDesign: add Origin to the Body and unstrap the module from the Parts
2016-04-12 18:12:18 +02:00
Alexander Golubev
15e998e07c
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
9292ddfa1e
Gui/ViewProviderOriginGroup: prevent recalculation of origin size on ViewProviderOriginFeature changes
2016-04-12 18:12:18 +02:00
Alexander Golubev
9753f27064
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
e8e4f31b14
Gui/SoFCSelection: added a methode for applying defaults from settings
2016-04-12 18:12:18 +02:00
Stefan Tröger
2a5d800940
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
cebc5860c1
Gui/ViewProviderGeoFeatureGroup: suppress DocumentObjectGroup's hide/show behavior
2016-04-12 18:12:18 +02:00
Alexander Golubev
2c2d155ee9
OriginGroup: add new abstraction layer between the Part and the GeoFeatureGroup
2016-04-12 18:12:18 +02:00
Alexander Golubev
59ca9212d6
Gui/ViewProviderDocumentObjectGroup: minor enhancements
2016-04-12 18:12:18 +02:00
Alexander Golubev
4e6298d539
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
8bca27463e
Part/Attacher: remove a couple of no more valid asserts
2016-04-12 18:12:18 +02:00
Alexander Golubev
797d6d3a11
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
ecbb576330
App: minor fix of spacing
2016-04-12 18:12:17 +02:00
Alexander Golubev
26bb702ff6
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
c6797b6c29
Revert "part deletion handling"
...
This reverts commit 6ab2002021ac1df26ebe77f488f5cd94e1df0b26.
2016-04-12 18:12:17 +02:00
Alexander Golubev
dbb5786ffd
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
76b4685b5f
Commented out a portion of code cosed a segfault
2016-04-12 18:12:17 +02:00
Alexander Golubev
5016054a8b
PartDesign/Body: move deletion of subobjects to view provider
2016-04-12 18:12:17 +02:00
Alexander Golubev
aa32522115
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
abc925b62e
PartDesign/Gui: Make partDesign's add sketch command Workflow-aware
2016-04-12 18:12:17 +02:00
Alexander Golubev
492f1d24a4
PartDesign/Gui: initial migration command implementation
2016-04-12 18:12:17 +02:00
Alexander Golubev
c4f094bba4
PartDesign/Gui: rename some fonctions in ReferenceSelection.cpp
...
e.g. getPythonStr -> buildLinkListPythonStr etc
2016-04-12 18:12:17 +02:00
Alexander Golubev
06139ee8f3
Gui/ViewProciderPart: fix XZ plane orientation
...
Also fix spacing and a Workbench.getValue() condition
2016-04-12 18:12:17 +02:00
Alexander Golubev
ca8be01a4b
Fix a crash then sketch calls recalculation
2016-04-12 18:12:17 +02:00
Alexander Golubev
f9e67626ec
PartDesign/Body: remowe Part::Feature from isAllowed()
2016-04-12 18:12:17 +02:00
Alexander Golubev
c388a84424
PartDisign/WorkflowManager: initial implementation
2016-04-12 18:12:17 +02:00
Alexander Golubev
8a2d4289f6
PartDesign/FeaturePrimitive: suppress a -Woverloaded-virtual warning
2016-04-12 18:12:17 +02:00
Alexander Golubev
c782a11aab
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
a5fcd5775e
PartDesign: update body management commands according to the changes in body paradigms
2016-04-12 18:12:16 +02:00