diff --git a/src/App/OriginFeature.cpp b/src/App/OriginFeature.cpp index d561a10f8..7bfb92b2f 100644 --- a/src/App/OriginFeature.cpp +++ b/src/App/OriginFeature.cpp @@ -41,7 +41,7 @@ OriginFeature::OriginFeature() ADD_PROPERTY_TYPE ( Role, (""), 0, App::Prop_ReadOnly, "Role of the feature in the Origin" ) ; // Set placement to read-only - Placement.StatusBits.set(3, true); + Placement.setStatus(Property::Hidden, true); } OriginFeature::~OriginFeature() diff --git a/src/Gui/ViewProviderOriginFeature.cpp b/src/Gui/ViewProviderOriginFeature.cpp index b87ce919d..783ba6e9d 100644 --- a/src/Gui/ViewProviderOriginFeature.cpp +++ b/src/Gui/ViewProviderOriginFeature.cpp @@ -55,7 +55,7 @@ ViewProviderOriginFeature::ViewProviderOriginFeature () { "Visual size of the feature" ); ShapeColor.setValue ( 50./255, 150./255, 250./255 ); // Set default color for origin (light-blue) - BoundingBox.StatusBits.set (3, true) ; // Hide Boundingbox from the user due to it doesn't make sence + BoundingBox.setStatus(App::Property::Hidden, true); // Hide Boundingbox from the user due to it doesn't make sence // Create node for scaling the origin pScale = new SoScale (); diff --git a/src/Mod/PartDesign/App/Feature.cpp b/src/Mod/PartDesign/App/Feature.cpp index bdbeebe12..8e6e48ad7 100644 --- a/src/Mod/PartDesign/App/Feature.cpp +++ b/src/Mod/PartDesign/App/Feature.cpp @@ -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 diff --git a/src/Mod/PartDesign/App/FeatureDressUp.cpp b/src/Mod/PartDesign/App/FeatureDressUp.cpp index 022d0ca37..5a3e69436 100644 --- a/src/Mod/PartDesign/App/FeatureDressUp.cpp +++ b/src/Mod/PartDesign/App/FeatureDressUp.cpp @@ -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 diff --git a/src/Mod/PartDesign/App/ShapeBinder.cpp b/src/Mod/PartDesign/App/ShapeBinder.cpp index 3669b5144..96a233104 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.cpp +++ b/src/Mod/PartDesign/App/ShapeBinder.cpp @@ -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() diff --git a/src/Mod/PartDesign/Gui/ViewProviderDatumPoint.cpp b/src/Mod/PartDesign/Gui/ViewProviderDatumPoint.cpp index 315bc2b6d..8afdeb566 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderDatumPoint.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderDatumPoint.cpp @@ -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() diff --git a/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.cpp b/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.cpp index d7a5209dc..e690da04f 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.cpp @@ -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));