15 #define GETTEXT_DOMAIN "wesnoth-lib" 30 : hotkey_id_(hotkey_id)
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
This file contains the settings handling of the widget library.
hotkey::hotkey_ptr new_binding_
const std::string & hotkey_id_
void connect_signal(const F &func, const queue_position position=back_child)
Adds a callback to the appropriate queue based on event type.
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)
void sdl_event_callback(const SDL_Event &event)
Dialog was closed with the OK button.
void set_retval(int retval)
Convenience wrapper to set the window's exit code.
base class of top level items, the only item which needs to store the final canvases to draw on...