Cafu Engine
MaterialsToolbarT Class Reference

The Materials toolbar (actually, a dialog). More...

#include "ToolbarMaterials.hpp"

Inheritance diagram for MaterialsToolbarT:

Public Member Functions

 MaterialsToolbarT (wxWindow *Parent, MapDocumentT *MapDoc)
 The constructor. More...
 
 ~MaterialsToolbarT ()
 The destructor. More...
 
void NotifySubjectDies (SubjectT *Subject)
 This method is called whenever a subject is about the be destroyed (and become unavailable). More...
 
bool Show (bool show=true)
 Overridden wxDialog::Show() function, because we also want to update the toolbar on Show(true). More...
 
ArrayT< EditorMaterialI * > GetMRUMaterials () const
 Returns the current list of MRU materials (the first element is the selected material). More...
 
- Public Member Functions inherited from ObserverT
virtual void NotifySubjectChanged (SubjectT *Subject, MapDocOtherDetailT OtherDetail)
 Notifies the observer that some other detail than those specifically addressed below has changed. More...
 
virtual void NotifySubjectChanged_Selection (SubjectT *Subject, const ArrayT< MapElementT * > &OldSelection, const ArrayT< MapElementT * > &NewSelection)
 Notifies the observer that the selection in the current subject has been changed. More...
 
virtual void NotifySubjectChanged_Groups (SubjectT *Subject)
 Notifies the observer that the groups in the current subject have been changed (new group added, group deleted, visibility changed, anything). More...
 
virtual void NotifySubjectChanged_Created (SubjectT *Subject, const ArrayT< IntrusivePtrT< cf::GameSys::EntityT > > &Entities)
 Notifies the observer that one or more entities have been created. More...
 
virtual void NotifySubjectChanged_Created (SubjectT *Subject, const ArrayT< MapPrimitiveT * > &Primitives)
 Notifies the observer that one or more map primitives have been created. More...
 
virtual void NotifySubjectChanged_Deleted (SubjectT *Subject, const ArrayT< IntrusivePtrT< cf::GameSys::EntityT > > &Entities)
 Notifies the observer that one or more entities have been deleted. More...
 
virtual void NotifySubjectChanged_Deleted (SubjectT *Subject, const ArrayT< MapPrimitiveT * > &Primitives)
 Notifies the observer that one or more map primitives have been deleted. More...
 
virtual ~ObserverT ()
 The virtual destructor. More...
 
virtual void NotifySubjectChanged_Modified (SubjectT *Subject, const ArrayT< MapElementT * > &MapElements, MapElemModDetailE Detail)
 
virtual void NotifySubjectChanged_Modified (SubjectT *Subject, const ArrayT< MapElementT * > &MapElements, MapElemModDetailE Detail, const ArrayT< BoundingBox3fT > &OldBounds)
 
virtual void Notify_EntChanged (SubjectT *Subject, const ArrayT< IntrusivePtrT< MapEditor::CompMapEntityT > > &Entities, EntityModDetailE Detail)
 
virtual void Notify_VarChanged (SubjectT *Subject, const cf::TypeSys::VarBaseT &Var)
 Notifies the observer that a variable has changed. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ObserverT
 ObserverT ()
 The constructor. It is protected so that only derived classes can create instances of this class. More...
 

Detailed Description

The Materials toolbar (actually, a dialog).

Constructor & Destructor Documentation

MaterialsToolbarT::MaterialsToolbarT ( wxWindow *  Parent,
MapDocumentT MapDoc 
)

The constructor.

MaterialsToolbarT::~MaterialsToolbarT ( )

The destructor.

Member Function Documentation

ArrayT< EditorMaterialI * > MaterialsToolbarT::GetMRUMaterials ( ) const

Returns the current list of MRU materials (the first element is the selected material).

void MaterialsToolbarT::NotifySubjectDies ( SubjectT dyingSubject)
virtual

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

Parameters
dyingSubjectThe subject that is being destroyed.

Implements ObserverT.

bool MaterialsToolbarT::Show ( bool  show = true)

Overridden wxDialog::Show() function, because we also want to update the toolbar on Show(true).


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