Classes | Namespaces | Defines | Typedefs | Functions | Variables

gui/widgets/settings.cpp File Reference

Implementation of settings.hpp. More...

#include "gui/widgets/settings.hpp"
#include "asserts.hpp"
#include "config_cache.hpp"
#include "filesystem.hpp"
#include "foreach.hpp"
#include "gettext.hpp"
#include "gui/auxiliary/log.hpp"
#include "gui/auxiliary/tips.hpp"
#include "gui/widgets/window.hpp"
#include "serialization/parser.hpp"
#include "serialization/preprocessor.hpp"
#include "serialization/schema_validator.hpp"
#include "formula_string_utils.hpp"
Include dependency graph for settings.cpp:

Go to the source code of this file.

Classes

struct  gui2::tgui_definition

Namespaces

namespace  gui2
 

A class inherited from ttext_box that displays its input as stars.


namespace  gui2::settings
 

This namespace contains the 'global' settings.


Defines

#define GETTEXT_DOMAIN   "wesnoth-lib"

Typedefs

typedef std::map< std::string,
boost::function< void(tgui_definition
&, const std::string &, const
config &, const char *key)> 
gui2::tregistered_widget_type )

Functions

std::vector< ttip > gui2::settings::get_tips ()
static std::vector< std::string > & gui2::registered_window_types ()
 Returns the list of registered windows.
static tregistered_widget_type & gui2::registred_widget_type ()
void gui2::register_window (const std::string &id)
 Registers a window.
void gui2::load_settings ()
 Loads the setting for the theme.
void gui2::register_widget (const std::string &id, boost::function< void(tgui_definition &gui_definition, const std::string &definition_type, const config &cfg, const char *key)> functor)
 Registers a widgets.
void gui2::load_widget_definitions (tgui_definition &gui_definition, const std::string &definition_type, const std::vector< tcontrol_definition_ptr > &definitions)
 Loads the definitions of a widget.
tresolution_definition_ptr 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)
 Returns an interator to the requested builder.

Variables

bool gui2::new_widgets = false
 Do we wish to use the new library or not.
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::gamemap_width = 0
 The size of the map area, if not available equal to the screen size.
unsigned gui2::settings::gamemap_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
unsigned gui2::settings::repeat_button_repeat_time = 0
std::string gui2::settings::sound_button_click = ""
std::string gui2::settings::sound_toggle_button_click = ""
std::string gui2::settings::sound_toggle_panel_click = ""
std::string gui2::settings::sound_slider_adjust = ""
t_string gui2::settings::has_helptip_message
std::vector< ttip > gui2::settings::tips
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.

Detailed Description

Implementation of settings.hpp.

Definition in file settings.cpp.


Define Documentation

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 21 of file settings.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:05:19 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs