Cafu Engine
GuiEditor::ObserverT Class Referenceabstract
Inheritance diagram for GuiEditor::ObserverT:

Public Member Functions

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. More...
 
virtual void NotifySubjectChanged_Created (SubjectT *Subject, const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &Windows)
 Notifies the observer that one or more windows have been created. More...
 
virtual void NotifySubjectChanged_Deleted (SubjectT *Subject, const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &Windows)
 Notifies the observer that one or more windows have been deleted. More...
 
virtual void NotifySubjectChanged_GuiPropertyModified (SubjectT *Subject)
 Notifies the observer that a general GUI property has been modified. More...
 
virtual void Notify_Changed (SubjectT *Subject, const cf::TypeSys::VarBaseT &Var)
 Notifies the observer that a variable has changed. More...
 
virtual void NotifySubjectDies (SubjectT *dyingSubject)=0
 This method is called whenever a subject is about the be destroyed (and become unavailable). More...
 
virtual ~ObserverT ()
 The virtual destructor. More...
 
Modification notification method and overloads.

These methods notify the observer that one or more GUI windows have been modified.

The first 3 parameters are common to all of these methods since they are the basic information needed to communicate an object modification.

virtual void NotifySubjectChanged_Modified (SubjectT *Subject, const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &Windows, WindowModDetailE Detail)
 

Protected Member Functions

 ObserverT ()
 The constructor. It is protected so that only derived classes can create instances of this class. More...
 

Constructor & Destructor Documentation

ObserverT::~ObserverT ( )
virtual

The virtual destructor.

ObserverT::ObserverT ( )
protected

The constructor. It is protected so that only derived classes can create instances of this class.

Member Function Documentation

virtual void GuiEditor::ObserverT::Notify_Changed ( SubjectT Subject,
const cf::TypeSys::VarBaseT Var 
)
inlinevirtual

Notifies the observer that a variable has changed.

Parameters
SubjectThe GUI document in which a variable has changed.
VarThe variable whose value has changed.

Reimplemented in GuiEditor::WindowHierarchyT, GuiEditor::WindowInspectorT, and GuiEditor::RenderWindowT.

virtual void GuiEditor::ObserverT::NotifySubjectChanged_Created ( SubjectT Subject,
const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &  Windows 
)
inlinevirtual

Notifies the observer that one or more windows have been created.

Parameters
SubjectThe GUI document in which the windows have been created.
WindowsList of created windows.

Reimplemented in GuiEditor::WindowHierarchyT, and GuiEditor::RenderWindowT.

virtual void GuiEditor::ObserverT::NotifySubjectChanged_Deleted ( SubjectT Subject,
const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &  Windows 
)
inlinevirtual

Notifies the observer that one or more windows have been deleted.

Parameters
SubjectThe GUI document in which the windows have been deleted.
WindowsList of deleted windows.

Reimplemented in GuiEditor::WindowHierarchyT, GuiEditor::WindowInspectorT, and GuiEditor::RenderWindowT.

virtual void GuiEditor::ObserverT::NotifySubjectChanged_GuiPropertyModified ( SubjectT Subject)
inlinevirtual

Notifies the observer that a general GUI property has been modified.

Parameters
SubjectThe GUI document whose GUI property has been modified.

Reimplemented in GuiEditor::GuiInspectorT.

virtual void GuiEditor::ObserverT::NotifySubjectChanged_Modified ( SubjectT Subject,
const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &  Windows,
WindowModDetailE  Detail 
)
inlinevirtual
Parameters
SubjectThe GUI document in which the elements have been modified.
WindowsList of modified windows.
DetailInformation about what has been modified: Can be WMD_GENERIC or WMD_HIERARCHY.

Reimplemented in GuiEditor::WindowHierarchyT, GuiEditor::WindowInspectorT, and GuiEditor::RenderWindowT.

virtual void GuiEditor::ObserverT::NotifySubjectChanged_Selection ( SubjectT Subject,
const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &  OldSelection,
const ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > &  NewSelection 
)
inlinevirtual

This method is called whenever the window selection of a GUI subject changed.

Parameters
SubjectThe GUI document in which the selection has been changed.
OldSelectionArray of the previously selected windows.
NewSelectionArray of the new selected windows.

Reimplemented in GuiEditor::WindowInspectorT, GuiEditor::WindowHierarchyT, and GuiEditor::RenderWindowT.

virtual void GuiEditor::ObserverT::NotifySubjectDies ( SubjectT dyingSubject)
pure virtual

This method is called whenever a subject is about the be destroyed (and become unavailable).

Parameters
dyingSubjectThe subject that is being destroyed.

Implemented in GuiEditor::WindowHierarchyT, GuiEditor::WindowInspectorT, GuiEditor::RenderWindowT, and GuiEditor::GuiInspectorT.


The documentation for this class was generated from the following files: