15 #define GETTEXT_DOMAIN "wesnoth-lib"
33 #define LOG_SCOPE_HEADER get_control_type() + " [" + id() + "] " + __func__
34 #define LOG_HEADER LOG_SCOPE_HEADER + ':'
45 connect_signal<event::MOUSE_ENTER>(
47 connect_signal<event::MOUSE_LEAVE>(
50 connect_signal<event::LEFT_BUTTON_DOWN>(std::bind(
52 connect_signal<event::LEFT_BUTTON_UP>(
54 connect_signal<event::LEFT_BUTTON_CLICK>(std::bind(
154 DBG_GUI_P <<
"Parsing button " <<
id <<
'\n';
156 load_resolutions<tresolution>(cfg);
240 tbuilder_button::tbuilder_button(
const config& cfg)
242 , retval_id_(cfg[
"return_value_id"])
243 , retval_(cfg[
"return_value"])
255 DBG_GUI_G <<
"Window builder: placed button '" <<
id
256 <<
"' with definition '" <<
definition <<
"'.\n";
Define the common log macros for the gui toolkit.
GLuint GLuint GLsizei GLenum type
std::string sound_button_click
int get_retval(const std::string &retval_id, const int retval, const std::string &id)
Returns the return value for a widget.
Base class of a resolution, contains the common keys for a resolution.
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.
void init_control(tcontrol *control) const
std::string definition
Parameters for the control.
void set_retval(const int retval, const bool close_window=true)
Sets there return value of the window.
tevent
The event send to the dispatcher.
Contains the state info for a resolution.
Base class for all visible items.
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...
void play_UI_sound(const std::string &files)
void mouse_capture(const bool capture=true)
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.