The Battle for Wesnoth  1.19.7+dev
Macros | Functions | Variables
preferences.cpp File Reference

Get and set user-preferences. More...

#include "preferences/preferences.hpp"
#include "cursor.hpp"
#include "game_board.hpp"
#include "game_display.hpp"
#include "formula/string_utils.hpp"
#include "game_config.hpp"
#include "game_data.hpp"
#include "gettext.hpp"
#include "gui/dialogs/file_dialog.hpp"
#include "gui/dialogs/theme_list.hpp"
#include "gui/dialogs/transient_message.hpp"
#include "hotkey/hotkey_item.hpp"
#include "log.hpp"
#include "map_settings.hpp"
#include "map/map.hpp"
#include "resources.hpp"
#include "serialization/chrono.hpp"
#include "serialization/parser.hpp"
#include "sound.hpp"
#include "units/unit.hpp"
#include "video.hpp"
#include <sys/stat.h>
#include <boost/algorithm/string.hpp>
#include <openssl/evp.h>
#include <openssl/err.h>
Include dependency graph for preferences.cpp:

Go to the source code of this file.

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define ERR_CFG   LOG_STREAM(err , log_config)
 
#define DBG_CFG   LOG_STREAM(debug , log_config)
 
#define ERR_FS   LOG_STREAM(err, log_filesystem)
 
#define ERR_ADV   LOG_STREAM(err, advanced_preferences)
 

Functions

static std::string fix_orb_color_name (const std::string &color)
 

Variables

static lg::log_domain log_config ("config")
 
static lg::log_domain log_filesystem ("filesystem")
 
static lg::log_domain advanced_preferences ("advanced_preferences")
 

Detailed Description

Get and set user-preferences.

Definition in file preferences.cpp.

Macro Definition Documentation

◆ DBG_CFG

#define DBG_CFG   LOG_STREAM(debug , log_config)

Definition at line 62 of file preferences.cpp.

◆ ERR_ADV

#define ERR_ADV   LOG_STREAM(err, advanced_preferences)

Definition at line 68 of file preferences.cpp.

◆ ERR_CFG

#define ERR_CFG   LOG_STREAM(err , log_config)

Definition at line 61 of file preferences.cpp.

◆ ERR_FS

#define ERR_FS   LOG_STREAM(err, log_filesystem)

Definition at line 65 of file preferences.cpp.

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 20 of file preferences.cpp.

Function Documentation

◆ fix_orb_color_name()

static std::string fix_orb_color_name ( const std::string &  color)
static

Variable Documentation

◆ advanced_preferences

lg::log_domain advanced_preferences("advanced_preferences") ( "advanced_preferences"  )
static

◆ log_config

lg::log_domain log_config("config") ( "config"  )
static

◆ log_filesystem

lg::log_domain log_filesystem("filesystem") ( "filesystem"  )
static