xoreos
0.0.5
src
engines
kotor
gui
options
graphics.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_KOTOR_GUI_OPTIONS_GRAPHICS_H
26
#define ENGINES_KOTOR_GUI_OPTIONS_GRAPHICS_H
27
28
#include "
src/common/scopedptr.h
"
29
30
#include "
src/engines/kotor/gui/gui.h
"
31
32
namespace
Engines
{
33
34
namespace
KotOR {
35
36
class
OptionsGraphicsMenu
:
public
GUI
{
37
public
:
38
OptionsGraphicsMenu
(::
Engines::Console
*console = 0);
39
~OptionsGraphicsMenu
();
40
41
virtual
void
show
();
42
43
protected
:
44
void
callbackActive
(
Widget
&widget);
45
46
private
:
47
bool
_shadows
;
48
bool
_grass
;
49
50
Common::ScopedPtr<GUI>
_resolution
;
51
Common::ScopedPtr<GUI>
_advanced
;
52
53
void
setDefault
();
54
void
readConfig
();
55
void
displayConfig
();
56
57
void
adoptChanges
();
58
};
59
60
}
// End of namespace KotOR
61
62
}
// End of namespace Engines
63
64
#endif // ENGINES_KOTOR_GUI_OPTIONS_GRAPHICS_H
Engines::KotOR::OptionsGraphicsMenu::~OptionsGraphicsMenu
~OptionsGraphicsMenu()
Definition:
graphics.cpp:54
Engines::KotOR::OptionsGraphicsMenu::_resolution
Common::ScopedPtr< GUI > _resolution
Definition:
graphics.h:50
scopedptr.h
A simple scoped smart pointer template.
Engines::KotOR::OptionsGraphicsMenu::readConfig
void readConfig()
Definition:
graphics.cpp:103
Engines
Definition:
console.cpp:69
Common::ScopedPtr
A scoped plain pointer, allowing pointer-y access and normal deletion.
Definition:
scopedptr.h:120
Engines::KotOR::OptionsGraphicsMenu
Definition:
graphics.h:36
Engines::KotOR::OptionsGraphicsMenu::_advanced
Common::ScopedPtr< GUI > _advanced
Definition:
graphics.h:51
gui.h
A KotOR GUI.
Engines::KotOR::OptionsGraphicsMenu::show
virtual void show()
Show the GUI.
Definition:
graphics.cpp:57
Engines::KotOR::OptionsGraphicsMenu::setDefault
void setDefault()
Definition:
graphics.cpp:98
Engines::KotOR::OptionsGraphicsMenu::displayConfig
void displayConfig()
Definition:
graphics.cpp:108
Engines::Widget
A widget in a GUI.
Definition:
widget.h:40
Engines::KotOR::OptionsGraphicsMenu::adoptChanges
void adoptChanges()
Definition:
graphics.cpp:113
Engines::KotOR::GUI
A KotOR GUI.
Definition:
gui.h:57
Engines::KotOR::OptionsGraphicsMenu::_shadows
bool _shadows
Definition:
graphics.h:47
Engines::KotOR::OptionsGraphicsMenu::OptionsGraphicsMenu
OptionsGraphicsMenu(::Engines::Console *console=0)
Definition:
graphics.cpp:39
Engines::Console
Definition:
console.h:190
Engines::KotOR::OptionsGraphicsMenu::_grass
bool _grass
Definition:
graphics.h:48
Engines::KotOR::OptionsGraphicsMenu::callbackActive
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
Definition:
graphics.cpp:64
Generated on Sun Nov 18 2018 15:13:40 for xoreos by
1.8.14