The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
gui2::implementation::tbuilder_control Struct Reference

#include <control.hpp>

Inheritance diagram for gui2::implementation::tbuilder_control:
Inheritance graph

Public Member Functions

 tbuilder_control (const config &cfg)
 
virtual twidgetbuild (const treplacements &replacements) const override
 
void init_control (tcontrol *control) const
 
- Public Member Functions inherited from gui2::tbuilder_widget
 tbuilder_widget (const config &cfg)
 
virtual ~tbuilder_widget ()
 
virtual twidgetbuild () const =0
 
- Public Member Functions inherited from reference_counted_object
 reference_counted_object ()
 
 reference_counted_object (const reference_counted_object &)
 
reference_counted_objectoperator= (const reference_counted_object &)
 
virtual ~reference_counted_object ()
 
void add_ref () const
 
void dec_ref () const
 
int refcount () const
 

Public Attributes

std::string definition
 Parameters for the control. More...
 
t_string label
 
t_string tooltip
 
t_string help
 
bool use_tooltip_on_label_overflow
 
- Public Attributes inherited from gui2::tbuilder_widget
std::string id
 Parameters for the widget. More...
 
std::string linked_group
 
int debug_border_mode
 
unsigned debug_border_color
 

Additional Inherited Members

- Public Types inherited from gui2::tbuilder_widget
typedef std::map< std::string,
boost::intrusive_ptr
< tbuilder_widget > > 
treplacements
 The replacements type is used to define replacement types. More...
 
- Protected Member Functions inherited from reference_counted_object
void turn_reference_counting_off () const
 

Detailed Description

Definition at line 517 of file control.hpp.

Constructor & Destructor Documentation

gui2::implementation::tbuilder_control::tbuilder_control ( const config cfg)

Definition at line 652 of file control.cpp.

References _(), DBG_GUI_P, definition, t_string::empty(), label, tooltip, and VALIDATE_WITH_DEV_MESSAGE.

Member Function Documentation

twidget * gui2::implementation::tbuilder_control::build ( const treplacements replacements) const
overridevirtual

Implements gui2::tbuilder_widget.

Definition at line 692 of file control.cpp.

References gui2::tbuilder_widget::build().

void gui2::implementation::tbuilder_control::init_control ( tcontrol control) const
Deprecated:
The control can initialize itself.

Definition at line 675 of file control.cpp.

References gui2::tbuilder_widget::debug_border_color, gui2::tbuilder_widget::debug_border_mode, definition, label, gui2::tbuilder_widget::linked_group, gui2::twidget::set_debug_border_colour(), gui2::twidget::set_debug_border_mode(), gui2::tcontrol::set_definition(), gui2::tcontrol::set_help_message(), gui2::twidget::set_id(), gui2::tcontrol::set_label(), gui2::twidget::set_linked_group(), gui2::tcontrol::set_tooltip(), gui2::tcontrol::set_use_tooltip_on_label_overflow(), tooltip, and use_tooltip_on_label_overflow.

Referenced by gui2::implementation::tbuilder_scrollbar_panel::build(), gui2::implementation::tbuilder_vertical_scrollbar::build(), gui2::implementation::tbuilder_progress_bar::build(), gui2::implementation::tbuilder_horizontal_scrollbar::build(), gui2::implementation::tbuilder_password_box::build(), gui2::implementation::tbuilder_panel::build(), gui2::implementation::tbuilder_spacer::build(), gui2::implementation::tbuilder_drawing::build(), gui2::implementation::tbuilder_image::build(), gui2::implementation::tbuilder_unit_preview_pane::build(), gui2::implementation::tbuilder_scroll_label::build(), gui2::implementation::tbuilder_minimap::build(), gui2::implementation::tbuilder_stacked_widget::build(), gui2::implementation::tbuilder_button::build(), gui2::implementation::tbuilder_repeating_button::build(), gui2::implementation::tbuilder_label::build(), gui2::implementation::tbuilder_toggle_button::build(), gui2::implementation::tbuilder_combobox::build(), gui2::implementation::tbuilder_tree_view::build(), gui2::implementation::tbuilder_multi_page::build(), gui2::implementation::tbuilder_toggle_panel::build(), gui2::implementation::tbuilder_slider::build(), gui2::implementation::tbuilder_text_box::build(), gui2::implementation::tbuilder_listbox::build(), and gui2::implementation::tbuilder_horizontal_listbox::build().

Member Data Documentation

std::string gui2::implementation::tbuilder_control::definition

Parameters for the control.

Definition at line 530 of file control.hpp.

Referenced by gui2::implementation::tbuilder_scrollbar_panel::build(), gui2::implementation::tbuilder_vertical_scrollbar::build(), gui2::implementation::tbuilder_progress_bar::build(), gui2::implementation::tbuilder_horizontal_scrollbar::build(), gui2::implementation::tbuilder_password_box::build(), gui2::implementation::tbuilder_panel::build(), gui2::implementation::tbuilder_spacer::build(), gui2::implementation::tbuilder_drawing::build(), gui2::implementation::tbuilder_image::build(), gui2::implementation::tbuilder_unit_preview_pane::build(), gui2::implementation::tbuilder_scroll_label::build(), gui2::implementation::tbuilder_minimap::build(), gui2::implementation::tbuilder_stacked_widget::build(), gui2::implementation::tbuilder_repeating_button::build(), gui2::implementation::tbuilder_button::build(), gui2::implementation::tbuilder_label::build(), gui2::implementation::tbuilder_toggle_button::build(), gui2::implementation::tbuilder_combobox::build(), gui2::implementation::tbuilder_tree_view::build(), gui2::implementation::tbuilder_multi_page::build(), gui2::implementation::tbuilder_toggle_panel::build(), gui2::implementation::tbuilder_slider::build(), gui2::implementation::tbuilder_text_box::build(), gui2::implementation::tbuilder_listbox::build(), gui2::implementation::tbuilder_horizontal_listbox::build(), init_control(), tbuilder_control(), and gui2::implementation::tbuilder_scrollbar_panel::tbuilder_scrollbar_panel().

t_string gui2::implementation::tbuilder_control::help

Definition at line 533 of file control.hpp.

t_string gui2::implementation::tbuilder_control::label
t_string gui2::implementation::tbuilder_control::tooltip

Definition at line 532 of file control.hpp.

Referenced by init_control(), and tbuilder_control().

bool gui2::implementation::tbuilder_control::use_tooltip_on_label_overflow

Definition at line 534 of file control.hpp.

Referenced by init_control().


The documentation for this struct was generated from the following files: