43 const bool message_use_markup,
44 const bool title_use_markup)
85 const std::string& caption);
179 const std::string& button_caption =
"",
180 const bool auto_close =
true,
181 const bool message_use_markup =
false,
182 const bool title_use_markup =
false);
201 bool message_use_markup =
false,
202 bool title_use_markup =
false);
211 bool message_use_markup =
false);
Main class to show messages to the user.
bool message_use_markup_
Whether to enable formatting markup for the dialog message.
message(const std::string &title, const std::string &message, const bool auto_close, const bool message_use_markup, const bool title_use_markup)
void set_auto_close(const bool auto_close)
std::string title_
The title for the dialog.
void set_title(const std::string &title)
void set_message(const std::string &message)
std::string message_
The message to show to the user.
virtual void post_show() override
Actions to be taken after the window has been shown.
button_style
Selects the style of the buttons to be shown.
@ yes_no_buttons
Shows a yes and no button.
@ close_button
Shows a close button.
@ ok_button
Shows an ok button.
@ ok_cancel_buttons
Shows an ok and cancel button.
@ auto_close
Enables auto close.
@ cancel_button
Shows a cancel button.
void set_button_caption(const button_id button, const std::string &caption)
std::vector< button_status > buttons_
Holds a pointer to the buttons.
std::string image_
The image which is shown in the dialog.
bool title_use_markup_
Whether to enable formatting markup for the dialog title.
void set_button_visible(const button_id button, const widget::visibility visible)
bool auto_close_
Does the window need to use click_dismiss when the dialog doesn't need a scrollbar.
void set_image(const std::string &image)
virtual const std::string & window_id() const override
The ID of the window to build.
virtual void pre_show() override
Actions to be taken before showing the window.
void set_button_retval(const button_id button, const int retval)
Abstract base class for all modal dialogs.
Various uncategorised dialogs.
void show_error_message(const std::string &msg, bool message_use_markup)
Shows an error message to the user.
void show_message(const std::string &title, const std::string &msg, const std::string &button_caption, const bool auto_close, const bool message_use_markup, const bool title_use_markup)
Shows a message to the user.
retval
Default window/dialog return values.
Functions to load and save images from/to disk.
Helper to implement private functions without modifying the header.