16 #define GETTEXT_DOMAIN "wesnoth-lib"
34 const
bool title_use_markup,
36 const
bool message_use_markup,
37 const std::
string&
image)
39 , hide_title_(title.empty())
40 , hide_image_(
image.empty())
42 register_label(
"title",
true, title, title_use_markup);
43 register_label(
"message",
true,
message, message_use_markup);
44 register_image(
"image",
true,
image);
50 widget& title = find_widget<widget>(&
window,
"title",
false);
63 const std::string&
image,
64 const bool message_use_markup,
65 const bool title_use_markup)
68 title, title_use_markup,
message, message_use_markup,
image);
74 const std::string&
image,
75 const bool message_use_markup)
Main class to show messages to the user.
Abstract base class for all modal dialogs.
bool show(const unsigned auto_close_time=0)
Shows the window.
Shows a transient message.
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.
static std::string _(const char *str)
Standard logging facilities (interface).
#define LOG_STREAM(level, domain)
Various uncategorised dialogs.
REGISTER_DIALOG(editor_edit_unit)
void show_transient_error_message(const std::string &message, const std::string &image, const bool message_use_markup)
Shows a transient error message to the user.
void show_transient_message(const std::string &title, const std::string &message, const std::string &image, const bool message_use_markup, const bool title_use_markup)
Shows a transient message to the user.
Functions to load and save images from/to disk.