Emergency 20 Dokumentation  4.2.0
InputWindow.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 InputWindow(qsf::GuiContext& guiContext);
39  void setBackButton(bool main);
40  void setInTutorial(bool tutorial);
41 
42 
43  //[-------------------------------------------------------]
44  //[ Public virtual qsf::GuiDocument methods ]
45  //[-------------------------------------------------------]
46  public:
47  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
48 
49 
50  //[-------------------------------------------------------]
51  //[ Protected virtual em5::MainMenuWindowBase methods ]
52  //[-------------------------------------------------------]
53  protected:
54  virtual void onGoingBack() override;
55 
56 
57  //[-------------------------------------------------------]
58  //[ Protected virtual em5::GuiHotReloadSupport methods ]
59  //[-------------------------------------------------------]
60  protected:
61  virtual void onReloadGui() override;
62 
63 
64  //[-------------------------------------------------------]
65  //[ Private methods ]
66  //[-------------------------------------------------------]
67  private:
68  void setupGui();
69 
70 
71  //[-------------------------------------------------------]
72  //[ Private data ]
73  //[-------------------------------------------------------]
74  private:
75  bool mInMainMenu;
76 
77 
78  };
79 
80 
81 //[-------------------------------------------------------]
82 //[ Namespace ]
83 //[-------------------------------------------------------]
84 } // em5
Definition: ActionPriority.h:13
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
void setInTutorial(bool tutorial)
void setBackButton(bool main)
InputWindow(qsf::GuiContext &guiContext)
Base window for main menu windows.
Definition: MainMenuWindowBase.h:40
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
virtual void onGoingBack() override
Input window.
Definition: InputWindow.h:30
virtual void onReloadGui() override
Gets called when the GUI should be reloaded.