Emergency 20 Dokumentation  4.2.0
DebugEventDetailBox.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 //[-------------------------------------------------------]
13 #include <qsf/gui/GuiDocument.h>
15 
16 
17 //[-------------------------------------------------------]
18 //[ Forward declarations ]
19 //[-------------------------------------------------------]
20 namespace Rocket
21 {
22  namespace Core
23  {
24  class ElementText;
25  }
26 }
27 
28 
29 //[-------------------------------------------------------]
30 //[ Namespace ]
31 //[-------------------------------------------------------]
32 namespace em5
33 {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Classes ]
38  //[-------------------------------------------------------]
44  {
45 
46 
47  //[-------------------------------------------------------]
48  //[ Public methods ]
49  //[-------------------------------------------------------]
50  public:
51  explicit DebugEventDetailBox(qsf::GuiContext& guiContext);
52  virtual ~DebugEventDetailBox();
53 
54  // Updates the displayed text
55  void refreshGui();
56 
57 
58  //[-------------------------------------------------------]
59  //[ Public virtual qsf::GuiDocument methods ]
60  //[-------------------------------------------------------]
61  public:
62  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
63 
64 
65  //[-------------------------------------------------------]
66  //[ Private virtual qsf::GuiDocument methods ]
67  //[-------------------------------------------------------]
68  private:
69  virtual bool onPreShow() override;
70  virtual void onPreHide() override;
71 
72 
73  //[-------------------------------------------------------]
74  //[ Private methods ]
75  //[-------------------------------------------------------]
76  private:
77  std::string getEventsString();
78 
79 
80  //[-------------------------------------------------------]
81  //[ Private data ]
82  //[-------------------------------------------------------]
83  private:
84  Rocket::Core::ElementText* mMessageText;
85 
86  qsf::MessageProxy mEventTriggeredMessageProxy;
87  qsf::MessageProxy mEventSucceededMessageProxy;
88  qsf::MessageProxy mEventFailedMessageProxy;
89 
90 
91  };
92 
93 
94 //[-------------------------------------------------------]
95 //[ Namespace ]
96 //[-------------------------------------------------------]
97 } // em5
Definition: ActionPriority.h:13
EMERGENCY 5 in-game debug window for event details.
Definition: DebugEventDetailBox.h:43
Graphical User Interface (GUI) document base class.
Definition: GuiDocument.h:51
Definition: OverlayComponent.h:29
Message listener proxy class.
Definition: MessageProxy.h:47
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
DebugEventDetailBox(qsf::GuiContext &guiContext)
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override