The DocumentObserverPython class is used to notify registered Python instances whenever something happens to a document, like creation, destruction, adding or removing objects or when property changes. More...
#include <DocumentObserverPython.h>
Public Member Functions | |
DocumentObserverPython (const Py::Object &obj) | |
Constructor. | |
virtual | ~DocumentObserverPython () |
Static Public Member Functions | |
static void | addObserver (const Py::Object &obj) |
static void | removeObserver (const Py::Object &obj) |
The DocumentObserverPython class is used to notify registered Python instances whenever something happens to a document, like creation, destruction, adding or removing objects or when property changes.
Definition at line 42 of file DocumentObserverPython.h.
DocumentObserverPython::DocumentObserverPython | ( | const Py::Object & | obj | ) |
Constructor.
Definition at line 60 of file DocumentObserverPython.cpp.
References draftlibs::fcgeo::bind(), App::GetApplication(), App::Application::signalActiveDocument, App::Application::signalChangedObject, App::Application::signalDeletedObject, App::Application::signalDeleteDocument, App::Application::signalNewDocument, App::Application::signalNewObject, and App::Application::signalRelabelDocument.
Referenced by addObserver().
DocumentObserverPython::~DocumentObserverPython | ( | ) | [virtual] |
Definition at line 79 of file DocumentObserverPython.cpp.
void DocumentObserverPython::addObserver | ( | const Py::Object & | obj | ) | [static] |
Definition at line 40 of file DocumentObserverPython.cpp.
References DocumentObserverPython().
void DocumentObserverPython::removeObserver | ( | const Py::Object & | obj | ) | [static] |
Definition at line 45 of file DocumentObserverPython.cpp.