Emergency 20 Dokumentation  4.2.0
DebugEventBox.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 //[ Namespace ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21 
22 
23  //[-------------------------------------------------------]
24  //[ Classes ]
25  //[-------------------------------------------------------]
31  {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Public methods ]
36  //[-------------------------------------------------------]
37  public:
38  explicit DebugEventBox(qsf::GuiContext& guiContext);
39 
40 
41  //[-------------------------------------------------------]
42  //[ Public virtual qsf::GuiDocument methods ]
43  //[-------------------------------------------------------]
44  public:
45  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
46 
47 
48  //[-------------------------------------------------------]
49  //[ Protected virtual em5::GuiHotReloadSupport methods ]
50  //[-------------------------------------------------------]
51  protected:
52  virtual void onReloadGui() override;
53 
54 
55  //[-------------------------------------------------------]
56  //[ Private methods ]
57  //[-------------------------------------------------------]
58  private:
59  void setupUI();
60  void clearEvents();
61  void toggleWorldEvent();
62  void toggleSeasonalEvent(const std::string& eventName, bool show);
63 
64  void setEventPoolOpen(const std::string& eventPoolName, bool open);
65 
66 
67  };
68 
69 
70 //[-------------------------------------------------------]
71 //[ Namespace ]
72 //[-------------------------------------------------------]
73 } // em5
Definition: ActionPriority.h:13
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
virtual void onReloadGui() override
Gets called when the GUI should be reloaded.
A base class which adds GUI hot reloading support to an GUI document.
Definition: GuiHotReloadSupport.h:34
DebugEventBox(qsf::GuiContext &guiContext)
Debug GUI window.
Definition: DebugEventBox.h:30
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
void show()
Show the document.