TDME2
1.9.121
src
tdme
tools
editor
controllers
ProgressBarScreenController.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
#include <
tdme/tdme.h
>
6
#include <
tdme/gui/events/fwd-tdme.h
>
7
#include <
tdme/gui/events/GUIActionListener.h
>
8
#include <
tdme/gui/nodes/fwd-tdme.h
>
9
#include <
tdme/tools/editor/controllers/fwd-tdme.h
>
10
#include <
tdme/tools/editor/controllers/ScreenController.h
>
11
#include <
tdme/utilities/fwd-tdme.h
>
12
13
using
std::string;
14
15
using
tdme::gui::nodes::GUIElementNode
;
16
using
tdme::gui::nodes::GUIScreenNode
;
17
using
tdme::gui::nodes::GUITextNode
;
18
using
tdme::tools::editor::controllers::ScreenController
;
19
using
tdme::utilities::MutableString
;
20
21
/**
22
* Progress bar screen controller
23
* @author Andreas Drewke
24
* @version $Id$
25
*/
26
class
tdme::tools::editor::controllers::ProgressBarScreenController
final
27
:
public
ScreenController
28
{
29
30
private
:
31
GUIScreenNode
*
screenNode
{
nullptr
};
32
GUIElementNode
*
progressBarNode
{
nullptr
};
33
GUIElementNode
*
progressBarParent
{
nullptr
};
34
GUITextNode
*
progressMessageNode
{
nullptr
};
35
36
public
:
37
/**
38
* Public constructor
39
*/
40
ProgressBarScreenController
();
41
42
/**
43
* Destructor
44
*/
45
virtual
~ProgressBarScreenController
();
46
47
GUIScreenNode
*
getScreenNode
()
override
;
48
void
initialize
()
override
;
49
void
dispose
()
override
;
50
51
/**
52
* Shows the pop up
53
* @param showProgressBar show progress bar
54
*/
55
void
show
(
const
string
& message,
bool
showProgressBar =
true
);
56
57
/**
58
* Show progress
59
* @param value value
60
*/
61
void
progress
(
float
value);
62
63
/**
64
* Show progress 2
65
* @param value value
66
*/
67
void
progress2
(
float
value);
68
69
/**
70
* Closes the pop up
71
*/
72
void
close
();
73
74
};
GUIActionListener.h
ScreenController.h
tdme::gui::nodes::GUIElementNode
GUI element node.
Definition:
GUIElementNode.h:38
tdme::gui::nodes::GUIScreenNode
GUI screen node that represents a screen that can be rendered via GUI system.
Definition:
GUIScreenNode.h:57
tdme::gui::nodes::GUITextNode
GUI text node.
Definition:
GUITextNode.h:42
tdme::tools::editor::controllers::ProgressBarScreenController
Progress bar screen controller.
Definition:
ProgressBarScreenController.h:28
tdme::tools::editor::controllers::ProgressBarScreenController::dispose
void dispose() override
Dispose.
Definition:
ProgressBarScreenController.cpp:62
tdme::tools::editor::controllers::ProgressBarScreenController::initialize
void initialize() override
Init.
Definition:
ProgressBarScreenController.cpp:48
tdme::tools::editor::controllers::ProgressBarScreenController::progress
void progress(float value)
Show progress.
Definition:
ProgressBarScreenController.cpp:79
tdme::tools::editor::controllers::ProgressBarScreenController::getScreenNode
GUIScreenNode * getScreenNode() override
Definition:
ProgressBarScreenController.cpp:43
tdme::tools::editor::controllers::ProgressBarScreenController::close
void close()
Closes the pop up.
Definition:
ProgressBarScreenController.cpp:91
tdme::tools::editor::controllers::ProgressBarScreenController::show
void show(const string &message, bool showProgressBar=true)
Shows the pop up.
Definition:
ProgressBarScreenController.cpp:67
tdme::tools::editor::controllers::ProgressBarScreenController::progressMessageNode
GUITextNode * progressMessageNode
Definition:
ProgressBarScreenController.h:34
tdme::tools::editor::controllers::ProgressBarScreenController::progressBarParent
GUIElementNode * progressBarParent
Definition:
ProgressBarScreenController.h:33
tdme::tools::editor::controllers::ProgressBarScreenController::screenNode
GUIScreenNode * screenNode
Definition:
ProgressBarScreenController.h:31
tdme::tools::editor::controllers::ProgressBarScreenController::progress2
void progress2(float value)
Show progress 2.
Definition:
ProgressBarScreenController.cpp:87
tdme::tools::editor::controllers::ProgressBarScreenController::progressBarNode
GUIElementNode * progressBarNode
Definition:
ProgressBarScreenController.h:32
tdme::tools::editor::controllers::ProgressBarScreenController::~ProgressBarScreenController
virtual ~ProgressBarScreenController()
Destructor.
Definition:
ProgressBarScreenController.cpp:40
tdme::tools::editor::controllers::ProgressBarScreenController::ProgressBarScreenController
ProgressBarScreenController()
Public constructor.
Definition:
ProgressBarScreenController.cpp:36
tdme::utilities::MutableString
Mutable string class.
Definition:
MutableString.h:16
fwd-tdme.h
fwd-tdme.h
tdme::tools::editor::controllers::ScreenController
Screen controller, which connects GUI screen definition with code.
Definition:
ScreenController.h:15
tdme.h
fwd-tdme.h
fwd-tdme.h
Generated by
1.9.3