TDME2  1.9.200
ProgressBarScreenController.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
14 
15 using std::string;
16 
25 
26 /**
27  * Progress bar screen controller
28  * @author Andreas Drewke
29  */
31  : public ScreenController
32  , public virtual GUITooltipRequestListener
33 {
34 
35 private:
36  PopUps* popUps { nullptr };
37  GUIScreenNode* screenNode { nullptr };
41 
42 public:
43  // forbid class copy
45 
46  /**
47  * Public constructor
48  * @param popUps pop ups
49  */
51 
52  /**
53  * Destructor
54  */
56 
57  // overridden methods
58  GUIScreenNode* getScreenNode() override;
59  void initialize() override;
60  void dispose() override;
61  void onTooltipShowRequest(GUINode* node, int mouseX, int mouseY) override;
62  void onTooltipCloseRequest() override;
63 
64  /**
65  * Shows the pop up
66  * @param showProgressBar show progress bar
67  */
68  void show(const string& message, bool showProgressBar = true);
69 
70  /**
71  * Show progress
72  * @param value value
73  */
74  void progress(float value);
75 
76  /**
77  * Show progress 2
78  * @param value value
79  */
80  void progress2(float value);
81 
82  /**
83  * Closes the pop up
84  */
85  void close();
86 
87 };
GUI node base class.
Definition: GUINode.h:64
GUI screen node that represents a screen that can be rendered via GUI system.
Definition: GUIScreenNode.h:72
void show(const string &message, bool showProgressBar=true)
Shows the pop up.
void onTooltipShowRequest(GUINode *node, int mouseX, int mouseY) override
On tooltip show request.
Pop ups controller accessor class.
Definition: PopUps.h:29
Mutable utf8 aware string class.
Definition: MutableString.h:23
Screen controller, which connects GUI screen definition with code.
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6