The Battle for Wesnoth  1.17.6+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.

Classes

struct  hotkey::hotkey_command_temp
 

Namespaces

 hotkey
 Keyboard shortcuts for game actions.
 

Macros

#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)
 

Functions

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 ()
 
const std::map< HOTKEY_CATEGORY, std::string > & hotkey::get_category_names ()
 Returns the map of hotkey categories and their display names. More...
 

Variables

static lg::log_domain log_config ("config")
 

Macro Definition Documentation

◆ DBG_G

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

Definition at line 32 of file hotkey_command.cpp.

Referenced by hotkey::wml_hotkey_record::wml_hotkey_record().

◆ ERR_CF

#define ERR_CF   LOG_STREAM(err, log_config)

Definition at line 33 of file hotkey_command.cpp.

Referenced by hotkey::wml_hotkey_record::wml_hotkey_record().

◆ ERR_G

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

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 16 of file hotkey_command.cpp.

◆ LOG_G

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

Definition at line 31 of file hotkey_command.cpp.

Referenced by hotkey::wml_hotkey_record::wml_hotkey_record().

Variable Documentation

◆ log_config

lg::log_domain log_config("config")
static