- std::string const & i,
- std::string const & n,
- Gtk::Adjustment *adj,
- sigc::slot<float> g,
- sigc::slot<bool, float> s
- )
- : Option (i, n)
- , _get (g)
- , _set (s)
- , _adj (adj)
- {
- _label = Gtk::manage (new Gtk::Label (n + ":"));
- _label->set_alignment (0, 0.5);
- _hscale = Gtk::manage (new Gtk::HScale(*_adj));
- _adj->signal_value_changed().connect (sigc::mem_fun (*this, &HSliderOption::changed));
- }
-
- void set_state_from_config () {
- if (_adj) _adj->set_value (_get());
- }
-
- void changed () {
- if (_adj) _set (_adj->get_value ());
- }
-
- void add_to_page (OptionEditorPage* p)
- {
- add_widgets_to_page (p, _label, _hscale);
- }
+ std::string const& i,
+ std::string const& n,
+ sigc::slot<float> g,
+ sigc::slot<bool, float> s,
+ double lower, double upper,
+ double step_increment = 1,
+ double page_increment = 10,
+ double mult = 1.0,
+ bool logarithmic = false
+ );