#include <slider.hpp>
Public Member Functions | |
tbuilder_slider (const config &cfg) | |
twidget * | build () const |
Public Member Functions inherited from gui2::implementation::tbuilder_control | |
tbuilder_control (const config &cfg) | |
virtual twidget * | build (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 () |
Public Member Functions inherited from reference_counted_object | |
reference_counted_object () | |
reference_counted_object (const reference_counted_object &) | |
reference_counted_object & | operator= (const reference_counted_object &) |
virtual | ~reference_counted_object () |
void | add_ref () const |
void | dec_ref () const |
int | refcount () const |
Private Attributes | |
unsigned | best_slider_length_ |
int | minimum_value_ |
int | maximum_value_ |
unsigned | step_size_ |
int | value_ |
t_string | minimum_value_label_ |
t_string | maximum_value_label_ |
std::vector< t_string > | value_labels_ |
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... | |
Public Attributes inherited from gui2::implementation::tbuilder_control | |
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 |
Protected Member Functions inherited from reference_counted_object | |
void | turn_reference_counting_off () const |
Definition at line 224 of file slider.hpp.
|
explicit |
Definition at line 434 of file slider.cpp.
References config::child(), config::child_range(), gui2::implementation::tbuilder_control::label, and value_labels_.
|
virtual |
Implements gui2::tbuilder_widget.
Definition at line 456 of file slider.cpp.
References _(), best_slider_length_, DBG_GUI_G, gui2::implementation::tbuilder_control::definition, gui2::tscrollbar_::get_item_count(), gui2::implementation::tbuilder_control::init_control(), maximum_value_, maximum_value_label_, minimum_value_, minimum_value_label_, gui2::tslider::set_best_slider_length(), gui2::tslider::set_maximum_value(), gui2::tslider::set_maximum_value_label(), gui2::tslider::set_minimum_value(), gui2::tslider::set_minimum_value_label(), gui2::tscrollbar_::set_step_size(), gui2::tslider::set_value(), gui2::tslider::set_value_labels(), step_size_, VALIDATE, value_, and value_labels_.
|
private |
Definition at line 233 of file slider.hpp.
Referenced by build().
|
private |
Definition at line 235 of file slider.hpp.
Referenced by build().
|
private |
Definition at line 240 of file slider.hpp.
Referenced by build().
|
private |
Definition at line 234 of file slider.hpp.
Referenced by build().
|
private |
Definition at line 239 of file slider.hpp.
Referenced by build().
|
private |
Definition at line 236 of file slider.hpp.
Referenced by build().
|
private |
Definition at line 237 of file slider.hpp.
Referenced by build().
|
private |
Definition at line 242 of file slider.hpp.
Referenced by build(), and tbuilder_slider().