-const string AutomationTimeAxisView::state_node_name = "AutomationChild";
-
-AutomationTimeAxisView::AutomationTimeAxisView (Session& s, boost::shared_ptr<Route> r,
- boost::shared_ptr<Automatable> a, boost::shared_ptr<AutomationControl> c,
- PublicEditor& e, TimeAxisView& parent, bool show_regions,
- ArdourCanvas::Canvas& canvas, const string & nom, const string & nomparent)
-
- : AxisView (s),
- TimeAxisView (s, e, &parent, canvas),
- _route (r),
- _control (c),
- _automatable (a),
- _controller(AutomationController::create(a, c->list(), c)),
- _base_rect (0),
- _view (show_regions ? new AutomationStreamView(*this) : NULL),
- _name (nom),
- height_button (_("h")),
- clear_button (_("clear")),
- auto_button (X_("")) /* force addition of a label */
+
+
+/** \a a the automatable object this time axis is to display data for.
+ * For route/track automation (e.g. gain) pass the route for both \r and \a.
+ * For route child (e.g. plugin) automation, pass the child for \a.
+ * For region automation (e.g. MIDI CC), pass null for \a.
+ */
+AutomationTimeAxisView::AutomationTimeAxisView (
+ Session* s,
+ boost::shared_ptr<Route> r,
+ boost::shared_ptr<Automatable> a,
+ boost::shared_ptr<AutomationControl> c,
+ Evoral::Parameter p,
+ PublicEditor& e,
+ TimeAxisView& parent,
+ bool show_regions,
+ ArdourCanvas::Canvas& canvas,
+ const string & nom,
+ const string & nomparent
+ )
+ : AxisView (s)
+ , TimeAxisView (s, e, &parent, canvas)
+ , _route (r)
+ , _control (c)
+ , _automatable (a)
+ , _parameter (p)
+ , _base_rect (0)
+ , _view (show_regions ? new AutomationStreamView (*this) : 0)
+ , _name (nom)
+ , auto_button (X_("")) /* force addition of a label */
+ , _show_regions (show_regions)