handle clip views
This commit is contained in:
@@ -122,6 +122,14 @@ bool ViewProviderViewClip::isShow(void) const
|
||||
return Visibility.getValue();
|
||||
}
|
||||
|
||||
bool ViewProviderViewClip::canDelete(App::DocumentObject *obj) const
|
||||
{
|
||||
// deletions of Clip objects don't destroy anything
|
||||
// thus we can pass this action
|
||||
Q_UNUSED(obj)
|
||||
return true;
|
||||
}
|
||||
|
||||
TechDraw::DrawViewClip* ViewProviderViewClip::getViewObject() const
|
||||
{
|
||||
return dynamic_cast<TechDraw::DrawViewClip*>(pcObject);
|
||||
|
||||
@@ -41,7 +41,6 @@ public:
|
||||
/// destructor
|
||||
virtual ~ViewProviderViewClip();
|
||||
|
||||
|
||||
virtual void attach(App::DocumentObject *);
|
||||
virtual void setDisplayMode(const char* ModeName);
|
||||
virtual bool useNewSelectionModel(void) const {return false;}
|
||||
@@ -59,8 +58,9 @@ public:
|
||||
virtual bool isShow(void) const;
|
||||
std::vector<App::DocumentObject*> claimChildren(void) const;
|
||||
|
||||
virtual bool canDelete(App::DocumentObject* obj) const;
|
||||
|
||||
};
|
||||
} // namespace TechDrawGui
|
||||
|
||||
|
||||
#endif // DRAWINGGUI_VIEWPROVIDERCLIP_H
|
||||
|
||||
Reference in New Issue
Block a user