The DocumentObserver class simplifies the step to write classes that listen to what happens inside a document. More...
#include <DocumentObserver.h>
Public Member Functions | |
void | attachDocument (Document *) |
Attaches to another document, the old document is not longer observed then. More... | |
void | detachDocument () |
Detaches from the current document, the document is not longer observed then. More... | |
DocumentObserver () | |
Constructor. More... | |
DocumentObserver (Document *) | |
virtual | ~DocumentObserver () |
The DocumentObserver class simplifies the step to write classes that listen to what happens inside a document.
This is very useful for classes that needs to be notified when an observed object has changed.
DocumentObserver::DocumentObserver | ( | ) |
Constructor.
DocumentObserver::DocumentObserver | ( | Document * | doc | ) |
References attachDocument().
|
virtual |
void DocumentObserver::attachDocument | ( | Document * | doc | ) |
Attaches to another document, the old document is not longer observed then.
References draftgeoutils.faces::bind(), and detachDocument().
Referenced by DocumentObserver(), SurfaceGui::FillingPanel::setEditedObject(), SurfaceGui::FillingEdgePanel::setEditedObject(), SurfaceGui::FillingVertexPanel::setEditedObject(), SurfaceGui::GeomFillSurface::setEditedObject(), SurfaceGui::SectionsPanel::setEditedObject(), PartDesignGui::TaskBoxPrimitives::TaskBoxPrimitives(), PartDesignGui::TaskFeatureParameters::TaskFeatureParameters(), and PartDesignGui::TaskFeaturePick::TaskFeaturePick().
void DocumentObserver::detachDocument | ( | ) |
Detaches from the current document, the document is not longer observed then.
Referenced by attachDocument().