#include "gettext.hpp"#include "hotkey_command.hpp"#include "hotkey_item.hpp"#include "config.hpp"#include "preferences.hpp"#include "log.hpp"
Go to the source code of this file.
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 | |
| void | hotkey::deactivate_all_scopes () |
| void | hotkey::set_scope_active (scope s, bool set) |
| void | hotkey::set_active_scopes (hk_scopes 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 boost::ptr_vector < hotkey_command > & | hotkey::get_hotkey_commands () |
| returns a container that contains all currently active hotkey_commands. More... | |
| bool | hotkey::remove_wml_hotkey (const std::string &id) |
| removes a wml hotkey with the given id, returns true if the deletion was successful More... | |
| bool | hotkey::has_hotkey_command (const std::string &id) |
| void | hotkey::add_wml_hotkey (const std::string &id, const t_string &description, const config &default_hotkey) |
| adds a new wml hotkey to the list, but only if there is no hotkey with that id yet on the list. More... | |
| const hotkey_command & | hotkey::get_hotkey_null () |
| returns the hotkey_command that is treated as null. More... | |
| void | hotkey::delete_all_wml_hotkeys () |
| deletes all wml hotkeys, should be called after a game has ended More... | |
| const std::string & | hotkey::get_description (const std::string &command) |
| const std::string & | hotkey::get_tooltip (const std::string &command) |
| void | hotkey::init_hotkey_commands () |
| void | hotkey::clear_hotkey_commands () |
| HOTKEY_COMMAND | hotkey::get_id (const std::string &command) |
| returns get_hotkey_command(command).id More... | |
Variables | |
| static lg::log_domain | log_config ("config") |
| #define DBG_G LOG_STREAM(debug, lg::general()) |
Definition at line 27 of file hotkey_command.cpp.
Referenced by hotkey::add_wml_hotkey().
| #define ERR_CF LOG_STREAM(err, log_config) |
Definition at line 28 of file hotkey_command.cpp.
Referenced by hotkey::add_wml_hotkey().
| #define ERR_G LOG_STREAM(err, lg::general()) |
Definition at line 25 of file hotkey_command.cpp.
Referenced by hotkey::hotkey_command::get_command_by_command(), hotkey::hotkey_command::hotkey_command(), and hotkey::hotkey_command::null().
| #define GETTEXT_DOMAIN "wesnoth-lib" |
Definition at line 15 of file hotkey_command.cpp.
| #define LOG_G LOG_STREAM(info, lg::general()) |
Definition at line 26 of file hotkey_command.cpp.
Referenced by hotkey::add_wml_hotkey(), and hotkey::remove_wml_hotkey().
|
static |
1.8.8