c&p debug
[ardour.git] / gtk2_ardour / automation_time_axis.h
index 76e687da0de7f1a20aaf2f2a108713d8ef1a4eb1..7fc9c2575aaf2879adfa7f05e6a0e87c45148315 100644 (file)
@@ -58,6 +58,7 @@ class AutomationTimeAxisView : public TimeAxisView {
                                boost::shared_ptr<ARDOUR::Route>,
                                boost::shared_ptr<ARDOUR::Automatable>,
                                boost::shared_ptr<ARDOUR::AutomationControl>,
+                               Evoral::Parameter,
                                PublicEditor&,
                                TimeAxisView& parent,
                                bool show_regions,
@@ -105,6 +106,9 @@ class AutomationTimeAxisView : public TimeAxisView {
 
        boost::shared_ptr<ARDOUR::AutomationControl> control()    { return _control; }
        boost::shared_ptr<AutomationController>      controller() { return _controller; }
+       Evoral::Parameter parameter () const {
+               return _parameter;
+       }
 
        ArdourCanvas::Item* base_item () const {
                return _base_rect;
@@ -117,14 +121,19 @@ class AutomationTimeAxisView : public TimeAxisView {
        }
 
   protected:
-       boost::shared_ptr<ARDOUR::Route> _route; ///< Parent route
-       boost::shared_ptr<ARDOUR::AutomationControl> _control; ///< Control
-       boost::shared_ptr<ARDOUR::Automatable> _automatable; ///< Control owner, maybe = _route
-
+       /** parent route */
+       boost::shared_ptr<ARDOUR::Route> _route;
+       /** control; 0 if we are editing region-based automation */
+       boost::shared_ptr<ARDOUR::AutomationControl> _control;
+       /** control owner; may be _route, or 0 if we are editing region-based automation */
+       boost::shared_ptr<ARDOUR::Automatable> _automatable;
+       /** controller owner; 0 if we are editing region-based automation */
        boost::shared_ptr<AutomationController> _controller;
+       Evoral::Parameter _parameter;
 
        ArdourCanvas::SimpleRect* _base_rect;
        boost::shared_ptr<AutomationLine> _line;
+
        /** AutomationStreamView if we are editing region-based automation (for MIDI), otherwise 0 */
        AutomationStreamView* _view;