16 #define GETTEXT_DOMAIN "wesnoth-lib" 28 #define ERR_CFG LOG_STREAM(warn, log_config) 61 const point& mouse,
const SDL_Rect& source_rect)
62 : modeless_dialog(window_id)
64 find_widget<styled_widget>(
this,
"label",
false).set_label(message);
79 static std::unique_ptr<tooltip>
tip;
81 void show(
const std::string& window_id,
84 const SDL_Rect& source_rect)
90 tip.reset(
new tooltip(window_id, message, mouse, source_rect));
97 ERR_CFG <<
"Tip with the requested id '" << window_id
98 <<
"' doesn't exist, fall back to the default.";
99 tip.reset(
new tooltip(
"tooltip_large", message, mouse, source_rect));
106 ERR_CFG <<
"Default tooltip doesn't exist, no message shown.";
Main class to show messages to the user.
Helper struct to signal that get_window_builder failed.
This file contains the settings handling of the widget library.
static std::unique_ptr< tooltip > tip
The popup class shows windows that are shown non-modal.
#define REGISTER_WINDOW(id)
Registers a window.
std::string tooltip
Shown when hovering over an entry in the filter's drop-down list.
void show(const std::string &window_id, const t_string &message, const point &mouse, const SDL_Rect &source_rect)
Shows a tip.