+ introduce proper enum for property status to replace plain integers

This commit is contained in:
wmayer
2016-01-01 15:36:24 +01:00
parent 342198ea87
commit 50d7793442
15 changed files with 80 additions and 50 deletions

View File

@@ -60,7 +60,7 @@ void DressUp::onChanged(const App::Property* prop)
{
if (prop == &Base) {
// if attached to a sketch then mark it as read-only
this->Placement.StatusBits.set(2, Base.getValue() != 0);
this->Placement.setStatus(App::Property::ReadOnly, Base.getValue() != 0);
}
Feature::onChanged(prop);

View File

@@ -243,7 +243,7 @@ void SketchBased::onChanged(const App::Property* prop)
{
if (prop == &Sketch) {
// if attached to a sketch then mark it as read-only
this->Placement.StatusBits.set(2, Sketch.getValue() != 0);
this->Placement.setStatus(App::Property::ReadOnly, Sketch.getValue() != 0);
}
Feature::onChanged(prop);

View File

@@ -60,7 +60,7 @@ Transformed::Transformed() : rejected(0)
{
ADD_PROPERTY(Originals,(0));
Originals.setSize(0);
Placement.StatusBits.set(2, true);
Placement.setStatus(App::Property::ReadOnly, true);
}
void Transformed::positionBySupport(void)