#include "tooltips.hpp"
#include "tstring.hpp"
#include <boost/ptr_container/ptr_vector.hpp>
#include <bitset>
Go to the source code of this file.
Classes | |
struct | hotkey::hotkey_command |
Stores all information related to functions that can be bound to hotkeys. More... | |
struct | hotkey::hotkey_command_temp |
Do not use this outside hotkeys.cpp. More... | |
class | hotkey::scope_changer |
Namespaces | |
hotkey | |
Keyboard shortcuts for game actions. | |
Typedefs | |
typedef std::bitset< SCOPE_COUNT > | hotkey::hk_scopes |
typedef boost::ptr_vector < hotkey_command > | hotkey::t_hotkey_command_list |
Functions | |
const boost::ptr_vector < hotkey_command > & | hotkey::get_hotkey_commands () |
returns a container that contains all currently active hotkey_commands. More... | |
const hotkey_command & | hotkey::get_hotkey_command (const std::string &command) |
returns the hotkey_command with the given name More... | |
const hotkey_command & | hotkey::get_hotkey_null () |
returns the hotkey_command that is treated as null. More... | |
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) |
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... | |
void | hotkey::delete_all_wml_hotkeys () |
deletes all wml hotkeys, should be called after a game has ended 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... | |
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... | |