42 mgr_.changed_event_.attach_handler(
this);
55 button& quit_button = find_widget<button>(
56 &
window,
"btn_quit_game",
false);
69 assert(event_name ==
"user_choice_update");
virtual bool detach_handler(observer *obs)
Abstract base class for all modal dialogs.
window * get_window()
Returns a pointer to the dialog's window.
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
user_choice_manager & mgr_
virtual void handle_generic_event(const std::string &event_name) override
base class of top level items, the only item which needs to store the final canvases to draw on.
void close()
Requests to close the window.
static void quit_to_title()
events::generic_event changed_event_
bool waiting() const
Note: currently finished() does not imply !waiting() so you may need to check both.
const std::string & wait_message() const
Contains the exception interfaces used to signal completion of a scenario, campaign or turn.
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
void connect_signal_mouse_left_click(dispatcher &dispatcher, const signal &signal)
Connects a signal handler for a left mouse button click.
This file contains the settings handling of the widget library.