15 #define GETTEXT_DOMAIN "wesnoth-lib"
40 if(connection_->finished()) {
43 size_t completed, total;
44 completed = connection_->current();
45 total = connection_->total();
47 find_widget<tprogress_bar>(&(window_.get()),
"progress",
false)
48 .set_percentage((completed * 100.) / total);
54 find_widget<tlabel>(&(window_.get()),
"numeric_progress",
false)
56 window_->invalidate_layout();
65 : connection_(&connection)
66 , pump_monitor_(connection_)
83 = find_widget<tlabel>(&window,
"subtitle",
false);
std::string si_string(double input, bool base2, std::string unit)
Convert into a string with an SI-postfix.
void post_show(twindow &window)
Inherited from tdialog.
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Dialog that tracks network transmissions.
void pre_show(twindow &window)
Inherited from tdialog.
REGISTER_DIALOG(label_settings)
virtual void set_label(const t_string &label)
gui2::tnetwork_transmission::pump_monitor pump_monitor_
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
virtual void set_use_markup(bool use_markup)
static UNUSEDNOWARN std::string _(const char *str)
Dialog is closed with ok button.
void set_restore(const bool restore)
connection_data * connection_
tfield_label * register_label(const std::string &id, const bool mandatory, const std::string &text, const bool use_markup=false)
Registers a new control as a label.
Handling of system events.
tnetwork_transmission(connection_data &connection, const std::string &title, const std::string &subtitle)
Standard logging facilities (interface).
void set_subtitle(const std::string &)
boost::optional< twindow & > window_
GLsizei const GLcharARB ** string
std::string subtitle_
The subtitle for the dialog.