37 mgr_.changed_event_.attach_handler(
this);
47 message_ = find_widget<label>(
"lblMessage",
false,
true);
49 button& quit_button = find_widget<button>(
"btn_quit_game");
51 connect_signal_mouse_left_click(quit_button,
62 assert(event_name ==
"user_choice_update");
virtual bool detach_handler(observer *obs)
Abstract base class for all modal dialogs.
virtual void pre_show() override
Actions to be taken before showing the window.
user_choice_manager & mgr_
virtual void handle_generic_event(const std::string &event_name) override
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
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.