Emergency 20 Dokumentation  4.2.0
IngameOnlineHighscoreWindow.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 MainEvent;
22 }
23 namespace Rocket
24 {
25  namespace Core
26  {
27  class ElementText;
28  }
29 }
30 
31 
32 //[-------------------------------------------------------]
33 //[ Namespace ]
34 //[-------------------------------------------------------]
35 namespace em5
36 {
37 
38  // TODO(co) Code style violations, beside this, you might want to keep the global namespace clean
39  enum subtitles
40  {
46  };
47 
48 
49  //[-------------------------------------------------------]
50  //[ Classes ]
51  //[-------------------------------------------------------]
57  {
58 
59 
60  //[-------------------------------------------------------]
61  //[ Public methods ]
62  //[-------------------------------------------------------]
63  public:
64  explicit IngameOnlineHighscoreWindow(qsf::GuiContext& guiContext);
66 
67  void setIsEndScreen(bool isEndSreen);
68  void setMainEvent(MainEvent* mainEvent);
69 
70  void setSubtitle(subtitles tile);
71  void selectUser(uint32 entryId);
72 
80  void showIngameOnlineHighscoreWindow(bool stopApplication = false);
81 
82 
83  //[-------------------------------------------------------]
84  //[ Public virtual qsf::GuiDocument methods ]
85  //[-------------------------------------------------------]
86  public:
87  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
88 
89 
90  //[-------------------------------------------------------]
91  //[ Protected virtual em5::GuiHotReloadSupport methods ]
92  //[-------------------------------------------------------]
93  protected:
94  virtual void onReloadGui() override;
95  virtual bool onDocumentPreShow() override;
96 
97 
98  //[-------------------------------------------------------]
99  //[ Private methods ]
100  //[-------------------------------------------------------]
101  private:
102  void selectUserInDatagrid();
103  void setupGui();
104 
105 
106  //[-------------------------------------------------------]
107  //[ Private data ]
108  //[-------------------------------------------------------]
109  private:
110  bool mIsEndScreen;
111  MainEvent* mMainEvent;
112  uint32 mEntryId;
113  bool mStopApplication;
114 
115  Rocket::Core::ElementText* mPlayerRankText;
116 
117 
118  };
119 
120 
121 //[-------------------------------------------------------]
122 //[ Namespace ]
123 //[-------------------------------------------------------]
124 } // em5
Definition: ActionPriority.h:13
IngameOnlineHighscoreWindow(qsf::GuiContext &guiContext)
EMERGENCY 5 main event base class.
Definition: MainEvent.h:48
virtual bool onDocumentPreShow() override
unsigned int uint32
Definition: PlatformTypes.h:181
void showIngameOnlineHighscoreWindow(bool stopApplication=false)
Use this function to show the online highscore window.
A base class which adds GUI hot reloading support to an GUI document.
Definition: GuiHotReloadSupport.h:34
Definition: IngameOnlineHighscoreWindow.h:42
Definition: OverlayComponent.h:29
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
Definition: IngameOnlineHighscoreWindow.h:43
virtual void onReloadGui() override
Gets called when the GUI should be reloaded.
void setIsEndScreen(bool isEndSreen)
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
subtitles
Definition: IngameOnlineHighscoreWindow.h:39
Definition: IngameOnlineHighscoreWindow.h:44
EMERGENCY 5 in-game options menu. Change audio and graphics settings.
Definition: IngameOnlineHighscoreWindow.h:56
Definition: IngameOnlineHighscoreWindow.h:41
Definition: IngameOnlineHighscoreWindow.h:45
void setMainEvent(MainEvent *mainEvent)
void selectUser(uint32 entryId)
void setSubtitle(subtitles tile)