#include <hotkeys.hpp>

Public Member Functions | |
| virtual void | cycle_units () |
| virtual void | cycle_back_units () |
| virtual void | end_turn () |
| virtual void | goto_leader () |
| virtual void | unit_hold_position () |
| virtual void | end_unit_turn () |
| virtual void | undo () |
| virtual void | redo () |
| virtual void | unit_description () |
| virtual void | rename_unit () |
| virtual void | save_game () |
| virtual void | save_replay () |
| virtual void | save_map () |
| virtual void | load_game () |
| virtual void | toggle_ellipses () |
| virtual void | toggle_grid () |
| virtual void | status_table () |
| virtual void | recall () |
| virtual void | recruit () |
| virtual void | repeat_recruit () |
| virtual void | speak () |
| virtual void | whisper () |
| virtual void | shout () |
| virtual void | create_unit () |
| virtual void | change_side () |
| virtual void | preferences () |
| virtual void | objectives () |
| virtual void | unit_list () |
| virtual void | show_statistics () |
| virtual void | stop_network () |
| virtual void | start_network () |
| virtual void | label_terrain (bool) |
| virtual void | clear_labels () |
| virtual void | show_enemy_moves (bool) |
| virtual void | toggle_shroud_updates () |
| virtual void | update_shroud_now () |
| virtual void | continue_move () |
| virtual void | search () |
| virtual void | show_help () |
| virtual void | show_chat_log () |
| virtual void | user_command () |
| virtual void | custom_command () |
| virtual void | ai_formula () |
| virtual void | clear_messages () |
| virtual void | change_language () |
| virtual void | play_replay () |
| virtual void | reset_replay () |
| virtual void | stop_replay () |
| virtual void | replay_next_turn () |
| virtual void | replay_next_side () |
| virtual void | replay_show_everything () |
| virtual void | replay_show_each () |
| virtual void | replay_show_team1 () |
| virtual void | replay_skip_animation () |
| virtual void | whiteboard_toggle () |
| virtual void | whiteboard_execute_action () |
| virtual void | whiteboard_execute_all_actions () |
| virtual void | whiteboard_delete_action () |
| virtual void | whiteboard_bump_up_action () |
| virtual void | whiteboard_bump_down_action () |
| virtual void | whiteboard_suppose_dead () |
| virtual void | left_mouse_click () |
| virtual void | right_mouse_click () |
| virtual std::string | get_action_image (hotkey::HOTKEY_COMMAND, int) const |
| virtual ACTION_STATE | get_action_state (hotkey::HOTKEY_COMMAND, int) const |
| std::string | get_menu_image (hotkey::HOTKEY_COMMAND command, int index=-1) const |
| std::vector< std::string > | get_menu_images (display &, const std::vector< std::string > &items_arg) |
| void | show_menu (const std::vector< std::string > &items_arg, int xloc, int yloc, bool context_menu, display &gui) |
| virtual bool | can_execute_command (HOTKEY_COMMAND command, int index=-1) const =0 |
| virtual bool | execute_command (HOTKEY_COMMAND command, int index=-1) |
Protected Member Functions | |
| virtual | ~command_executor () |
Definition at line 283 of file hotkeys.hpp.
| virtual hotkey::command_executor::~command_executor | ( | ) | [inline, protected, virtual] |
Definition at line 286 of file hotkeys.hpp.
| virtual void hotkey::command_executor::ai_formula | ( | ) | [inline, virtual] |
Definition at line 330 of file hotkeys.hpp.
Referenced by execute_command().

| virtual bool hotkey::command_executor::can_execute_command | ( | HOTKEY_COMMAND | command, | |
| int | index = -1 | |||
| ) | const [pure virtual] |
Implemented in help::help_button.
Referenced by show_menu(), and controller_base::show_menu().

