Add ComboOption configuration for default-fade-shape
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Wed, 30 Apr 2014 21:17:49 +0000 (21:17 +0000)
committerAdrian Knoth <adi@drcomp.erfurt.thur.de>
Thu, 1 May 2014 18:02:19 +0000 (20:02 +0200)
Let the user choose the preferred default fade shape in the editor
section of the preference menu.

gtk2_ardour/rc_option_editor.cc

index 940a601ce99ba808290d26cc715ddc4e70087aad..378057b1b3b67b541a526aef68eda9991eec769e 100644 (file)
@@ -1569,6 +1569,25 @@ RCOptionEditor::RCOptionEditor ()
                     sigc::mem_fun (*_rc_config, &RCConfiguration::set_show_editor_meter)
                     ));
 
+       ComboOption<FadeShape>* fadeshape = new ComboOption<FadeShape> (
+                       "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"),