add virtual method onExtendedDocumentRestored DocumentObjectExtension
This commit is contained in:
@@ -563,6 +563,14 @@ void DocumentObject::connectRelabelSignals()
|
||||
}
|
||||
}
|
||||
|
||||
void DocumentObject::onDocumentRestored()
|
||||
{
|
||||
//call all extensions
|
||||
auto vector = getExtensionsDerivedFromType<App::DocumentObjectExtension>();
|
||||
for(auto ext : vector)
|
||||
ext->onExtendedDocumentRestored();
|
||||
}
|
||||
|
||||
void DocumentObject::onSettingDocument()
|
||||
{
|
||||
//call all extensions
|
||||
|
||||
@@ -265,7 +265,7 @@ protected:
|
||||
/// get called by the container when a property was changed
|
||||
virtual void onChanged(const Property* prop);
|
||||
/// get called after a document has been fully restored
|
||||
virtual void onDocumentRestored() {}
|
||||
virtual void onDocumentRestored();
|
||||
/// get called after setting the document
|
||||
virtual void onSettingDocument();
|
||||
/// get called after a brand new object was created
|
||||
|
||||
@@ -51,12 +51,16 @@ short int DocumentObjectExtension::extensionMustExecute(void) {
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn* DocumentObjectExtension::extensionExecute(void) {
|
||||
|
||||
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
|
||||
void DocumentObjectExtension::onExtendedSettingDocument() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
void DocumentObjectExtension::onExtendedDocumentRestored() {
|
||||
|
||||
}
|
||||
|
||||
void DocumentObjectExtension::onExtendedSetupObject() {
|
||||
|
||||
@@ -55,6 +55,8 @@ public:
|
||||
|
||||
/// get called after setting the document
|
||||
virtual void onExtendedSettingDocument();
|
||||
/// get called after a document has been fully restored
|
||||
virtual void onExtendedDocumentRestored();
|
||||
/// get called after a brand new object was created
|
||||
virtual void onExtendedSetupObject();
|
||||
/// get called when object is going to be removed from the document
|
||||
|
||||
Reference in New Issue
Block a user