16 #define GETTEXT_DOMAIN "wesnoth-lib"
35 static std::string wid =
"file_progress";
46 auto& label_widget = find_widget<label>(
"message");
48 label_widget.set_use_markup(
true);
51 find_widget<button>(
"placeholder").set_active(
false);
58 auto now = clock::now();
68 find_widget<progress_bar>(
"progress").set_percentage(value);
void update_progress(unsigned value)
file_progress(const std::string &title, const std::string &message)
std::chrono::time_point< clock > update_time_
Main class to show messages to the user.
The popup class shows windows that are shown non-modal.
#define REGISTER_WINDOW(id)
Registers a window.
std::chrono::milliseconds get_frame_length()
Returns the length of one display frame, in milliseconds.
void draw()
Trigger a draw cycle.