15 #define GETTEXT_DOMAIN "wesnoth-lib"
28 #define LOG_SCOPE_HEADER get_control_type() + " [" + id() + "] " + __func__
29 #define LOG_HEADER LOG_SCOPE_HEADER + ':'
41 connect_signal<event::MOUSE_ENTER>(std::bind(
43 connect_signal<event::MOUSE_LEAVE>(std::bind(
46 connect_signal<event::LEFT_BUTTON_DOWN>(std::bind(
48 connect_signal<event::LEFT_BUTTON_UP>(std::bind(
62 connect_signal<event::LEFT_BUTTON_DOWN>(signal);
68 disconnect_signal<event::LEFT_BUTTON_DOWN>(signal);
140 [
this, window](
unsigned int) {
174 DBG_GUI_P <<
"Parsing repeating button " <<
id <<
'\n';
176 load_resolutions<tresolution>(cfg);
245 tbuilder_repeating_button::tbuilder_repeating_button(
const config& cfg)
256 DBG_GUI_G <<
"Window builder: placed repeating button '" <<
id
257 <<
"' with definition '" <<
definition <<
"'.\n";
Define the common log macros for the gui toolkit.
GLuint GLuint GLsizei GLenum type
std::string sound_button_click
bool remove_timer(const size_t id)
Removes a timer.
A left mouse button down event 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.
unsigned repeat_button_repeat_time
bool fire(const tevent event, twidget &target)
Fires an event which has no extra parameters.
std::function< void(tdispatcher &dispatcher, const tevent event, bool &handled, bool &halt)> tsignal_function
Callback function signature.
tevent
The event send to the dispatcher.
Contains the state info for a resolution.
Contains the gui2 timer routines.
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.
size_t add_timer(const Uint32 interval, const std::function< void(size_t id)> &callback, const bool repeat)
Adds a new timer.
GLsizei const GLcharARB ** string
Contains the implementation details for lexical_cast and shouldn't be used directly.