15 #define GETTEXT_DOMAIN "wesnoth-lib"
29 , hotkey_id_(hotkey_id)
36 connect_signal<event::SDL_RAW_EVENT>(
hotkey::hotkey_ptr new_binding_
const std::string & hotkey_id_
void sdl_event_callback(const SDL_Event &event)
virtual void pre_show() override
Actions to be taken before showing the window.
Abstract base class for all modal dialogs.
void set_retval(const int retval, const bool close_window=true)
Sets there return value of the window.
REGISTER_DIALOG(editor_edit_unit)
@ OK
Dialog was closed with the OK button.
hotkey_ptr create_hotkey(const std::string &id, const SDL_Event &event)
Create a new hotkey item for a command from an SDL_Event.
bool is_hotkeyable_event(const SDL_Event &event)