20 #ifndef GUI_WIDGETS_SETTING_HPP_INCLUDED
21 #define GUI_WIDGETS_SETTING_HPP_INCLUDED
35 struct tgui_definition;
102 const std::vector<tcontrol_definition_ptr>& definitions);
125 std::vector<tcontrol_definition_ptr> definitions;
127 for (
const auto & definition :
128 cfg.
child_range(key ? key : definition_type +
"_definition"))
131 definitions.push_back(
new T(definition));
162 std::vector<twindow_builder::tresolution>::const_iterator
bool new_widgets
Do we wish to use the new library or not.
child_itors child_range(const std::string &key)
unsigned double_click_time
void register_window(const std::string &id)
Registers a window.
GLuint GLuint GLsizei GLenum type
itor second functor(surf, f[1])
std::string sound_button_click
static std::vector< std::string > get_registered_window_list()
Returns a copy of the list of registered windows.
unsigned gamemap_width
The size of the map area, if not available equal to the screen size.
friend std::vector< std::string > & unit_test_registered_window_list()
Definitions for the interface to Wesnoth Markup Language (WML).
std::string sound_slider_adjust
Helper struct to signal that get_window_builder failed.
Special helper class to get the list of registered windows.
void load_widget_definitions(tgui_definition &gui_definition, const std::string &definition_type, const std::vector< tcontrol_definition_ptr > &definitions)
Loads the definitions of a widget.
A class inherited from ttext_box that displays its input as stars.
unsigned repeat_button_repeat_time
void register_widget(const std::string &id, std::function< void(tgui_definition &gui_definition, const std::string &definition_type, const config &cfg, const char *key)> functor)
Registers a widgets.
t_string has_helptip_message
std::vector< twindow_builder::tresolution >::const_iterator get_window_builder(const std::string &type)
Returns an interator to the requested builder.
tresolution_definition_ptr get_control(const std::string &control_type, const std::string &definition)
Contains the general settings which have a default.
unsigned gamemap_x_offset
The offset between the left edge of the screen and the gamemap.
unsigned screen_width
The screen resolution should be available for all widgets since their drawing method will depend on i...
std::string sound_toggle_panel_click
boost::intrusive_ptr< tresolution_definition_ > tresolution_definition_ptr
void load_settings()
Loads the setting for the theme.
unsigned popup_show_delay
These are copied from the active gui.
A config object defines a single node in a WML file, with access to child nodes.
std::string sound_toggle_button_click
std::vector< ttip > get_tips()
GLsizei const GLcharARB ** string