cleanup a couple of audio file format names as reported by libsndfile
[ardour.git] / gtk2_ardour / redirect_automation_line.cc
index 0879bd28a459fd6b0b3699a94b8605465f0b2c57..c0c8ad49e71c7debb0f762dcac9ac5f46b1cad8d 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #include "public_editor.h"
 
 using namespace std;
 using namespace ARDOUR;
-
-RedirectAutomationLine::RedirectAutomationLine (string name, Redirect& rd, uint32_t port, Session& s,
-                                               TimeAxisView& tv, Gnome::Canvas::Group& parent,
-                                               AutomationList& l,
-                                               sigc::slot<bool,GdkEvent*,ControlPoint*> point_handler,
-                                               sigc::slot<bool,GdkEvent*,AutomationLine*> line_handler),
-
-       : AutomationLine (name, tv, parent, l, point_handler, line_handler),
+using namespace PBD;
+
+RedirectAutomationLine::RedirectAutomationLine (const string & name, Redirect& rd, uint32_t port, Session& s,
+                                               
+                                               TimeAxisView& tv, ArdourCanvas::Group& parent,
+                                               
+                                               AutomationList& l)
+  
+        : AutomationLine (name, tv, parent, l),
          session (s),
          _redirect (rd),
          _port (port)
 {
-       set_verbose_cursor_uses_gain_mapping (false);
+        set_verbose_cursor_uses_gain_mapping (false);
 
        PluginInsert *pi;
        Plugin::ParameterDescriptor desc;
@@ -54,18 +54,18 @@ RedirectAutomationLine::RedirectAutomationLine (string name, Redirect& rd, uint3
                /*NOTREACHED*/
        }
 
-       pi->plugin().get_parameter_descriptor (_port, desc);
+       pi->plugin()->get_parameter_descriptor (_port, desc);
 
        upper = desc.upper;
        lower = desc.lower;
+       range = upper - lower;
 
        if (desc.toggled) {
-               no_draw = true;
+               auto_is_boolean = true;
                return;
        }
 
-       no_draw = false;
-       range = upper - lower;
+       auto_is_boolean = false;
 
        /* XXX set min/max for underlying curve ??? */
 }