From 3fa8127d5879d59e1f9aac51af10a3474d8fd611 Mon Sep 17 00:00:00 2001 From: Adrian Knoth Date: Wed, 30 Apr 2014 21:17:49 +0000 Subject: [PATCH] Add ComboOption configuration for default-fade-shape Let the user choose the preferred default fade shape in the editor section of the preference menu. --- gtk2_ardour/rc_option_editor.cc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index 940a601ce9..378057b1b3 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -1569,6 +1569,25 @@ RCOptionEditor::RCOptionEditor () sigc::mem_fun (*_rc_config, &RCConfiguration::set_show_editor_meter) )); + ComboOption* fadeshape = new ComboOption ( + "default-fade-shape", + _("Default fade shape"), + sigc::mem_fun (*_rc_config, + &RCConfiguration::get_default_fade_shape), + sigc::mem_fun (*_rc_config, + &RCConfiguration::set_default_fade_shape) + ); + + fadeshape->add (FadeLinear, + _("Linear (for highly correlated material)")); + fadeshape->add (FadeConstantPower, _("Constant power")); + fadeshape->add (FadeSymmetric, _("Symmetric")); + fadeshape->add (FadeSlow, _("Slow")); + fadeshape->add (FadeFast, _("Fast")); + + add_option (_("Editor"), fadeshape); + + bco = new BoolComboOption ( "use-overlap-equivalency", _("Regions in active edit groups are edited together"), -- 2.30.2