16 #define GETTEXT_DOMAIN "wesnoth-lib" 35 const
bool title_use_markup,
37 const
bool message_use_markup,
39 : hide_title_(title.empty()), 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>(&window,
"title",
false);
54 widget&
image = find_widget<widget>(&window,
"image",
false);
62 const std::string&
image,
63 const bool message_use_markup,
64 const bool title_use_markup,
65 const bool restore_background)
68 title, title_use_markup, message, message_use_markup, image);
75 const std::string&
image,
76 const bool message_use_markup)
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
Main class to show messages 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, const bool restore_background)
Shows a transient message to the user.
static std::string _(const char *str)
#define LOG_STREAM(level, domain)
bool show(const unsigned auto_close_time=0)
Shows the window.
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
This file contains the settings handling of the widget library.
Various uncategorised dialogs.
Shows a transient message.
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.
Functions to load and save images from/to disk.
Standard logging facilities (interface).
base class of top level items, the only item which needs to store the final canvases to draw on...
void set_restore(const bool restore)