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... | |
virtual | ~DocumentObserver () |
Detailed Description
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.
Constructor & Destructor Documentation
◆ DocumentObserver()
DocumentObserver::DocumentObserver | ( | ) |
Constructor.
◆ ~DocumentObserver()
|
virtual |
Member Function Documentation
◆ attachDocument()
void DocumentObserver::attachDocument | ( | Document * | doc | ) |
Attaches to another document, the old document is not longer observed then.
References detachDocument().
Referenced by SurfaceGui::FillingVertexPanel::setEditedObject(), SurfaceGui::FillingUnboundPanel::setEditedObject(), SurfaceGui::GeomFillSurface::setEditedObject(), SurfaceGui::FillingPanel::setEditedObject(), PartDesignGui::TaskBoxPrimitives::TaskBoxPrimitives(), PartDesignGui::TaskFeatureParameters::TaskFeatureParameters(), and PartDesignGui::TaskFeaturePick::TaskFeaturePick().
◆ detachDocument()
void DocumentObserver::detachDocument | ( | ) |
Detaches from the current document, the document is not longer observed then.
Referenced by attachDocument().
The documentation for this class was generated from the following files:
- src/Gui/DocumentObserver.h
- src/Gui/DocumentObserver.cpp