Emergency 20 Dokumentation  4.2.0
AchievementsWindow.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 AchievementsWindowDataSource;
22 }
23 
24 
25 //[-------------------------------------------------------]
26 //[ Namespace ]
27 //[-------------------------------------------------------]
28 namespace em5
29 {
30 
31 
32  //[-------------------------------------------------------]
33  //[ Classes ]
34  //[-------------------------------------------------------]
40  {
41 
42 
43  //[-------------------------------------------------------]
44  //[ Public methods ]
45  //[-------------------------------------------------------]
46  public:
47  explicit AchievementsWindow(qsf::GuiContext& guiContext);
48 
49 
50  //[-------------------------------------------------------]
51  //[ Public virtual qsf::GuiDocument methods ]
52  //[-------------------------------------------------------]
53  public:
54  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
55 
56 
57  //[-------------------------------------------------------]
58  //[ Protected virtual em5::MainMenuWindowBase methods ]
59  //[-------------------------------------------------------]
60  protected:
61  virtual void onGoingBack() override;
62 
63 
64  //[-------------------------------------------------------]
65  //[ Protected virtual em5::GuiHotReloadSupport methods ]
66  //[-------------------------------------------------------]
67  protected:
68  virtual void onReloadGui() override;
69  virtual bool onDocumentPreShow() override;
70 
71 
72  //[-------------------------------------------------------]
73  //[ Private methods ]
74  //[-------------------------------------------------------]
75  private:
76  void setupUI();
77 
82  void setupAbstract();
83 
88  void setupGeneral();
89 
94  void setupMainEvent();
95 
100  void setupEndless();
101 
106  void setupChallenge();
107 
112  void setupCOOP();
113 
118  void setupAgainst();
119 
124  void deselectButtons();
125 
126 
127  //[-------------------------------------------------------]
128  //[ Private data ]
129  //[-------------------------------------------------------]
130  private:
131  AchievementsWindowDataSource* mAchievementsWindowDataSource; //< Holds the achievement window datasouce; Do not free this pointer
132  uint32 mAchievementCount;
133  uint32 mAchievementUnlocked;
134 
135 
136  };
137 
138 
139 //[-------------------------------------------------------]
140 //[ Namespace ]
141 //[-------------------------------------------------------]
142 } // em5
virtual void onGoingBack() override
Definition: ActionPriority.h:13
unsigned int uint32
Definition: PlatformTypes.h:181
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
virtual void onReloadGui() override
Gets called when the GUI should be reloaded.
Base window for main menu windows.
Definition: MainMenuWindowBase.h:40
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
virtual bool onDocumentPreShow() override
Achievements window data source.
Definition: AchievementsWindowDataSource.h:32
AchievementsWindow(qsf::GuiContext &guiContext)
Achievements window.
Definition: AchievementsWindow.h:39