prepare Slider API cleanup
This commit is contained in:
parent
001e4ca684
commit
540a12119b
|
@ -46,8 +46,6 @@ AutomationController::AutomationController(boost::shared_ptr<Automatable> printe
|
|||
assert (_printer);
|
||||
|
||||
set_name (X_("PluginSlider")); // FIXME: get yer own name!
|
||||
set_style (BarController::LeftToRight);
|
||||
set_use_parent (true);
|
||||
|
||||
StartGesture.connect (sigc::mem_fun(*this, &AutomationController::start_touch));
|
||||
StopGesture.connect (sigc::mem_fun(*this, &AutomationController::end_touch));
|
||||
|
|
|
@ -78,9 +78,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, false));
|
||||
gain_slider = manage (new HSliderController (&gain_adjustment, fader_length, fader_girth));
|
||||
} else {
|
||||
gain_slider = manage (new VSliderController (&gain_adjustment, fader_length, fader_girth, false));
|
||||
gain_slider = manage (new VSliderController (&gain_adjustment, fader_length, fader_girth));
|
||||
}
|
||||
|
||||
level_meter = new LevelMeterHBox(_session);
|
||||
|
|
|
@ -644,8 +644,6 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
|
|||
|
||||
control_ui->controller->set_size_request (200, req.height);
|
||||
control_ui->controller->set_name (X_("PluginSlider"));
|
||||
control_ui->controller->set_style (BarController::LeftToRight);
|
||||
control_ui->controller->set_use_parent (true);
|
||||
control_ui->controller->set_logarithmic (desc.logarithmic);
|
||||
|
||||
control_ui->controller->StartGesture.connect (sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::start_touch), control_ui));
|
||||
|
|
|
@ -103,8 +103,6 @@ LatencyGUI::LatencyGUI (Latent& l, framepos_t sr, framepos_t psz)
|
|||
adjustment.signal_value_changed().connect (sigc::mem_fun (*this, &LatencyGUI::finish));
|
||||
|
||||
bc.set_size_request (-1, 25);
|
||||
bc.set_style (BarController::LeftToRight);
|
||||
bc.set_use_parent (true);
|
||||
bc.set_name (X_("PluginSlider"));
|
||||
|
||||
set_spacing (12);
|
||||
|
|
|
@ -254,7 +254,7 @@ FaderOption::FaderOption (string const & i, string const & n, sigc::slot<gain_t>
|
|||
, _get (g)
|
||||
, _set (s)
|
||||
{
|
||||
_db_slider = manage (new HSliderController (&_db_adjustment, 115, 18, false));
|
||||
_db_slider = manage (new HSliderController (&_db_adjustment, 115, 18));
|
||||
|
||||
_label.set_text (n + ":");
|
||||
_label.set_alignment (0, 0.5);
|
||||
|
|
|
@ -493,7 +493,7 @@ ProcessorEntry::toggle_panner_link ()
|
|||
ProcessorEntry::Control::Control (boost::shared_ptr<AutomationControl> 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, false)
|
||||
, _slider (&_adjustment, 0, 13)
|
||||
, _slider_persistant_tooltip (&_slider)
|
||||
, _button (ArdourButton::led_default_elements)
|
||||
, _ignore_ui_adjustment (false)
|
||||
|
|
Loading…
Reference in New Issue
Block a user