xoreos
0.0.5
src
engines
jade
gui
options
control.cpp
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
#include "
src/engines/aurora/kotorjadegui/kotorjadewidget.h
"
26
27
#include "
src/engines/jade/gui/options/control.h
"
28
29
namespace
Engines
{
30
31
namespace
Jade {
32
33
ControlOptionsMenu::ControlOptionsMenu
(
Console
*console) :
GUI
(console) {
34
load
(
"LTI_OPT_CONT"
);
35
}
36
37
void
ControlOptionsMenu::callbackActive
(
Widget
&widget) {
38
if
(widget.
getTag
() ==
"ButtonCancel"
)
39
_returnCode
=
kReturnCodeAbort
;
40
}
41
42
}
// End of namespace Jade
43
44
}
// End of namespace Engines
Engines::GUI::kReturnCodeAbort
static const uint32 kReturnCodeAbort
Definition:
gui.h:47
Engines::GUI::_returnCode
uint32 _returnCode
The GUI's return code.
Definition:
gui.h:75
Engines::Jade::ControlOptionsMenu::callbackActive
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
Definition:
control.cpp:37
Engines::Jade::ControlOptionsMenu::ControlOptionsMenu
ControlOptionsMenu(::Engines::Console *console=0)
Definition:
control.cpp:33
Engines::Jade::GUI
A Jade Empire GUI.
Definition:
gui.h:57
Engines::Widget::getTag
const Common::UString & getTag() const
Get the widget's tag.
Definition:
widget.cpp:45
Engines
Definition:
console.cpp:69
kotorjadewidget.h
Common base for Star Wars: Knights of the Old Republic and Jade Empire widgets.
Engines::Jade::GUI::load
void load(const Common::UString &resref)
Definition:
gui.cpp:103
Engines::Widget
A widget in a GUI.
Definition:
widget.h:40
control.h
The Jade Empire control options menu.
Engines::Jade::Console
Definition:
console.h:38
Generated on Sun Nov 18 2018 15:13:39 for xoreos by
1.8.14