Add signals for recomputed objects

This commit is contained in:
Stefan Tröger
2017-03-08 17:20:44 +01:00
committed by wmayer
parent 64e9c4ea5a
commit 2a15d8fc3a
8 changed files with 88 additions and 0 deletions

View File

@@ -228,6 +228,10 @@ void DocumentObserver::attachDocument(Document* doc)
(&DocumentObserver::slotDeletedObject, this, _1));
this->connectDocumentChangedObject = _document->signalChangedObject.connect(boost::bind
(&DocumentObserver::slotChangedObject, this, _1, _2));
this->connectDocumentRecomputedObject = _document->signalRecomputedObject.connect(boost::bind
(&DocumentObserver::slotRecomputedObject, this, _1));
this->connectDocumentRecomputed = _document->signalRecomputed.connect(boost::bind
(&DocumentObserver::slotRecomputedDocument, this, _1));
}
}
@@ -238,6 +242,8 @@ void DocumentObserver::detachDocument()
this->connectDocumentCreatedObject.disconnect();
this->connectDocumentDeletedObject.disconnect();
this->connectDocumentChangedObject.disconnect();
this->connectDocumentRecomputedObject.disconnect();
this->connectDocumentRecomputed.disconnect();
}
}
@@ -261,6 +267,15 @@ void DocumentObserver::slotChangedObject(const App::DocumentObject& /*Obj*/, con
{
}
void DocumentObserver::slotRecomputedObject(const DocumentObject& /*Obj*/)
{
}
void DocumentObserver::slotRecomputedDocument(const Document& /*doc*/)
{
}
// -----------------------------------------------------------------------------
DocumentObjectObserver::DocumentObjectObserver()