hotkeys.cpp File Reference

#include "global.hpp"
#include "config.hpp"
#include "construct_dialog.hpp"
#include "display.hpp"
#include "events.hpp"
#include "hotkeys.hpp"
#include "game_config.hpp"
#include "game_errors.hpp"
#include "gettext.hpp"
#include "filesystem.hpp"
#include "log.hpp"
#include "menu_events.hpp"
#include "preferences_display.hpp"
#include "show_dialog.hpp"
#include "util.hpp"
#include "video.hpp"
#include "wesconfig.h"
#include "wml_separators.hpp"
#include "SDL.h"
#include <algorithm>
#include <cstdlib>
#include <map>

Include dependency graph for hotkeys.cpp:

Go to the source code of this file.

Namespaces

namespace  hotkey

Defines

#define GETTEXT_DOMAIN   "wesnoth-lib"
#define ERR_G   LOG_STREAM(err, general)
#define LOG_G   LOG_STREAM(info, general)
#define DBG_G   LOG_STREAM(debug, general)
#define ERR_CONFIG   LOG_STREAM(err, config)

Functions

static void hotkey::key_event_execute (display &disp, const SDL_KeyboardEvent &event, command_executor *executor)
void hotkey::load_descriptions ()
void hotkey::load_hotkeys (const config &cfg)
void hotkey::save_hotkeys (config &cfg)
hotkey_item & hotkey::get_hotkey (HOTKEY_COMMAND id)
hotkey_item & hotkey::get_hotkey (const std::string &command)
hotkey_item & hotkey::get_hotkey (int character, int keycode, bool shift, bool ctrl, bool alt, bool cmd)
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::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

struct { ... }  hotkey_list_ []
std::vector< hotkey::hotkey_itemhotkeys_
hotkey::hotkey_item null_hotkey_
const std::string hotkey::CLEARED_TEXT = "__none__"


Define Documentation

#define DBG_G   LOG_STREAM(debug, general)

#define ERR_CONFIG   LOG_STREAM(err, config)

Definition at line 45 of file hotkeys.cpp.

#define ERR_G   LOG_STREAM(err, general)

Definition at line 42 of file hotkeys.cpp.

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 17 of file hotkeys.cpp.

#define LOG_G   LOG_STREAM(info, general)


Variable Documentation

const char* command

const char* description

bool hidden

struct { ... } hotkey_list_[] [static]

std::vector<hotkey::hotkey_item> hotkeys_ [static]

Definition at line 153 of file hotkeys.cpp.

Referenced by hotkey::get_hotkey(), and hotkey::get_visible_hotkey().


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs