PartDesign: Adopt to new property status bits

This commit is contained in:
Stefan Tröger
2016-01-15 08:11:06 +01:00
parent a6c8f38cf0
commit 7d30833349
7 changed files with 16 additions and 16 deletions

View File

@@ -52,7 +52,7 @@ PROPERTY_SOURCE(PartDesign::Feature,Part::Feature)
Feature::Feature()
{
ADD_PROPERTY(BaseFeature,(0));
Placement.StatusBits.set(3, true);
Placement.setStatus(App::Property::Hidden, true);
}
short Feature::mustExecute() const

View File

@@ -46,7 +46,7 @@ PROPERTY_SOURCE(PartDesign::DressUp, PartDesign::Feature)
DressUp::DressUp()
{
ADD_PROPERTY(Base,(0));
Placement.StatusBits.set(2, true);
Placement.setStatus(App::Property::ReadOnly, true);
}
short DressUp::mustExecute() const

View File

@@ -43,7 +43,7 @@ PROPERTY_SOURCE(PartDesign::ShapeBinder, Part::Feature)
ShapeBinder::ShapeBinder()
{
ADD_PROPERTY_TYPE(Support, (0,0), "",(App::PropertyType)(App::Prop_None),"Support of the geometry");
Placement.StatusBits.set(3, true);
Placement.setStatus(App::Property::Hidden, true);
}
ShapeBinder::~ShapeBinder()

View File

@@ -43,7 +43,7 @@ ViewProviderDatumPoint::ViewProviderDatumPoint()
// SoMarkerSet won't be drawn if transparency is nonzero, so disabble it
Transparency.setValue (0);
Transparency.StatusBits.set ( 3, true ); //< make transparency hidden
Transparency.setStatus(App::Property::Hidden, true); //< make transparency hidden
}
ViewProviderDatumPoint::~ViewProviderDatumPoint()

View File

@@ -48,16 +48,16 @@ ViewProviderShapeBinder::ViewProviderShapeBinder()
sPixmap = "PartDesign_ShapeBinder.svg";
//make the viewprovider more datum like
AngularDeflection.StatusBits.set(3, true);
Deviation.StatusBits.set(3, true);
DrawStyle.StatusBits.set(3, true);
Lighting.StatusBits.set(3, true);
LineColor.StatusBits.set(3, true);
LineWidth.StatusBits.set(3, true);
PointColor.StatusBits.set(3, true);
PointSize.StatusBits.set(3, true);
ShapeColor.StatusBits.set(3, true);
Transparency.StatusBits.set(3, true);
AngularDeflection.setStatus(App::Property::Hidden, true);
Deviation.setStatus(App::Property::Hidden, true);
DrawStyle.setStatus(App::Property::Hidden, true);
Lighting.setStatus(App::Property::Hidden, true);
LineColor.setStatus(App::Property::Hidden, true);
LineWidth.setStatus(App::Property::Hidden, true);
PointColor.setStatus(App::Property::Hidden, true);
PointSize.setStatus(App::Property::Hidden, true);
ShapeColor.setStatus(App::Property::Hidden, true);
Transparency.setStatus(App::Property::Hidden, true);
//get the datum coloring sheme
ShapeColor.setValue(App::Color(0.9f, 0.9f, 0.13f, 0.5f));