21 #ifndef HOTKEY_HANDLER_HPP_INCL_
22 #define HOTKEY_HANDLER_HPP_INCL_
26 #include <boost/scoped_ptr.hpp>
27 #include <boost/shared_ptr.hpp>
29 namespace events {
class menu_handler; }
30 namespace events {
class mouse_handler; }
133 void show_menu(
const std::vector<std::string>& items_arg,
int xloc,
int yloc,
bool context_menu,
display& disp);
hotkey_handler(play_controller &, saved_game &)
virtual void scroll_up(bool on)
virtual void unit_description()
void expand_wml_commands(std::vector< std::string > &items)
Replaces "wml" in items with all active WML menu items for the current field.
virtual hotkey::ACTION_STATE get_action_state(hotkey::HOTKEY_COMMAND command, int index) const
virtual void deselect_hex()
virtual void replay_skip_animation() override
virtual void show_chat_log()
boost::scoped_ptr< wmi_pager > wml_command_pager_
virtual void scroll_left(bool on)
virtual void goto_leader()
virtual void status_table()
virtual void preferences()
Stores all information related to functions that can be bound to hotkeys.
virtual void move_action()
const std::vector< std::string > items
virtual std::string get_action_image(hotkey::HOTKEY_COMMAND, int index) const
play_controller & play_controller_
References to parent object / constituents.
bool in_context_menu(hotkey::HOTKEY_COMMAND command) const
Determines whether the command should be in the context menu or not.
std::vector< std::string > savenames_
virtual void toggle_grid()
virtual void scroll_down(bool on)
This class stores all the data for a single 'side' (in game nomenclature).
virtual void terrain_description()
virtual void scroll_right(bool on)
virtual void select_and_action()
events::menu_handler & menu_handler_
virtual void save_replay()
bool viewing_team_is_playing() const
void expand_autosaves(std::vector< std::string > &items)
virtual bool can_execute_command(const hotkey::hotkey_command &command, int index=-1) const
Check if a command can be executed.
const team & viewing_team() const
virtual void toggle_accelerated_speed()
static const std::string wml_menu_hotkey_prefix
virtual void show_enemy_moves(bool ignore_units)
virtual void select_hex()
virtual void toggle_ellipses()
virtual void load_autosave(const std::string &filename)
virtual void show_statistics()
boost::shared_ptr< const game_events::wml_menu_item > const_item_ptr
A smart pointer used when retrieving menu items.
events::mouse_handler & mouse_handler_
void show_menu(const std::vector< std::string > &items_arg, int xloc, int yloc, bool context_menu, display &disp)
Handling of system events.
std::vector< const_item_ptr > wml_commands_
game_display * gui() const
virtual void left_mouse_click()
void toggle_skipping_replay()
game_display & get_display()
Get a reference to a display member a derived class uses.
virtual bool execute_command(const hotkey::hotkey_command &command, int index=-1, bool press=true)
virtual void cycle_back_units()
virtual void right_mouse_click()
virtual void objectives()
GLsizei const GLcharARB ** string
virtual void cycle_units()