| virtual void hotkey::command_executor::change_language | ( | ) | [inline, virtual] |
Definition at line 332 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::change_side | ( | ) | [inline, virtual] |
Definition at line 312 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::clear_labels | ( | ) | [inline, virtual] |
Definition at line 320 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::clear_messages | ( | ) | [inline, virtual] |
Definition at line 331 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::continue_move | ( | ) | [inline, virtual] |
Definition at line 324 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::create_unit | ( | ) | [inline, virtual] |
Definition at line 311 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::custom_command | ( | ) | [inline, virtual] |
Definition at line 329 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::cycle_back_units | ( | ) | [inline, virtual] |
Definition at line 289 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::cycle_units | ( | ) | [inline, virtual] |
Definition at line 288 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::end_turn | ( | ) | [inline, virtual] |
Definition at line 290 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::end_unit_turn | ( | ) | [inline, virtual] |
Definition at line 293 of file hotkeys.hpp.
Referenced by execute_command().

| bool hotkey::command_executor::execute_command | ( | HOTKEY_COMMAND | command, | |
| int | index = -1 | |||
| ) | [virtual] |
Definition at line 972 of file hotkeys.cpp.
References ai_formula(), change_language(), change_side(), clear_labels(), clear_messages(), continue_move(), create_unit(), custom_command(), cycle_back_units(), cycle_units(), end_turn(), end_unit_turn(), goto_leader(), hotkey::HOTKEY_AI_FORMULA, hotkey::HOTKEY_BEST_ENEMY_MOVES, hotkey::HOTKEY_CHANGE_SIDE, hotkey::HOTKEY_CHAT_LOG, hotkey::HOTKEY_CLEAR_LABELS, hotkey::HOTKEY_CLEAR_MSG, hotkey::HOTKEY_CONTINUE_MOVE, hotkey::HOTKEY_CREATE_UNIT, hotkey::HOTKEY_CUSTOM_CMD, hotkey::HOTKEY_CYCLE_BACK_UNITS, hotkey::HOTKEY_CYCLE_UNITS, hotkey::HOTKEY_DELAY_SHROUD, hotkey::HOTKEY_END_UNIT_TURN, hotkey::HOTKEY_ENDTURN, hotkey::HOTKEY_HELP, hotkey::HOTKEY_LABEL_TEAM_TERRAIN, hotkey::HOTKEY_LABEL_TERRAIN, hotkey::HOTKEY_LANGUAGE, hotkey::HOTKEY_LEADER, hotkey::HOTKEY_LEFT_MOUSE_CLICK, hotkey::HOTKEY_LOAD_GAME, hotkey::HOTKEY_OBJECTIVES, hotkey::HOTKEY_PLAY_REPLAY, hotkey::HOTKEY_PREFERENCES, hotkey::HOTKEY_RECALL, hotkey::HOTKEY_RECRUIT, hotkey::HOTKEY_REDO, hotkey::HOTKEY_RENAME_UNIT, hotkey::HOTKEY_REPEAT_RECRUIT, hotkey::HOTKEY_REPLAY_NEXT_SIDE, hotkey::HOTKEY_REPLAY_NEXT_TURN, hotkey::HOTKEY_REPLAY_SHOW_EACH, hotkey::HOTKEY_REPLAY_SHOW_EVERYTHING, hotkey::HOTKEY_REPLAY_SHOW_TEAM1, hotkey::HOTKEY_REPLAY_SKIP_ANIMATION, hotkey::HOTKEY_RESET_REPLAY, hotkey::HOTKEY_RIGHT_MOUSE_CLICK, hotkey::HOTKEY_SAVE_GAME, hotkey::HOTKEY_SAVE_MAP, hotkey::HOTKEY_SAVE_REPLAY, hotkey::HOTKEY_SEARCH, hotkey::HOTKEY_SHOW_ENEMY_MOVES, hotkey::HOTKEY_SPEAK, hotkey::HOTKEY_SPEAK_ALL, hotkey::HOTKEY_SPEAK_ALLY, hotkey::HOTKEY_START_NETWORK, hotkey::HOTKEY_STATISTICS, hotkey::HOTKEY_STATUS_TABLE, hotkey::HOTKEY_STOP_NETWORK, hotkey::HOTKEY_STOP_REPLAY, hotkey::HOTKEY_TOGGLE_ELLIPSES, hotkey::HOTKEY_TOGGLE_GRID, hotkey::HOTKEY_UNDO, hotkey::HOTKEY_UNIT_DESCRIPTION, hotkey::HOTKEY_UNIT_HOLD_POSITION, hotkey::HOTKEY_UNIT_LIST, hotkey::HOTKEY_UPDATE_SHROUD, hotkey::HOTKEY_USER_CMD, hotkey::HOTKEY_WB_BUMP_DOWN_ACTION, hotkey::HOTKEY_WB_BUMP_UP_ACTION, hotkey::HOTKEY_WB_DELETE_ACTION, hotkey::HOTKEY_WB_EXECUTE_ACTION, hotkey::HOTKEY_WB_EXECUTE_ALL_ACTIONS, hotkey::HOTKEY_WB_SUPPOSE_DEAD, hotkey::HOTKEY_WB_TOGGLE, label_terrain(), left_mouse_click(), load_game(), objectives(), play_replay(), preferences(), recall(), recruit(), redo(), rename_unit(), repeat_recruit(), replay_next_side(), replay_next_turn(), replay_show_each(), replay_show_everything(), replay_show_team1(), replay_skip_animation(), reset_replay(), right_mouse_click(), save_game(), save_map(), save_replay(), search(), shout(), show_chat_log(), show_enemy_moves(), show_help(), show_statistics(), speak(), start_network(), status_table(), stop_network(), stop_replay(), toggle_ellipses(), toggle_grid(), toggle_shroud_updates(), undo(), unit_description(), unit_hold_position(), unit_list(), update_shroud_now(), user_command(), whisper(), whiteboard_bump_down_action(), whiteboard_bump_up_action(), whiteboard_delete_action(), whiteboard_execute_action(), whiteboard_execute_all_actions(), whiteboard_suppose_dead(), and whiteboard_toggle().
Referenced by show_menu().

