5 #include <Gui/PickedPoint.h> 6 #include <Gui/Selection.h> 11 class DocumentObserver;
14 public App::Document::ObserverType,
15 public Gui::Selection::ObserverType,
16 public Gui::PickedPoint::ObserverType
25 void onChange(Gui::Selection::SubjectType* rCaller, Gui::Selection::MessageType Reason);
26 void onChange(App::Document::SubjectType* rCaller, App::Document::MessageType Reason);
27 void onChange(Gui::PickedPoint::SubjectType* rCaller, Gui::PickedPoint::MessageType Reason);
28 virtual const char*
name(
void)
override {
return "DocumentObserverImpl"; }
33 Gui::Selection* _theSelection =
nullptr;
34 Gui::PickedPoint* _thePickedPoint =
nullptr;
35 std::shared_ptr<DocumentObserver> _parent;
Definition: CoreApplication.h:94
Observer< Core::AppChanges > ObserverType
Definition: Observer.h:111
Definition: CoreApplication.h:38
Definition: CoreDocument.h:210
Document holding all persistent DocObjects.
Definition: Document.h:60
Definition: ActiveScript.h:7
virtual const char * name(void) override
Definition: DocumentObserverImpl.h:28
void onChange(Core::CoreApplication::SubjectType *rCaller, Core::CoreApplication::MessageType Reason)
Definition: DocumentObserverImpl.h:13
DocumentObserver observes the Document. This class has to be overridden to get messages from the obse...
Definition: DocumentObserver.h:40