The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Typedefs | Functions | Variables
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 "gettext.hpp"
#include "gui/core/log.hpp"
#include "gui/core/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 "wml_exception.hpp"
Include dependency graph for settings.cpp:

Go to the source code of this file.

Classes

struct  gui2::tgui_definition
 

Namespaces

 gui2
 A class inherited from ttext_box that displays its input as stars.
 
 gui2::settings
 This namespace contains the 'global' settings.
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 

Typedefs

typedef std::map< std::string,
std::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. More...
 
static tregistered_widget_type & gui2::registred_widget_type ()
 
void gui2::register_window (const std::string &id)
 Registers a window. More...
 
void gui2::load_settings ()
 Loads the setting for the theme. More...
 
void gui2::register_widget (const std::string &id, std::function< void(tgui_definition &gui_definition,const std::string &definition_type,const config &cfg,const char *key)> functor)
 Registers a widgets. More...
 
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. More...
 
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. More...
 

Variables

bool gui2::new_widgets = false
 Do we wish to use the new library or not. More...
 
unsigned gui2::settings::screen_width = 0
 The screen resolution should be available for all widgets since their drawing method will depend on it. More...
 
unsigned gui2::settings::screen_height = 0
 
unsigned gui2::settings::gamemap_x_offset = 0
 The offset between the left edge of the screen and the gamemap. More...
 
unsigned gui2::settings::gamemap_width = 0
 The size of the map area, if not available equal to the screen size. More...
 
unsigned gui2::settings::gamemap_height = 0
 
unsigned gui2::settings::popup_show_delay = 0
 These are copied from the active gui. More...
 
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
 
static std::vector< ttip > gui2::settings::tips
 
static std::map< std::string,
twindow_builder > 
gui2::windows
 Map with all known windows, (the builder class builds a window). More...
 
static std::map< std::string,
tgui_definition > 
gui2::guis
 Map with all known guis. More...
 
static std::map< std::string,
tgui_definition >
::const_iterator 
gui2::current_gui = guis.end()
 Points to the current gui. More...
 

Detailed Description

Implementation of settings.hpp.

Definition in file settings.cpp.

Macro Definition Documentation

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 20 of file settings.cpp.