15 #define GETTEXT_DOMAIN "wesnoth-lib"
32 #define LOG_SCOPE_HEADER get_control_type() + " [" + id() + "] " + __func__
33 #define LOG_HEADER LOG_SCOPE_HEADER + ':'
44 connect_signal<event::LEFT_BUTTON_DOWN>(
57 = find_widget<tlabel>(
content_grid(),
"_label",
false,
true);
71 = find_widget<tlabel>(
content_grid(),
"_label",
false,
true);
134 DBG_GUI_P <<
"Parsing scroll label " <<
id <<
'\n';
136 load_resolutions<tresolution>(cfg);
232 tbuilder_scroll_label::tbuilder_scroll_label(
const config& cfg)
234 , vertical_scrollbar_mode(
236 , horizontal_scrollbar_mode(
238 , wrap_on(cfg[
"wrap"].to_bool(true))
258 widget->finalize_setup();
260 DBG_GUI_G <<
"Window builder: placed scroll label '" <<
id
261 <<
"' with definition '" <<
definition <<
"'.\n";
Define the common log macros for the gui toolkit.
GLuint GLuint GLsizei GLenum type
void set_can_wrap(const bool wrap)
tresolution_definition_ptr config()
virtual void set_label(const t_string &label)
tscrollbar_container::tscrollbar_mode get_scrollbar_mode(const std::string &scrollbar_mode)
Returns the scrollbar mode flags.
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.
virtual void set_use_markup(bool use_markup)
static UNUSEDNOWARN std::string _(const char *str)
#define VALIDATE(cond, message)
The macro to use for the validation of WML.
void init_grid(const boost::intrusive_ptr< tbuilder_grid > &grid_builder)
Initializes and builds the grid.
const t_string & label() const
tevent
The event send to the dispatcher.
Contains the state info for a resolution.
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...
twidget * find(const std::string &id, const bool must_be_active) override
See twidget::find.
void keyboard_capture(twidget *widget)
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.