7 #ifndef CAFU_MODELEDITOR_ELEMENTS_LIST_HPP_INCLUDED
8 #define CAFU_MODELEDITOR_ELEMENTS_LIST_HPP_INCLUDED
11 #include "wx/listctrl.h"
51 void OnFocus (wxFocusEvent& FE);
52 void OnContextMenu (wxContextMenuEvent& CE);
53 void OnKeyDown (wxListEvent& LE);
54 void OnItemActivated (wxListEvent& LE);
55 void OnSelectionChanged(wxListEvent& LE);
56 void OnEndLabelEdit (wxListEvent& LE);
60 const ModelElementTypeT m_TYPE;
61 const int m_NUM_DEFAULT_ITEMS;
64 bool m_IsRecursiveSelfNotify;
80 ID_LISTVIEW=wxID_HIGHEST+1,
87 void OnButton(wxCommandEvent& Event);
88 void OnButtonUpdate(wxUpdateUIEvent& UE);
90 const ModelElementTypeT m_TYPE;
void Notify_Deleted(SubjectT *Subject, ModelElementTypeT Type, const ArrayT< unsigned int > &Indices)
This method is called when new elements were deleted from the model.
Definition: ElementsList.cpp:109
Definition: ChildFrame.hpp:35
Definition: ElementsList.hpp:68
void Notify_SelectionChanged(SubjectT *Subject, ModelElementTypeT Type, const ArrayT< unsigned int > &OldSel, const ArrayT< unsigned int > &NewSel)
This method is called whenever the selection of a model changed.
Definition: ElementsList.cpp:77
void Notify_ChannelChanged(SubjectT *Subject, unsigned int ChannelNr)
Notifies the observer that an animation channel has changed.
Definition: ElementsList.cpp:157
This class represents a child frame.
Definition: ChildFrame.hpp:55
ElementsListT(ChildFrameT *MainFrame, wxWindow *Parent, const wxSize &Size, ModelElementTypeT Type)
The constructor.
Definition: ElementsList.cpp:37
void Notify_AnimChanged(SubjectT *Subject, unsigned int AnimNr)
Notifies the observer that an animation sequence has changed.
Definition: ElementsList.cpp:148
void Notify_Created(SubjectT *Subject, ModelElementTypeT Type, const ArrayT< unsigned int > &Indices)
This method is called when new elements have been created and were added to the model.
Definition: ElementsList.cpp:100
void Notify_SubjectDies(SubjectT *dyingSubject)
This method is called whenever a subject is about the be destroyed (and become unavailable).
Definition: ElementsList.cpp:166
Definition: ObserverPattern.hpp:104
This file provides the classes for the Observer pattern as described in the book by the GoF...
void Notify_MeshChanged(SubjectT *Subject, unsigned int MeshNr)
Notifies the observer that a mesh has changed.
Definition: ElementsList.cpp:118
A control for displaying a list of the elements of the model.
Definition: ElementsList.hpp:22
bool AreDefaultItemsSelected() const
Returns whether one or more "default" elements are selected in the list.
Definition: ElementsList.cpp:67
void Notify_SkinChanged(SubjectT *Subject, unsigned int SkinNr)
Notifies the observer that a skin has changed.
Definition: ElementsList.cpp:127
~ElementsListT()
The destructor.
Definition: ElementsList.cpp:60
Definition: ObserverPattern.hpp:28
void Notify_GuiFixtureChanged(SubjectT *Subject, unsigned int GuiFixtureNr)
Notifies the observer that a GUI fixture has changed.
Definition: ElementsList.cpp:139
Definition: ModelDocument.hpp:30