The Battle for Wesnoth  1.19.0+dev
Classes | Namespaces | Macros | Functions | Variables
hotkey_command.cpp File Reference
#include "hotkey/hotkey_command.hpp"
#include "config.hpp"
#include "gettext.hpp"
#include "hotkey/hotkey_item.hpp"
#include "log.hpp"
#include <array>
#include <set>
#include <string_view>
Include dependency graph for hotkey_command.cpp:

Go to the source code of this file.


struct  hotkey::hotkey_command_temp


 Keyboard shortcuts for game actions.


#define GETTEXT_DOMAIN   "wesnoth-lib"
#define ERR_G   LOG_STREAM(err, lg::general())
#define LOG_G   LOG_STREAM(info, lg::general())
#define DBG_G   LOG_STREAM(debug, lg::general())
#define ERR_CF   LOG_STREAM(err, log_config)


bool hotkey::is_scope_active (scope s)
bool hotkey::is_scope_active (hk_scopes s)
const hotkey_command & hotkey::get_hotkey_command (const std::string &command)
 returns the hotkey_command with the given name More...
const std::map< std::string_view, hotkey::hotkey_command > & hotkey::get_hotkey_commands ()
 returns a container that contains all currently active hotkey_commands. More...
bool hotkey::has_hotkey_command (const std::string &id)
void hotkey::init_hotkey_commands ()
t_string hotkey::get_translatable_category_name (HOTKEY_CATEGORY category)
 Gets the display name for a given hotkey category. More...


static lg::log_domain log_config ("config")

Macro Definition Documentation


#define DBG_G   LOG_STREAM(debug, lg::general())

Definition at line 32 of file hotkey_command.cpp.


#define ERR_CF   LOG_STREAM(err, log_config)

Definition at line 33 of file hotkey_command.cpp.


#define ERR_G   LOG_STREAM(err, lg::general())

Definition at line 30 of file hotkey_command.cpp.


#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 16 of file hotkey_command.cpp.


#define LOG_G   LOG_STREAM(info, lg::general())

Definition at line 31 of file hotkey_command.cpp.

Variable Documentation

◆ log_config

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