settings.cpp File Reference

#include "gui/widgets/settings.hpp"
#include "filesystem.hpp"
#include "gettext.hpp"
#include "gui/widgets/helper.hpp"
#include "log.hpp"
#include "serialization/parser.hpp"
#include "serialization/preprocessor.hpp"
#include "util.hpp"
#include "video.hpp"
#include "wml_exception.hpp"
#include <cassert>

Include dependency graph for gui/widgets/settings.cpp:

Go to the source code of this file.

Namespaces

namespace  gui2
namespace  gui2::settings

Defines

#define DBG_G   LOG_STREAM_INDENT(debug, gui)
#define LOG_G   LOG_STREAM_INDENT(info, gui)
#define WRN_G   LOG_STREAM_INDENT(warn, gui)
#define ERR_G   LOG_STREAM_INDENT(err, gui)
#define DBG_G_D   LOG_STREAM_INDENT(debug, gui_draw)
#define LOG_G_D   LOG_STREAM_INDENT(info, gui_draw)
#define WRN_G_D   LOG_STREAM_INDENT(warn, gui_draw)
#define ERR_G_D   LOG_STREAM_INDENT(err, gui_draw)
#define DBG_G_E   LOG_STREAM_INDENT(debug, gui_event)
#define LOG_G_E   LOG_STREAM_INDENT(info, gui_event)
#define WRN_G_E   LOG_STREAM_INDENT(warn, gui_event)
#define ERR_G_E   LOG_STREAM_INDENT(err, gui_event)
#define DBG_G_P   LOG_STREAM_INDENT(debug, gui_parse)
#define LOG_G_P   LOG_STREAM_INDENT(info, gui_parse)
#define WRN_G_P   LOG_STREAM_INDENT(warn, gui_parse)
#define ERR_G_P   LOG_STREAM_INDENT(err, gui_parse)

Functions

std::vector< std::string > gui2::window_type_list (DUMMY)
 Vector with all known windows, these are validated on existance on startup.
static void gui2::fill_window_types ()
const std::string & gui2::get_id (const twindow_type window_type)
void gui2::load_settings ()
 Loads the setting for the theme.
tresolution_definition_ * gui2::get_control (const std::string &control_type, const std::string &definition)
std::vector
< twindow_builder::tresolution >
::const_iterator 
gui2::get_window_builder (const std::string &type)

Variables

unsigned gui2::settings::screen_width = 0
 The screen resolution should be available for all widgets since their drawing method will depend on it.
unsigned gui2::settings::screen_height = 0
unsigned gui2::settings::popup_show_delay = 0
 These are copied from the active gui.
unsigned gui2::settings::popup_show_time = 0
unsigned gui2::settings::help_show_time = 0
unsigned gui2::settings::double_click_time = 0
std::map< std::string,
twindow_builder > 
gui2::windows
 Map with all known windows, (the builder class builds a window).
std::map< std::string,
tgui_definition > 
gui2::guis
 Map with all known guis.
std::map< std::string,
tgui_definition >
::const_iterator 
gui2::current_gui = guis.end()
 Points to the current gui.


Define Documentation

#define DBG_G   LOG_STREAM_INDENT(debug, gui)

Definition at line 32 of file gui/widgets/settings.cpp.

#define DBG_G_D   LOG_STREAM_INDENT(debug, gui_draw)

Definition at line 37 of file gui/widgets/settings.cpp.

#define DBG_G_E   LOG_STREAM_INDENT(debug, gui_event)

Definition at line 42 of file gui/widgets/settings.cpp.

#define DBG_G_P   LOG_STREAM_INDENT(debug, gui_parse)

Definition at line 47 of file gui/widgets/settings.cpp.

#define ERR_G   LOG_STREAM_INDENT(err, gui)

Definition at line 35 of file gui/widgets/settings.cpp.

#define ERR_G_D   LOG_STREAM_INDENT(err, gui_draw)

Definition at line 40 of file gui/widgets/settings.cpp.

#define ERR_G_E   LOG_STREAM_INDENT(err, gui_event)

Definition at line 45 of file gui/widgets/settings.cpp.

#define ERR_G_P   LOG_STREAM_INDENT(err, gui_parse)

Definition at line 50 of file gui/widgets/settings.cpp.

#define LOG_G   LOG_STREAM_INDENT(info, gui)

Definition at line 33 of file gui/widgets/settings.cpp.

#define LOG_G_D   LOG_STREAM_INDENT(info, gui_draw)

Definition at line 38 of file gui/widgets/settings.cpp.

#define LOG_G_E   LOG_STREAM_INDENT(info, gui_event)

Definition at line 43 of file gui/widgets/settings.cpp.

#define LOG_G_P   LOG_STREAM_INDENT(info, gui_parse)

Definition at line 48 of file gui/widgets/settings.cpp.

#define WRN_G   LOG_STREAM_INDENT(warn, gui)

Definition at line 34 of file gui/widgets/settings.cpp.

#define WRN_G_D   LOG_STREAM_INDENT(warn, gui_draw)

Definition at line 39 of file gui/widgets/settings.cpp.

#define WRN_G_E   LOG_STREAM_INDENT(warn, gui_event)

Definition at line 44 of file gui/widgets/settings.cpp.

#define WRN_G_P   LOG_STREAM_INDENT(warn, gui_parse)

Definition at line 49 of file gui/widgets/settings.cpp.


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs