From d7bd270aa10b3a8669223debe4c1b572ae876e2b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 27 Jun 2007 15:51:50 +0000 Subject: Big ol' automation refactor. Things with automation parameters now inherit from Automatable, which handles serialization, fetching/adding/removing parameters, etc. Use AutomationList everywhere instead of Curve, make Curve a member of AutomationList instead (towards other types of "Curve" needed for CC, among other things). Work towards MIDI CC sending "automation" tracks. git-svn-id: svn://localhost/ardour2/trunk@2069 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_canvas_events.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk2_ardour/editor_canvas_events.cc') diff --git a/gtk2_ardour/editor_canvas_events.cc b/gtk2_ardour/editor_canvas_events.cc index 40bef304c5..e1ed2d2fa1 100644 --- a/gtk2_ardour/editor_canvas_events.cc +++ b/gtk2_ardour/editor_canvas_events.cc @@ -35,6 +35,7 @@ #include "region_gain_line.h" #include "automation_gain_line.h" #include "automation_pan_line.h" +#include "automation_midi_cc_line.h" #include "automation_time_axis.h" #include "redirect_automation_line.h" #include "canvas_impl.h" @@ -592,6 +593,8 @@ Editor::canvas_control_point_event (GdkEvent *event, ArdourCanvas::Item* item, C type = PanAutomationControlPointItem; } else if (dynamic_cast (&cp->line) != 0) { type = RedirectAutomationControlPointItem; + } else if (dynamic_cast (&cp->line) != 0) { + type = MidiCCAutomationControlPointItem; } else { return false; } @@ -612,6 +615,8 @@ Editor::canvas_line_event (GdkEvent *event, ArdourCanvas::Item* item, Automation type = PanAutomationLineItem; } else if (dynamic_cast (al) != 0) { type = RedirectAutomationLineItem; + } else if (dynamic_cast (al) != 0) { + type = MidiCCAutomationLineItem; } else { return false; } -- cgit v1.2.3