Cafu Engine
DialogInspector.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_DIALOG_INSPECTOR_HPP_INCLUDED
8 #define CAFU_DIALOG_INSPECTOR_HPP_INCLUDED
9 
10 #include "ObserverPattern.hpp"
11 #include "Templates/Array.hpp"
12 #include "wx/panel.h"
13 
14 
15 namespace MapEditor { class EntityInspectorDialogT; }
17 class MapDocumentT;
18 class MapElementT;
19 class wxNotebook;
20 
21 
22 class InspectorDialogT : public wxPanel, public ObserverT
23 {
24  public:
25 
26  InspectorDialogT(wxWindow* Parent, MapDocumentT* MapDoc);
28 
29  // ObserverT implementation.
30  void NotifySubjectChanged_Selection(SubjectT* Subject, const ArrayT<MapElementT*>& OldSelection, const ArrayT<MapElementT*>& NewSelection) override;
31  void NotifySubjectDies(SubjectT* dyingSubject) override;
32 
33 
34  private:
35 
36  MapDocumentT* m_MapDoc;
37  wxNotebook* Notebook;
38  MapEditor::EntityInspectorDialogT* m_EntityInspectorDialog;
39  InspDlgPrimitivePropsT* PrimitiveProps;
40 };
41 
42 #endif
void NotifySubjectDies(SubjectT *dyingSubject) override
This method is called whenever a subject is about the be destroyed (and become unavailable).
Definition: DialogInspector.cpp:85
This class represents a CaWE "map" document.
Definition: MapDocument.hpp:45
Definition: DialogInspector.hpp:22
void NotifySubjectChanged_Selection(SubjectT *Subject, const ArrayT< MapElementT * > &OldSelection, const ArrayT< MapElementT * > &NewSelection) override
Notifies the observer that the selection in the current subject has been changed. ...
Definition: DialogInspector.cpp:49
Definition: ObserverPattern.hpp:64
Definition: DialogEntityInspector.hpp:25
Definition: DialogInsp-PrimitiveProps.hpp:21
Definition: ObserverPattern.hpp:158
This file provides the classes for the Observer pattern as described in the book by the GoF...
This is the base class for all elements ("objects") that can exist in a map.
Definition: MapElement.hpp:57