Various tweaks to the port matrix: open to full size; remove buttons and move their...
[ardour.git] / gtk2_ardour / automation_region_view.h
index 55c1b77d6404d7f0dd8724428ce195d17fa3de97..e6531821d3959dc593f4a1db6a4377bc5514a8d3 100644 (file)
@@ -40,7 +40,7 @@ class AutomationRegionView : public RegionView
 {
 public:
        AutomationRegionView(ArdourCanvas::Group*,
-                            AutomationTimeAxisViewPtr,
+                            AutomationTimeAxisView&,
                             boost::shared_ptr<ARDOUR::Region>,
                             const Evoral::Parameter& parameter,
                             boost::shared_ptr<ARDOUR::AutomationList>,
@@ -51,15 +51,14 @@ public:
        
        void init (Gdk::Color const & basic_color, bool wfd);
        
-       inline AutomationTimeAxisViewPtr automation_view() const {
-               return boost::dynamic_pointer_cast<AutomationTimeAxisView> (trackview);
-       }
+       inline AutomationTimeAxisView* automation_view() const
+               { return dynamic_cast<AutomationTimeAxisView*>(&trackview); }
        
        void set_line(boost::shared_ptr<AutomationLine> line) { _line = line; }
        boost::shared_ptr<AutomationLine> line() { return _line; }
        
        // We are a ghost.  Meta ghosts?  Crazy talk.
-       virtual GhostRegion* add_ghost(TimeAxisViewPtr) { return 0; }
+       virtual GhostRegion* add_ghost(TimeAxisView&) { return NULL; }
        
        void set_height (double);
        void reset_width_dependent_items(double pixel_width);