Emergency 20 Dokumentation  4.2.0
PatchUpdateProgressDialog.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 //[-------------------------------------------------------]
13 #include <qsf/gui/GuiDocument.h>
14 #include <qsf/job/JobProxy.h>
15 
16 
17 //[-------------------------------------------------------]
18 //[ Forward declarations ]
19 //[-------------------------------------------------------]
20 namespace Rocket
21 {
22  namespace Core
23  {
24  class Event;
25  }
26 }
27 namespace em5
28 {
29  class ProgressBar;
30 }
31 
32 
33 //[-------------------------------------------------------]
34 //[ Namespace ]
35 //[-------------------------------------------------------]
36 namespace em5
37 {
38 
39 
40  //[-------------------------------------------------------]
41  //[ Classes ]
42  //[-------------------------------------------------------]
48  {
49 
50 
51  //[-------------------------------------------------------]
52  //[ Public definitions ]
53  //[-------------------------------------------------------]
54  public:
56  {
60  };
61 
62 
63  //[-------------------------------------------------------]
64  //[ Public methods ]
65  //[-------------------------------------------------------]
66  public:
71  explicit PatchUpdateProgressDialog(qsf::GuiContext& guiContext);
72 
78 
86  void setPercentage(float percentage);
87 
95  void setCompletePercentage(float percentage);
96 
97 
98  //[-------------------------------------------------------]
99  //[ Public virtual qsf::GuiDocument methods ]
100  //[-------------------------------------------------------]
101  public:
102  virtual bool onPreShow() override;
103  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
104 
105 
106  //[-------------------------------------------------------]
107  //[ Private methods ]
108  //[-------------------------------------------------------]
109  private:
110  void onUpdateAnimation(const qsf::JobArguments& jobArguments);
111 
112 
113  //[-------------------------------------------------------]
114  //[ Private data ]
115  //[-------------------------------------------------------]
116  private:
117  qsf::JobProxy mAnimationJobProxy;
118  AnimationState mState;
119 
120 
121  };
122 
123 
124 //[-------------------------------------------------------]
125 //[ Namespace ]
126 //[-------------------------------------------------------]
127 } // em5
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
Definition: ActionPriority.h:13
virtual ~PatchUpdateProgressDialog()
Destructor.
Job proxy class.
Definition: JobProxy.h:51
Definition: PatchUpdateProgressDialog.h:59
Graphical User Interface (GUI) document base class.
Definition: GuiDocument.h:51
Definition: OverlayComponent.h:29
void setCompletePercentage(float percentage)
Set the complete progressbar progressbar percentage.
Job arguments class: holds data to be passed to the called job method by the job manager.
Definition: JobArguments.h:40
virtual bool onPreShow() override
Called before show.
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
Patch update pregress dialog GUI window.
Definition: PatchUpdateProgressDialog.h:47
PatchUpdateProgressDialog(qsf::GuiContext &guiContext)
Constructor.
AnimationState
Definition: IngameMainEventSuccessWindow.h:26
void setPercentage(float percentage)
Set the progressbar percentage.
Definition: PatchUpdateProgressDialog.h:58
AnimationState
Definition: PatchUpdateProgressDialog.h:55
Definition: PatchUpdateProgressDialog.h:57