+ add convenience method recomputeFeature()
+ make method recompute() protected
This commit is contained in:
@@ -52,18 +52,18 @@ public:
|
||||
App::PropertyString ViewResult;
|
||||
App::PropertyBool Visible;
|
||||
|
||||
/// returns the type name of the ViewProvider
|
||||
virtual const char* getViewProviderName(void) const {
|
||||
return "DrawingGui::ViewProviderDrawingView";
|
||||
}
|
||||
|
||||
protected:
|
||||
/** @name methods overide Feature */
|
||||
//@{
|
||||
/// recalculate the Feature
|
||||
virtual App::DocumentObjectExecReturn *recompute(void);
|
||||
virtual App::DocumentObjectExecReturn *execute(void);
|
||||
//@}
|
||||
|
||||
/// returns the type name of the ViewProvider
|
||||
virtual const char* getViewProviderName(void) const {
|
||||
return "DrawingGui::ViewProviderDrawingView";
|
||||
}
|
||||
};
|
||||
|
||||
typedef App::FeaturePythonT<FeatureView> FeatureViewPython;
|
||||
|
||||
@@ -314,7 +314,7 @@ OrthoViews::~OrthoViews()
|
||||
for (int i = views.size() - 1; i >= 0; i--)
|
||||
delete views[i];
|
||||
|
||||
page->recompute();
|
||||
page->recomputeFeature();
|
||||
}
|
||||
|
||||
void OrthoViews::slotDeletedDocument(const App::Document& Obj)
|
||||
|
||||
Reference in New Issue
Block a user