| virtual std::string hotkey::command_executor::get_action_image | ( | hotkey::HOTKEY_COMMAND | , | |
| int | ||||
| ) | const [inline, virtual] |
Definition at line 353 of file hotkeys.hpp.
Referenced by get_menu_image().

| virtual ACTION_STATE hotkey::command_executor::get_action_state | ( | hotkey::HOTKEY_COMMAND | , | |
| int | ||||
| ) | const [inline, virtual] |
Definition at line 355 of file hotkeys.hpp.
Referenced by get_menu_image().

| std::string hotkey::command_executor::get_menu_image | ( | hotkey::HOTKEY_COMMAND | command, | |
| int | index = -1 | |||
| ) | const |
Definition at line 1294 of file hotkeys.cpp.
References hotkey::ACTION_OFF, hotkey::ACTION_ON, game_config::images::checked_menu, get_action_image(), get_action_state(), and game_config::images::unchecked_menu.
Referenced by get_menu_images().


| std::vector< std::string > hotkey::command_executor::get_menu_images | ( | display & | disp, | |
| const std::vector< std::string > & | items_arg | |||
| ) |
Definition at line 1302 of file hotkeys.cpp.
References COLUMN_SEPARATOR, hotkey::hotkey_item::get_description(), hotkey::get_hotkey(), hotkey::hotkey_item::get_id(), get_menu_image(), theme::get_menu_item(), hotkey::hotkey_item::get_name(), display::get_theme(), IMAGE_PREFIX, and theme::menu::title().
Referenced by show_menu().


