Expose document property changes to python document observer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user