16 #define GETTEXT_DOMAIN "wesnoth-lib"
31 #define LOG_SCOPE_HEADER get_control_type() + " [" + id() + "] " + __func__
32 #define LOG_HEADER LOG_SCOPE_HEADER + ':'
47 connect_signal<event::MOUSE_ENTER>(std::bind(
49 connect_signal<event::MOUSE_LEAVE>(std::bind(
52 connect_signal<event::LEFT_BUTTON_DOWN>(std::bind(
54 connect_signal<event::LEFT_BUTTON_UP>(std::bind(
68 connect_signal<event::LEFT_BUTTON_DOWN>(
signal);
74 disconnect_signal<event::LEFT_BUTTON_DOWN>(
signal);
140 [
this,
window](
unsigned int) {
176 load_resolutions<resolution>(cfg);
195 builder_repeating_button::builder_repeating_button(
const config& cfg)
202 auto widget = std::make_unique<repeating_button>(*
this);
204 DBG_GUI_G <<
"Window builder: placed repeating button '" <<
id
205 <<
"' with definition '" <<
definition <<
"'.";
A config object defines a single node in a WML file, with access to child nodes.
bool fire(const ui_event event, widget &target)
Fires an event which has no extra parameters.
base class of top level items, the only item which needs to store the final canvases to draw on.
void mouse_capture(const bool capture=true)
static std::string _(const char *str)
Define the common log macros for the gui toolkit.
ui_event
The event sent to the dispatcher.
dispatcher_callback<> signal
Used for events in event_category::general.
std::string sound_button_click
unsigned repeat_button_repeat_time
std::size_t add_timer(const uint32_t interval, const std::function< void(std::size_t id)> &callback, const bool repeat)
Adds a new timer.
bool remove_timer(const std::size_t id)
Removes a timer.
Contains the implementation details for lexical_cast and shouldn't be used directly.
void play_UI_sound(const std::string &files)
This file contains the settings handling of the widget library.
Base class of a resolution, contains the common keys for a resolution.
std::vector< state_definition > state
Contains the gui2 timer routines.
Add a special kind of assert to validate whether the input from WML doesn't contain any problems that...
#define VALIDATE_WML_CHILD(cfg, key, message)