Get and set user-preferences. More...
#include "preferences/general.hpp"
#include "config.hpp"
#include "credentials.hpp"
#include "filesystem.hpp"
#include "game_config.hpp"
#include "hotkey/hotkey_item.hpp"
#include "lexical_cast.hpp"
#include "log.hpp"
#include "sdl/point.hpp"
#include "serialization/parser.hpp"
#include "sound.hpp"
#include "video.hpp"
#include "game_config_view.hpp"
#include <sys/stat.h>
#include <unistd.h>
Go to the source code of this file.
Classes | |
class | preferences::prefs_event_handler |
Namespaces | |
preferences | |
Modify, read and display user preferences. | |
Macros | |
#define | GETTEXT_DOMAIN "wesnoth-lib" |
#define | ERR_CFG LOG_STREAM(err , log_config) |
#define | ERR_FS LOG_STREAM(err, log_filesystem) |
Variables | |
static lg::log_domain | log_config ("config") |
static lg::log_domain | log_filesystem ("filesystem") |
const int | preferences::min_window_width = 800 |
const int | preferences::min_window_height = 540 |
const int | preferences::def_window_width = 1280 |
const int | preferences::def_window_height = 720 |
const int | preferences::max_window_width = 1920 |
const int | preferences::max_window_height = 1080 |
const int | preferences::min_font_scaling = 80 |
const int | preferences::max_font_scaling = 150 |
const int | preferences::min_pixel_scale = 1 |
const int | preferences::max_pixel_scale = 4 |
prefs_event_handler | preferences::event_handler_ |
Get and set user-preferences.
Definition in file general.cpp.
#define ERR_CFG LOG_STREAM(err , log_config) |
Definition at line 44 of file general.cpp.
Referenced by preferences::load_base_prefs().
#define ERR_FS LOG_STREAM(err, log_filesystem) |
Definition at line 47 of file general.cpp.
Referenced by preferences::write_preferences().
#define GETTEXT_DOMAIN "wesnoth-lib" |
Definition at line 21 of file general.cpp.
|
static |
|
static |