#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>
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_item > | hotkeys_ |
hotkey::hotkey_item | null_hotkey_ |
const std::string | hotkey::CLEARED_TEXT = "__none__" |
#define DBG_G LOG_STREAM(debug, general) |
Definition at line 44 of file hotkeys.cpp.
Referenced by gui2::tbuilder_grid::build(), gui2::tbuilder_vertical_scrollbar::build(), gui2::tbuilder_text_box::build(), gui2::tbuilder_toggle_button::build(), gui2::tbuilder_spacer::build(), gui2::tbuilder_panel::build(), gui2::tbuilder_listbox::build(), gui2::tbuilder_label::build(), gui2::tbuilder_button::build(), gui2::twindow::do_show_help_popup(), gui2::twindow::do_show_tooltip(), gui2::twindow::draw(), hotkey::execute_command(), gamemap::gamemap(), hotkey::get_hotkey(), gui2::tgrid::get_size(), gui::textbox::handle_event(), gui2::twindow::layout(), gui2::tgrid::layout(), gui2::tgrid::tchild::set_size(), and gui2::tgrid::set_size().
#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) |
Definition at line 43 of file hotkeys.cpp.
Referenced by gui2::get_control(), gui2::load_settings(), play_game(), and hotkey::hotkey_item::set_key().
const char* command |
Definition at line 51 of file hotkeys.cpp.
Referenced by events::map_command_handler< events::console_handler >::dispatch(), events::console_handler::do_set_alias(), preprocessor_data::get_chunk(), events::map_command_handler< events::console_handler >::help_command(), hotkey::manager::manager(), server::process_command(), server::process_query(), game::process_turn(), events::map_command_handler< events::console_handler >::register_command(), and play_controller::show_menu().
const char* description |
Definition at line 52 of file hotkeys.cpp.
Referenced by unit::add_modification(), dialogs::unit_preview_pane::draw_contents(), help::generate_ability_topics(), mp::wait::generate_menu(), help::generate_weapon_special_topics(), mp::connect::side::get_config(), unit::internal_matches_filter(), hotkey::load_descriptions(), and events::menu_handler::recruit().
bool hidden |
Definition at line 53 of file hotkeys.cpp.
Referenced by help::generate_races_sections(), hotkey::manager::manager(), and dfool::dfool_ai::visible_units().
struct { ... } hotkey_list_[] [static] |
Referenced by hotkey::load_descriptions(), and hotkey::manager::manager().
std::vector<hotkey::hotkey_item> hotkeys_ [static] |
Definition at line 152 of file hotkeys.cpp.
Referenced by hotkey::_get_visible_hotkey_itor(), hotkey::get_hotkey(), hotkey::get_hotkeys(), hotkey::get_visible_hotkey(), hotkey::load_descriptions(), hotkey::manager::manager(), map_editor::map_editor(), hotkey::save_hotkeys(), hotkey::manager::~manager(), and map_editor::~map_editor().
Definition at line 50 of file hotkeys.cpp.
Referenced by unit_map::add(), team::get_side_colour_index(), t_string::t_string(), and t_string::walker::update().
hotkey::hotkey_item null_hotkey_ [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 |