xoreos
0.0.5
src
engines
jade
gui
main
options.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_JADE_GUI_MAIN_OPTIONS_H
26
#define ENGINES_JADE_GUI_MAIN_OPTIONS_H
27
28
#include "
src/common/ustring.h
"
29
30
#include "
src/engines/jade/gui/gui.h
"
31
32
namespace
Engines
{
33
34
class
WidgetButton;
35
class
WidgetProtoItem;
36
37
namespace
Jade {
38
39
class
Module;
40
41
class
OptionsMenu
:
public
Engines::Jade::GUI
{
42
public
:
43
OptionsMenu
(::
Engines::Console
*console = 0);
44
45
private
:
46
void
createAudioOptions
();
47
void
createVideoOptions
();
48
void
createDifficultyOptions
();
49
void
createGameInfoOptions
();
50
void
createControlOptions
();
51
52
Common::ScopedPtr<GUI>
_audioOptions
;
53
Common::ScopedPtr<GUI>
_videoOptions
;
54
Common::ScopedPtr<GUI>
_difficultyOptions
;
55
Common::ScopedPtr<GUI>
_gameInfoOptions
;
56
Common::ScopedPtr<GUI>
_controlOptions
;
57
58
Engines::WidgetProtoItem
*
_audioOptionsButton
;
59
Engines::WidgetProtoItem
*
_videoOptionsButton
;
60
Engines::WidgetProtoItem
*
_difficultyOptionsButton
;
61
Engines::WidgetProtoItem
*
_gameInfoOptionsButton
;
62
Engines::WidgetProtoItem
*
_controlOptionsButton
;
63
Engines::WidgetProtoItem
*
_creditsButton
;
64
65
Engines::WidgetButton
*
_backButton
;
66
Engines::KotORJadeWidget
*
_currentButton
;
67
68
Engines::WidgetLabel
*
_optionsDescription
;
69
70
Common::UString
_audioOptionsDescription
;
71
Common::UString
_videoOptionsDescription
;
72
Common::UString
_difficultyOptionsDescription
;
73
Common::UString
_gameInfoOptionsDescription
;
74
Common::UString
_controlOptionsDescription
;
75
Common::UString
_creditsDescription
;
76
Common::UString
_backButtonDescription
;
77
78
protected
:
79
void
callbackActive
(
Widget
&widget);
80
void
callbackRun
();
81
};
82
83
}
// End of namespace Jade
84
85
}
// End of namespace Engines
86
87
#endif // ENGINES_JADE_GUI_MAIN_OPTIONS_H
Engines::Jade::OptionsMenu::_optionsDescription
Engines::WidgetLabel * _optionsDescription
Definition:
options.h:68
Engines::Jade::OptionsMenu::OptionsMenu
OptionsMenu(::Engines::Console *console=0)
Engines::Jade::OptionsMenu::_gameInfoOptions
Common::ScopedPtr< GUI > _gameInfoOptions
Definition:
options.h:55
Common::UString
A class holding an UTF-8 string.
Definition:
ustring.h:48
Engines::Jade::OptionsMenu::createAudioOptions
void createAudioOptions()
Definition:
options.cpp:89
Engines::Jade::OptionsMenu::callbackRun
void callbackRun()
Callback that's triggered periodically in the run() method.
Definition:
options.cpp:109
Engines::Jade::OptionsMenu::_videoOptions
Common::ScopedPtr< GUI > _videoOptions
Definition:
options.h:53
Engines::WidgetLabel
Definition:
label.h:32
Engines::KotORJadeWidget
Definition:
kotorjadewidget.h:43
Engines::Jade::OptionsMenu::_controlOptions
Common::ScopedPtr< GUI > _controlOptions
Definition:
options.h:56
Engines::Jade::OptionsMenu::_currentButton
Engines::KotORJadeWidget * _currentButton
Definition:
options.h:66
Engines::Jade::OptionsMenu::_audioOptions
Common::ScopedPtr< GUI > _audioOptions
Definition:
options.h:52
Engines::Jade::OptionsMenu::callbackActive
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
Definition:
options.cpp:135
Engines::WidgetProtoItem
Definition:
protoitem.h:33
Engines::Jade::OptionsMenu::_audioOptionsButton
Engines::WidgetProtoItem * _audioOptionsButton
Definition:
options.h:58
Engines::Jade::GUI
A Jade Empire GUI.
Definition:
gui.h:57
Engines::Jade::OptionsMenu::_difficultyOptionsDescription
Common::UString _difficultyOptionsDescription
Definition:
options.h:72
Engines::Jade::OptionsMenu::_audioOptionsDescription
Common::UString _audioOptionsDescription
Definition:
options.h:70
Engines::Jade::OptionsMenu::createControlOptions
void createControlOptions()
Definition:
options.cpp:105
Engines::WidgetButton
Definition:
button.h:34
Engines
Definition:
console.cpp:69
Common::ScopedPtr
A scoped plain pointer, allowing pointer-y access and normal deletion.
Definition:
scopedptr.h:120
Engines::Jade::OptionsMenu::_creditsButton
Engines::WidgetProtoItem * _creditsButton
Definition:
options.h:63
Engines::Jade::OptionsMenu::_controlOptionsButton
Engines::WidgetProtoItem * _controlOptionsButton
Definition:
options.h:62
Engines::Jade::OptionsMenu::_backButton
Engines::WidgetButton * _backButton
Definition:
options.h:65
ustring.h
Unicode string handling.
Engines::Jade::OptionsMenu::createVideoOptions
void createVideoOptions()
Definition:
options.cpp:93
gui.h
A Jade Empire GUI.
Engines::Jade::OptionsMenu::_videoOptionsButton
Engines::WidgetProtoItem * _videoOptionsButton
Definition:
options.h:59
Engines::Jade::OptionsMenu::_controlOptionsDescription
Common::UString _controlOptionsDescription
Definition:
options.h:74
Engines::Widget
A widget in a GUI.
Definition:
widget.h:40
Engines::Jade::OptionsMenu::_gameInfoOptionsButton
Engines::WidgetProtoItem * _gameInfoOptionsButton
Definition:
options.h:61
Engines::Jade::OptionsMenu
Definition:
options.h:41
Engines::Jade::OptionsMenu::_videoOptionsDescription
Common::UString _videoOptionsDescription
Definition:
options.h:71
Engines::Jade::OptionsMenu::createGameInfoOptions
void createGameInfoOptions()
Definition:
options.cpp:101
Engines::Console
Definition:
console.h:190
Engines::Jade::OptionsMenu::_difficultyOptionsButton
Engines::WidgetProtoItem * _difficultyOptionsButton
Definition:
options.h:60
Engines::Jade::OptionsMenu::_difficultyOptions
Common::ScopedPtr< GUI > _difficultyOptions
Definition:
options.h:54
Engines::Jade::OptionsMenu::_gameInfoOptionsDescription
Common::UString _gameInfoOptionsDescription
Definition:
options.h:73
Engines::Jade::OptionsMenu::_creditsDescription
Common::UString _creditsDescription
Definition:
options.h:75
Engines::Jade::OptionsMenu::_backButtonDescription
Common::UString _backButtonDescription
Definition:
options.h:76
Engines::Jade::OptionsMenu::createDifficultyOptions
void createDifficultyOptions()
Definition:
options.cpp:97
Generated on Sun Nov 18 2018 15:13:39 for xoreos by
1.8.14