16 #define GETTEXT_DOMAIN "wesnoth-lib"
35 const
bool title_use_markup,
37 const
bool message_use_markup,
38 const std::
string&
image)
40 , hide_title_(title.empty())
41 , hide_image_(
image.empty())
43 register_label(
"title",
true, title, title_use_markup);
44 register_label(
"message",
true,
message, message_use_markup);
45 register_image(
"image",
true,
image);
51 widget& title = find_widget<widget>(&
window,
"title",
false);
64 const std::string&
image,
65 const bool message_use_markup,
66 const bool title_use_markup)
69 title, title_use_markup,
message, message_use_markup,
image);
75 const std::string&
image,
76 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)
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
Various uncategorised dialogs.
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.
This file contains the settings handling of the widget library.