xoreos
0.0.5
src
engines
aurora
kotorjadegui
progressbar.h
Go to the documentation of this file.
1
/* xoreos - A reimplementation of BioWare's Aurora engine
2
*
3
* xoreos is the legal property of its developers, whose names
4
* can be found in the AUTHORS file distributed with this source
5
* distribution.
6
*
7
* xoreos is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
11
*
12
* xoreos is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with xoreos. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
25
#ifndef ENGINES_AURORA_KOTORJADEGUI_PROGRESSBAR_H
26
#define ENGINES_AURORA_KOTORJADEGUI_PROGRESSBAR_H
27
28
#include "
src/graphics/aurora/guiquad.h
"
29
30
#include "
src/engines/aurora/kotorjadegui/kotorjadewidget.h
"
31
32
namespace
Engines
{
33
34
class
WidgetProgressbar
:
public
KotORJadeWidget
{
35
public
:
36
WidgetProgressbar
(
GUI
&gui,
const
Common::UString
&tag);
37
~WidgetProgressbar
();
38
39
void
show
();
40
void
hide
();
41
42
void
load
(
const
Aurora::GFF3Struct
&gff);
43
44
void
setPosition
(
float
x,
float
y,
float
z);
45
47
void
setCurrentValue
(
int
curValue);
49
void
setMaxValue
(
int
maxValue);
50
52
int
getCurrentValue
();
54
int
getMaxValue
();
55
56
private
:
57
void
update
();
58
59
Common::ScopedPtr<Graphics::Aurora::GUIQuad>
_progress
;
60
61
int
_maxValue
;
62
int
_curValue
;
63
64
bool
_horizontal
;
65
};
66
67
}
// End of namespace Engines
68
69
#endif // ENGINES_AURORA_KOTORJADEGUI_PROGRESSBAR_H
Engines::WidgetProgressbar::_progress
Common::ScopedPtr< Graphics::Aurora::GUIQuad > _progress
Definition:
progressbar.h:59
Engines::WidgetProgressbar::setCurrentValue
void setCurrentValue(int curValue)
Set the current progress bar value.
Definition:
progressbar.cpp:100
Common::UString
A class holding an UTF-8 string.
Definition:
ustring.h:48
Engines::WidgetProgressbar::getCurrentValue
int getCurrentValue()
Get the current progress bar value.
Definition:
progressbar.cpp:110
Engines::WidgetProgressbar::setPosition
void setPosition(float x, float y, float z)
Set the widget's position.
Definition:
progressbar.cpp:64
Engines::WidgetProgressbar::update
void update()
Definition:
progressbar.cpp:118
Engines::KotORJadeWidget
Definition:
kotorjadewidget.h:43
Engines::WidgetProgressbar::hide
void hide()
Hide the widget.
Definition:
progressbar.cpp:90
Engines::GUI
A GUI.
Definition:
gui.h:43
Engines::WidgetProgressbar::setMaxValue
void setMaxValue(int maxValue)
Set the max progress bar value.
Definition:
progressbar.cpp:105
Engines::WidgetProgressbar::getMaxValue
int getMaxValue()
Get the max progress bar value.
Definition:
progressbar.cpp:114
Engines::WidgetProgressbar
Definition:
progressbar.h:34
Engines::WidgetProgressbar::WidgetProgressbar
WidgetProgressbar(GUI &gui, const Common::UString &tag)
Definition:
progressbar.cpp:33
Engines
Definition:
console.cpp:69
Common::ScopedPtr< Graphics::Aurora::GUIQuad >
kotorjadewidget.h
Common base for Star Wars: Knights of the Old Republic and Jade Empire widgets.
Engines::WidgetProgressbar::show
void show()
Show the widget.
Definition:
progressbar.cpp:80
Aurora::GFF3Struct
A struct within a GFF3.
Definition:
gff3file.h:164
Engines::WidgetProgressbar::~WidgetProgressbar
~WidgetProgressbar()
Definition:
progressbar.cpp:40
Engines::WidgetProgressbar::_maxValue
int _maxValue
Definition:
progressbar.h:61
Engines::WidgetProgressbar::_curValue
int _curValue
Definition:
progressbar.h:62
Engines::WidgetProgressbar::load
void load(const Aurora::GFF3Struct &gff)
Definition:
progressbar.cpp:43
guiquad.h
A textured quad for a GUI element.
Engines::WidgetProgressbar::_horizontal
bool _horizontal
Definition:
progressbar.h:64
Generated on Sun Nov 18 2018 15:13:39 for xoreos by
1.8.14