16 #define GETTEXT_DOMAIN "wesnoth-lib"
33 const
bool title_use_markup,
35 const
bool message_use_markup,
36 const std::
string&
image)
38 , hide_title_(title.empty())
39 , hide_image_(
image.empty())
41 register_label(
"title",
true, title, title_use_markup);
42 register_label(
"message",
true,
message, message_use_markup);
43 register_image(
"image",
true,
image);
49 widget& title = find_widget<widget>(
"title");
62 const std::string&
image,
63 const bool message_use_markup,
64 const bool title_use_markup)
67 title, title_use_markup,
message, message_use_markup,
image);
73 const std::string&
image,
74 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() override
Actions to be taken before showing the window.
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.