Namespaces | Defines | Functions | Variables

hotkeys.cpp File Reference

#include "global.hpp"
#include "construct_dialog.hpp"
#include "display.hpp"
#include "foreach.hpp"
#include "hotkeys.hpp"
#include "game_end_exceptions.hpp"
#include "game_preferences.hpp"
#include "gettext.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/dialogs/transient_message.hpp"
#include "gui/widgets/window.hpp"
#include "filesystem.hpp"
#include "log.hpp"
#include "preferences_display.hpp"
#include "wesconfig.h"
#include "wml_separators.hpp"
Include dependency graph for hotkeys.cpp:

Go to the source code of this file.

Namespaces

namespace  hotkey
 

Keyboard shortcuts for game actions.


Defines

#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)
bool hotkey::is_scope_active (scope s)
static void hotkey::key_event_execute (display &disp, const SDL_KeyboardEvent &event, command_executor *executor)
static void hotkey::button_event_execute (display &disp, const SDL_JoyButtonEvent &event, command_executor *executor)
static void hotkey::hat_event_execute (display &disp, const SDL_JoyHatEvent &event, command_executor *executor)
void hotkey::load_descriptions ()
void hotkey::set_hotkey_tag_name (const std::string &name)
void hotkey::load_hotkeys (const config &cfg, bool set_as_default)
void hotkey::reset_default_hotkeys ()
void hotkey::save_hotkeys (config &cfg)
hotkey_item & hotkey::get_hotkey (HOTKEY_COMMAND id)
hotkey_item & hotkey::get_hotkey (const std::string &command)
HOTKEY_COMMAND hotkey::get_hotkey_command (const std::string &command)
hotkey_item & hotkey::get_hotkey (int joy_num, int button_num)
hotkey_item & hotkey::get_hotkey (int joy_num, int hat_num, int hat_value)
hotkey_item & hotkey::get_hotkey (int character, int keycode, bool shift, bool ctrl, bool alt, bool cmd)
hotkey_item & hotkey::get_hotkey (const SDL_JoyButtonEvent &event)
hotkey_item & hotkey::get_hotkey (const SDL_JoyHatEvent &event)
hotkey_item & hotkey::get_hotkey (const SDL_KeyboardEvent &event)
static void hotkey::_get_visible_hotkey_itor (int index, std::vector< hotkey_item >::iterator &itor)
hotkey_item & hotkey::get_visible_hotkey (int index)
std::vector< hotkey_item > & hotkey::get_hotkeys ()
void hotkey::button_event (display &disp, const SDL_JoyButtonEvent &event, command_executor *executor)
void hotkey::hat_event (display &disp, const SDL_JoyHatEvent &event, command_executor *executor)
void hotkey::key_event (display &disp, const SDL_KeyboardEvent &event, command_executor *executor)
void hotkey::execute_command (display &disp, HOTKEY_COMMAND command, command_executor *executor, int index)

Variables

static lg::log_domain log_config ("config")
const std::string hotkey::CLEARED_TEXT = "__none__"

Define Documentation

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

Definition at line 39 of file hotkeys.cpp.

#define ERR_CF   LOG_STREAM(err, log_config)

Definition at line 40 of file hotkeys.cpp.

Referenced by hotkey::hotkey_item::load_from_config().

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

Definition at line 37 of file hotkeys.cpp.

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 18 of file hotkeys.cpp.

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

Definition at line 38 of file hotkeys.cpp.

Referenced by hotkey::hotkey_item::set_key().


Variable Documentation

lg::log_domain log_config("config") [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:05:23 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs