From 049c11de58704790bc652dcb9acfb207af4a8ebe Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 1 Nov 2014 18:22:29 +0100 Subject: Slider Controller API Change Prepare to allow BarController (with Spinbutton) to translate internal/interface values for the SpinBox. (The change is irrelevant for the fader/slider itself which always use the [user-]interface value) --- gtk2_ardour/gain_meter.cc | 4 ++-- gtk2_ardour/option_editor.cc | 2 +- gtk2_ardour/processor_box.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index 00c64d02f6..daba2e77d4 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -98,9 +98,9 @@ GainMeterBase::GainMeterBase (Session* s, bool horizontal, int fader_length, int _width = Wide; if (horizontal) { - gain_slider = manage (new HSliderController (&gain_adjustment, fader_length, fader_girth)); + gain_slider = manage (new HSliderController (&gain_adjustment, boost::shared_ptr(), fader_length, fader_girth)); } else { - gain_slider = manage (new VSliderController (&gain_adjustment, fader_length, fader_girth)); + gain_slider = manage (new VSliderController (&gain_adjustment, boost::shared_ptr(), fader_length, fader_girth)); } level_meter = new LevelMeterHBox(_session); diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index ef09b22898..137d6b98c8 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -267,7 +267,7 @@ FaderOption::FaderOption (string const & i, string const & n, sigc::slot , _get (g) , _set (s) { - _db_slider = manage (new HSliderController (&_db_adjustment, 115, 18)); + _db_slider = manage (new HSliderController (&_db_adjustment, boost::shared_ptr(), 115, 18)); _label.set_text (n + ":"); _label.set_alignment (0, 0.5); diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 1fdad0801d..84507b250c 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -493,7 +493,7 @@ ProcessorEntry::toggle_panner_link () ProcessorEntry::Control::Control (boost::shared_ptr c, string const & n) : _control (c) , _adjustment (gain_to_slider_position_with_max (1.0, Config->get_max_gain()), 0, 1, 0.01, 0.1) - , _slider (&_adjustment, 0, 13) + , _slider (&_adjustment, boost::shared_ptr(), 0, 13) , _slider_persistant_tooltip (&_slider) , _button (ArdourButton::led_default_elements) , _ignore_ui_adjustment (false) -- cgit v1.2.3