added RCU handling of Session route list, and major use of shared_ptr<T> everywhere...
[ardour.git] / gtk2_ardour / redirect_automation_time_axis.h
index d4e7a46e71096c5cf29f68bcb5da0dd3920ed454..6976dc2358e124dd26ce1baf89e8cfcac2debe15 100644 (file)
@@ -2,6 +2,8 @@
 #define __ardour_gtk_redirect_automation_time_axis_h__
 
 #include <pbd/xml++.h>
+
+#include "canvas.h"
 #include "automation_time_axis.h"
 
 namespace ARDOUR {
@@ -12,18 +14,18 @@ class RedirectAutomationTimeAxisView : public AutomationTimeAxisView
 {
   public:
        RedirectAutomationTimeAxisView (ARDOUR::Session&,
-                                       ARDOUR::Route&,
+                                       boost::shared_ptr<ARDOUR::Route>,
                                        PublicEditor&,
                                        TimeAxisView& parent,
-                                       Gtk::Widget* parent,
+                                       ArdourCanvas::Canvas& canvas,
                                        std::string name,
                                        uint32_t port,
                                        ARDOUR::Redirect& rd,
                                        std::string state_name);
 
        ~RedirectAutomationTimeAxisView();
-
-       void add_automation_event (GtkCanvasItem *item, GdkEvent *event, jack_nframes_t, double);
+       
+       void add_automation_event (ArdourCanvas::Item *item, GdkEvent *event, jack_nframes_t, double);
 
        guint32 show_at (double y, int& nth, Gtk::VBox *parent);
        void hide ();