Expose document property changes to python document observer

This commit is contained in:
ickby
2018-10-01 06:47:46 +02:00
committed by wmayer
parent e91de65df0
commit f68e36de41
7 changed files with 108 additions and 0 deletions

View File

@@ -416,6 +416,8 @@ Document* Application::newDocument(const char * Name, const char * UserName)
// connect the signals to the application for the new document
_pActiveDoc->signalBeforeChange.connect(boost::bind(&App::Application::slotBeforeChangeDoc, this, _1, _2));
_pActiveDoc->signalChanged.connect(boost::bind(&App::Application::slotChangedDoc, this, _1, _2));
_pActiveDoc->signalNewObject.connect(boost::bind(&App::Application::slotNewObject, this, _1));
_pActiveDoc->signalDeletedObject.connect(boost::bind(&App::Application::slotDeletedObject, this, _1));
_pActiveDoc->signalBeforeChangeObject.connect(boost::bind(&App::Application::slotBeforeChangeObject, this, _1, _2));
@@ -978,6 +980,16 @@ std::map<std::string, std::string> Application::getExportFilters(void) const
//**************************************************************************
// signaling
void Application::slotBeforeChangeDoc(const App::Document& doc, const Property& prop)
{
this->signalBeforeChangeDoc(doc, prop);
}
void Application::slotChangedDoc(const App::Document& doc, const Property& prop)
{
this->signalChangedDoc(doc, prop);
}
void Application::slotNewObject(const App::DocumentObject&O)
{
this->signalNewObject(O);