App: support of method unsetupObject in Python feature classes
This commit is contained in:
@@ -53,6 +53,7 @@ public:
|
||||
bool onBeforeChangeLabel(std::string &newLabel);
|
||||
void onChanged(const Property* prop);
|
||||
void onDocumentRestored();
|
||||
void unsetupObject();
|
||||
std::string getViewProviderName();
|
||||
PyObject *getPyObject();
|
||||
|
||||
@@ -94,6 +95,7 @@ private:
|
||||
FC_PY_ELEMENT(onBeforeChangeLabel)\
|
||||
FC_PY_ELEMENT(onChanged)\
|
||||
FC_PY_ELEMENT(onDocumentRestored)\
|
||||
FC_PY_ELEMENT(unsetupObject)\
|
||||
FC_PY_ELEMENT(getViewProviderName)\
|
||||
FC_PY_ELEMENT(getSubObject)\
|
||||
FC_PY_ELEMENT(getSubObjects)\
|
||||
@@ -341,6 +343,10 @@ protected:
|
||||
imp->onDocumentRestored();
|
||||
FeatureT::onDocumentRestored();
|
||||
}
|
||||
void unsetupObject() override {
|
||||
imp->unsetupObject();
|
||||
FeatureT::unsetupObject();
|
||||
}
|
||||
|
||||
public:
|
||||
FeaturePythonT(const FeaturePythonT&) = delete;
|
||||
|
||||
Reference in New Issue
Block a user