#include <mp_options.hpp>
Public Member Functions | |
slider_display (CVideo &video, const config &cfg) | |
~slider_display () | |
void | layout (int &xpos, int &ypos, int w, int border_size, gui::scrollpane *pane) |
void | set_value (const config::attribute_value &val) |
config::attribute_value | get_value () const |
void | process_event () |
virtual void | hide_children (bool hide) |
Public Member Functions inherited from mp::options::option_display | |
virtual | ~option_display () |
Private Member Functions | |
void | update_label () |
Private Attributes | |
gui::slider * | slider_ |
gui::label * | label_ |
int | last_value_ |
const std::string | label_text_ |
Definition at line 62 of file mp_options.hpp.
Definition at line 400 of file mp_options.cpp.
References gui::widget::set_help_string(), gui::slider::set_increment(), gui::slider::set_max(), gui::slider::set_min(), gui::slider::set_value(), slider_, and update_label().
mp::options::slider_display::~slider_display | ( | ) |
Definition at line 416 of file mp_options.cpp.
|
virtual |
Implements mp::options::option_display.
Definition at line 436 of file mp_options.cpp.
References slider_, and gui::slider::value().
|
virtual |
Implements mp::options::option_display.
Definition at line 451 of file mp_options.cpp.
References gui::widget::hide(), label_, and slider_.
|
virtual |
Implements mp::options::option_display.
Definition at line 422 of file mp_options.cpp.
References gui::scrollpane::add_widget(), gui::widget::height(), label_, gui::widget::set_width(), and slider_.
|
virtual |
Reimplemented from mp::options::option_display.
Definition at line 443 of file mp_options.cpp.
References last_value_, slider_, update_label(), and gui::slider::value().
|
virtual |
Implements mp::options::option_display.
Definition at line 431 of file mp_options.cpp.
References gui::slider::set_value(), slider_, and config::attribute_value::to_int().
|
private |
Definition at line 457 of file mp_options.cpp.
References label_, label_text_, last_value_, and gui::label::set_text().
Referenced by process_event(), and slider_display().
|
private |
Definition at line 78 of file mp_options.hpp.
Referenced by hide_children(), layout(), update_label(), and ~slider_display().
|
private |
Definition at line 80 of file mp_options.hpp.
Referenced by update_label().
|
private |
Definition at line 79 of file mp_options.hpp.
Referenced by process_event(), and update_label().
|
private |
Definition at line 77 of file mp_options.hpp.
Referenced by get_value(), hide_children(), layout(), process_event(), set_value(), slider_display(), and ~slider_display().