7 #ifndef CAFU_GUIEDITOR_OBSERVER_PATTERN_HPP_INCLUDED
8 #define CAFU_GUIEDITOR_OBSERVER_PATTERN_HPP_INCLUDED
19 #include "Templates/Array.hpp"
20 #include "Templates/Pointer.hpp"
23 namespace cf {
namespace GuiSys {
class WindowT; } }
24 namespace cf {
namespace TypeSys {
class VarBaseT; } }
112 void UpdateAllObservers_GuiPropertyModified();
SubjectT()
The constructor. It is protected so that only derived classes can create instances of this class...
Definition: ObserverPattern.cpp:24
virtual ~SubjectT()
The virtual destructor.
Definition: ObserverPattern.cpp:117
ObserverT()
The constructor. It is protected so that only derived classes can create instances of this class...
Definition: ObserverPattern.cpp:14
virtual void NotifySubjectChanged_Selection(SubjectT *Subject, const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &OldSelection, const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &NewSelection)
This method is called whenever the window selection of a GUI subject changed.
Definition: ObserverPattern.hpp:46
Definition: ObserverPattern.hpp:38
void UnregisterObserver(ObserverT *Obs)
Unregisters the observer Obs from further notification on updates of this class.
Definition: ObserverPattern.cpp:40
virtual void NotifySubjectChanged_Modified(SubjectT *Subject, const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &Windows, WindowModDetailE Detail)
Definition: ObserverPattern.hpp:72
virtual void NotifySubjectChanged_Created(SubjectT *Subject, const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &Windows)
Notifies the observer that one or more windows have been created.
Definition: ObserverPattern.hpp:51
virtual void NotifySubjectChanged_Deleted(SubjectT *Subject, const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &Windows)
Notifies the observer that one or more windows have been deleted.
Definition: ObserverPattern.hpp:56
virtual void NotifySubjectDies(SubjectT *dyingSubject)=0
This method is called whenever a subject is about the be destroyed (and become unavailable).
virtual void Notify_Changed(SubjectT *Subject, const cf::TypeSys::VarBaseT &Var)
Notifies the observer that a variable has changed.
Definition: ObserverPattern.hpp:78
Definition: ObserverPattern.hpp:158
This is the common base class for the VarT classes.
Definition: Variables.hpp:113
virtual ~ObserverT()
The virtual destructor.
Definition: ObserverPattern.cpp:19
void RegisterObserver(ObserverT *Obs)
Registers the observer Obs for notification on updates of this class.
Definition: ObserverPattern.cpp:29
virtual void NotifySubjectChanged_GuiPropertyModified(SubjectT *Subject)
Notifies the observer that a general GUI property has been modified.
Definition: ObserverPattern.hpp:60
Definition: ObserverPattern.hpp:95
Definition: Renderer.hpp:16