| virtual void hotkey::command_executor::goto_leader | ( | ) | [inline, virtual] |
Definition at line 291 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::label_terrain | ( | bool | ) | [inline, virtual] |
Definition at line 319 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::left_mouse_click | ( | ) | [inline, virtual] |
Definition at line 349 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::load_game | ( | ) | [inline, virtual] |
Definition at line 301 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::objectives | ( | ) | [inline, virtual] |
Definition at line 314 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::play_replay | ( | ) | [inline, virtual] |
Definition at line 333 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::preferences | ( | ) | [inline, virtual] |
Definition at line 313 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::recall | ( | ) | [inline, virtual] |
Definition at line 305 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::recruit | ( | ) | [inline, virtual] |
Definition at line 306 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::redo | ( | ) | [inline, virtual] |
Definition at line 295 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::rename_unit | ( | ) | [inline, virtual] |
Definition at line 297 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::repeat_recruit | ( | ) | [inline, virtual] |
Definition at line 307 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::replay_next_side | ( | ) | [inline, virtual] |
Definition at line 337 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::replay_next_turn | ( | ) | [inline, virtual] |
Definition at line 336 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::replay_show_each | ( | ) | [inline, virtual] |
Definition at line 339 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::replay_show_everything | ( | ) | [inline, virtual] |
Definition at line 338 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::replay_show_team1 | ( | ) | [inline, virtual] |
Definition at line 340 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::replay_skip_animation | ( | ) | [inline, virtual] |
Definition at line 341 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::reset_replay | ( | ) | [inline, virtual] |
Definition at line 334 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::right_mouse_click | ( | ) | [inline, virtual] |
Definition at line 350 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::save_game | ( | ) | [inline, virtual] |
Definition at line 298 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::save_map | ( | ) | [inline, virtual] |
Definition at line 300 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::save_replay | ( | ) | [inline, virtual] |
Definition at line 299 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::search | ( | ) | [inline, virtual] |
Definition at line 325 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::shout | ( | ) | [inline, virtual] |
Definition at line 310 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::show_chat_log | ( | ) | [inline, virtual] |
Definition at line 327 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::show_enemy_moves | ( | bool | ) | [inline, virtual] |
Definition at line 321 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::show_help | ( | ) | [inline, virtual] |
Reimplemented in help::help_button.
Definition at line 326 of file hotkeys.hpp.
Referenced by execute_command().

| void hotkey::command_executor::show_menu | ( | const std::vector< std::string > & | items_arg, | |
| int | xloc, | |||
| int | yloc, | |||
| bool | context_menu, | |||
| display & | gui | |||
| ) |
Definition at line 1265 of file hotkeys.cpp.
References can_execute_command(), execute_command(), hotkey::get_hotkey(), hotkey::hotkey_item::get_id(), get_menu_images(), gui::dialog::hotkeys_style, gui::MESSAGE, gui::dialog::set_menu(), and gui::dialog::show().

| virtual void hotkey::command_executor::show_statistics | ( | ) | [inline, virtual] |
Definition at line 316 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::speak | ( | ) | [inline, virtual] |
Definition at line 308 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::start_network | ( | ) | [inline, virtual] |
Definition at line 318 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::status_table | ( | ) | [inline, virtual] |
Definition at line 304 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::stop_network | ( | ) | [inline, virtual] |
Definition at line 317 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::stop_replay | ( | ) | [inline, virtual] |
Definition at line 335 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::toggle_ellipses | ( | ) | [inline, virtual] |
Definition at line 302 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::toggle_grid | ( | ) | [inline, virtual] |
Definition at line 303 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::toggle_shroud_updates | ( | ) | [inline, virtual] |
Definition at line 322 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::undo | ( | ) | [inline, virtual] |
Definition at line 294 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::unit_description | ( | ) | [inline, virtual] |
Definition at line 296 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::unit_hold_position | ( | ) | [inline, virtual] |
Definition at line 292 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::unit_list | ( | ) | [inline, virtual] |
Definition at line 315 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::update_shroud_now | ( | ) | [inline, virtual] |
Definition at line 323 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::user_command | ( | ) | [inline, virtual] |
Definition at line 328 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::whisper | ( | ) | [inline, virtual] |
Definition at line 309 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::whiteboard_bump_down_action | ( | ) | [inline, virtual] |
Definition at line 347 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::whiteboard_bump_up_action | ( | ) | [inline, virtual] |
Definition at line 346 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::whiteboard_delete_action | ( | ) | [inline, virtual] |
Definition at line 345 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::whiteboard_execute_action | ( | ) | [inline, virtual] |
Definition at line 343 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::whiteboard_execute_all_actions | ( | ) | [inline, virtual] |
Definition at line 344 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::whiteboard_suppose_dead | ( | ) | [inline, virtual] |
Definition at line 348 of file hotkeys.hpp.
Referenced by execute_command().

| virtual void hotkey::command_executor::whiteboard_toggle | ( | ) | [inline, virtual] |
Definition at line 342 of file hotkeys.hpp.
Referenced by execute_command().

| Generated by doxygen 1.7.1 on Thu May 24 2012 01:24:33 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |