15 #define GETTEXT_DOMAIN "wesnoth-lib"
25 #define LOG_SCOPE_HEADER get_control_type() + " [" + id() + "] " + __func__
26 #define LOG_HEADER LOG_SCOPE_HEADER + ':'
52 percentage = std::min<unsigned>(percentage, 100);
59 c.set_variable(
"percentage",
variant(percentage));
82 DBG_GUI_P <<
"Parsing progress bar " <<
id <<
'\n';
84 load_resolutions<tresolution>(cfg);
142 tbuilder_progress_bar::tbuilder_progress_bar(
const config& cfg)
153 DBG_GUI_G <<
"Window builder: placed progress bar '" <<
id
154 <<
"' with definition '" <<
definition <<
"'.\n";
Define the common log macros for the gui toolkit.
bool disable_click_dismiss() const override
See twidget::disable_click_dismiss.
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
void set_percentage(unsigned percentage)
GLuint GLuint GLsizei GLenum type
tresolution(const config &cfg)
virtual unsigned get_state() const override
See tcontrol::get_state.
Base class of a resolution, contains the common keys for a resolution.
A class inherited from ttext_box that displays its input as stars.
void init_control(tcontrol *control) const
std::string definition
Parameters for the control.
unsigned percentage_
The percentage done.
Contains the state info for a resolution.
std::vector< tcanvas > & canvas()
tprogress_bar_definition(const config &cfg)
virtual const std::string & get_control_type() const override
See tcontrol::get_control_type.
virtual bool get_active() const override
See tcontrol::get_active.
std::vector< tstate_definition > state
config & child(const std::string &key, int n=0)
Returns the nth child with the given key, or a reference to an invalid config if there is none...
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
Contains the implementation details for lexical_cast and shouldn't be used directly.