-SliderController::SliderController (Glib::RefPtr<Gdk::Pixbuf> image,
- Gtk::Adjustment *adj, int orientation,
- boost::shared_ptr<Controllable> c,
- bool with_numeric)
-
- : PixFader (image, *adj, orientation),
- binding_proxy (c),
- spin (*adj, 0, 2)
-{
- spin.set_name ("SliderControllerValue");
- spin.set_size_request (70,-1); // should be based on font size somehow
- spin.set_numeric (true);
- spin.set_snap_to_ticks (false);
-}
-
-void
-SliderController::set_value (float v)
+SliderController::SliderController (Gtk::Adjustment *adj, boost::shared_ptr<PBD::Controllable> mc, int orientation, int fader_length, int fader_girth)
+ : PixFader (*adj, orientation, fader_length, fader_girth)
+ , _ctrl (mc)
+ , _ctrl_adj (adj)
+ , _spin_adj (0, 0, 1.0, .1, .01)
+ , _spin (_spin_adj, 0, 2)
+ , _ctrl_ignore (false)
+ , _spin_ignore (false)