Emergency 20 Dokumentation  4.2.0
MainMenu.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 #include <qsf/job/JobProxy.h>
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace Rocket
22 {
23  namespace Core
24  {
25  class Event;
26  }
27 }
28 namespace qsf
29 {
30  class JobArguments;
31 }
32 
33 
34 //[-------------------------------------------------------]
35 //[ Namespace ]
36 //[-------------------------------------------------------]
37 namespace em5
38 {
39 
40 
41  //[-------------------------------------------------------]
42  //[ Classes ]
43  //[-------------------------------------------------------]
49  {
50 
51 
52  //[-------------------------------------------------------]
53  //[ Public methods ]
54  //[-------------------------------------------------------]
55  public:
60  explicit MainMenu(qsf::GuiContext& guiContext);
61 
66  virtual ~MainMenu();
67 
68 
69  //[-------------------------------------------------------]
70  //[ Public virtual qsf::GuiDocument methods ]
71  //[-------------------------------------------------------]
72  public:
73  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
74 
75 
76  //[-------------------------------------------------------]
77  //[ Protected virtual em5::GuiHotReloadSupport methods ]
78  //[-------------------------------------------------------]
79  protected:
80  virtual bool onDocumentPreShow() override;
81 
82 
83  //[-------------------------------------------------------]
84  //[ Private methods ]
85  //[-------------------------------------------------------]
86  private:
87  void onInfoBoxButtonBlink(const qsf::JobArguments& jobArgs);
88 
89 
90  //[-------------------------------------------------------]
91  //[ Private data ]
92  //[-------------------------------------------------------]
93  private:
94  qsf::JobProxy mInfoBoxButtonBlinkJobProxy;
95 
96 
97  };
98 
99 
100 //[-------------------------------------------------------]
101 //[ Namespace ]
102 //[-------------------------------------------------------]
103 } // em5
Definition: ActionPriority.h:13
virtual bool onDocumentPreShow() override
Job proxy class.
Definition: JobProxy.h:51
Definition: OverlayComponent.h:29
Job arguments class: holds data to be passed to the called job method by the job manager.
Definition: JobArguments.h:40
MainMenu(qsf::GuiContext &guiContext)
Constructor.
Definition: PickupPersonByParamedicAction.h:21
Base window for main menu windows.
Definition: MainMenuWindowBase.h:40
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
EMERGENCY 5 main menu GUI.
Definition: MainMenu.h:48
virtual ~MainMenu()
Destructor.