+ exposing onBeforeChange to Python

This commit is contained in:
wmayer
2014-12-01 10:58:25 +01:00
parent 813a6df952
commit e05c64d8f2
2 changed files with 38 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ public:
~FeaturePythonImp();
DocumentObjectExecReturn *execute();
void onBeforeChange(const Property* prop);
void onChanged(const Property* prop);
PyObject *getPyObject(void);
@@ -199,6 +200,10 @@ public:
}
protected:
virtual void onBeforeChange(const Property* prop) {
FeatureT::onBeforeChange(prop);
imp->onBeforeChange(prop);
}
virtual void onChanged(const Property* prop) {
imp->onChanged(prop);
FeatureT::onChanged(prop);