Emergency 20 Dokumentation  4.2.0
GenericDebugGui.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
14 
15 
16 //[-------------------------------------------------------]
17 //[ Forward declarations ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21  class GenericDebugGuiDocument;
22 }
23 namespace Rocket
24 {
25  namespace Core
26  {
27  class Event;
28  }
29 }
30 
31 
32 //[-------------------------------------------------------]
33 //[ Namespace ]
34 //[-------------------------------------------------------]
35 namespace em5
36 {
37 
38 
39  //[-------------------------------------------------------]
40  //[ Classes ]
41  //[-------------------------------------------------------]
47  {
48 
49 
50  //[-------------------------------------------------------]
51  //[ Friends ]
52  //[-------------------------------------------------------]
54 
55 
56  //[-------------------------------------------------------]
57  //[ Public methods ]
58  //[-------------------------------------------------------]
59  public:
65 
70  virtual ~GenericDebugGui();
71 
79  void loadDocument(const std::string& guiDocumentName);
80 
85  void reloadDocument();
86 
87 
88  //[-------------------------------------------------------]
89  //[ Public virtual qsf::InputListener methods ]
90  //[-------------------------------------------------------]
91  public:
92  virtual void eventReceived(const qsf::InputEvent& inputEvent, Response& response) override;
93 
94 
95  //[-------------------------------------------------------]
96  //[ Private methods ]
97  //[-------------------------------------------------------]
98  private:
99  bool loadGenericUiWindow(const std::string& filename);
100  void processRocketEvent(const std::string& eventKey, Rocket::Core::Event& event, GenericDebugGuiDocument& sender);
101 
102 
103  //[-------------------------------------------------------]
104  //[ Private data ]
105  //[-------------------------------------------------------]
106  private:
107  std::string mDocumentFilename;
108  GenericDebugGuiDocument* mDebugGuiDocument;
109 
110 
111  };
112 
113 
114 //[-------------------------------------------------------]
115 //[ Namespace ]
116 //[-------------------------------------------------------]
117 } // em5
Definition: ActionPriority.h:13
Input listener class.
Definition: InputListener.h:43
Input event base class.
Definition: InputEvent.h:40
Definition: OverlayComponent.h:29
friend class GenericDebugGuiDocument
Definition: GenericDebugGui.h:53
void loadDocument(const std::string &guiDocumentName)
Load the given libRocket document.
GenericDebugGui()
Default constructor.
EMERGENCY 5 generic GUI instance for user interface development.
Definition: GenericDebugGui.h:46
virtual ~GenericDebugGui()
Destructor.
virtual void eventReceived(const qsf::InputEvent &inputEvent, Response &response) override
void reloadDocument()
Reload the previously defined libRocket document.
Definition: InputListener.h:51