make constaints and group not greyed in tree

This commit is contained in:
Stefan Tröger 2013-08-02 18:37:19 +00:00
parent 61430e67e1
commit 46700422fd
8 changed files with 17 additions and 2 deletions

View File

@ -34,6 +34,9 @@ class AssemblyGuiExport ViewProviderConstraintAlignment : public Gui::ViewProvid
public:
ViewProviderConstraintAlignment();
/// checks whether the view provider is visible or not in tree
virtual bool isShow(void) const {return true;};
};

View File

@ -35,6 +35,8 @@ class AssemblyGuiExport ViewProviderConstraintAngle : public Gui::ViewProviderDo
public:
ViewProviderConstraintAngle();
/// checks whether the view provider is visible or not in tree
virtual bool isShow(void) const {return true;};
};
};

View File

@ -35,6 +35,8 @@ class AssemblyGuiExport ViewProviderConstraintCoincidence : public Gui::ViewProv
public:
ViewProviderConstraintCoincidence();
/// checks whether the view provider is visible or not in tree
virtual bool isShow(void) const {return true;};
};
};

View File

@ -35,6 +35,8 @@ class AssemblyGuiExport ViewProviderConstraintDistance : public Gui::ViewProvide
public:
ViewProviderConstraintDistance();
/// checks whether the view provider is visible or not in tree
virtual bool isShow(void) const {return true;};
};
};

View File

@ -35,6 +35,8 @@ class AssemblyGuiExport ViewProviderConstraintFix : public Gui::ViewProviderDocu
public:
ViewProviderConstraintFix();
/// checks whether the view provider is visible or not in tree
virtual bool isShow(void) const {return true;};
};
};

View File

@ -57,7 +57,7 @@ void ViewProviderConstraintGroup::attach(App::DocumentObject *pcFeat)
// putting all together with the switch
// addDisplayMaskMode(getChildRoot(), "Main");
//addDisplayMaskMode(getChildRoot(), "Main");
}
void ViewProviderConstraintGroup::setDisplayMode(const char* ModeName)

View File

@ -46,8 +46,10 @@ public:
virtual std::vector<std::string> getDisplayModes(void) const;
virtual std::vector<App::DocumentObject*> claimChildren(void)const;
virtual std::vector<App::DocumentObject*> claimChildren3D(void)const;
/// checks whether the view provider is visible or not in tree
virtual bool isShow(void) const {return true;};
};

View File

@ -35,6 +35,8 @@ class AssemblyGuiExport ViewProviderConstraintOrientation : public Gui::ViewProv
public:
ViewProviderConstraintOrientation();
/// checks whether the view provider is visible or not in tree
virtual bool isShow(void) const {return true;};
};
};