43 const bool message_use_markup,
44 const bool title_use_markup)
85 const std::string& caption);
117 virtual void post_show(window& window)
override;
158 virtual const std::string&
window_id()
const override;
179 const std::string& button_caption =
"",
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);
Helper to implement private functions without modifying the header.
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.
void set_title(const std::string &title)
void set_button_caption(const button_id button, const std::string &caption)
virtual const std::string & window_id() const override
The ID of the window to build.
Main class to show messages to the user.
Shows an ok and cancel button.
std::vector< button_status > buttons_
Holds a pointer to the buttons.
bool message_use_markup_
Whether to enable formatting markup for the dialog message.
std::string title_
The title for the dialog.
button_style
Selects the style of the buttons to be shown.
bool title_use_markup_
Whether to enable formatting markup for the dialog title.
void set_image(const std::string &image)
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
std::string image_
The image which is shown in the dialog.
Shows a yes and no button.
std::string message_
The message to show to the user.
Various uncategorised dialogs.
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)
void set_message(const std::string &message)
void set_button_retval(const button_id button, const int retval)
Abstract base class for all modal dialogs.
Functions to load and save images from/to disk.
void show_error_message(const std::string &msg, bool message_use_markup)
Shows an error message to the user.
retval
Default window/dialog return values.
bool auto_close_
Does the window need to use click_dismiss when the dialog doesn't need a scrollbar.
void set_button_visible(const button_id button, const widget::visibility visible)
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
base class of top level items, the only item which needs to store the final canvases to draw on...