-AutomationTimeAxisView::AutomationTimeAxisView (Session& s, boost::shared_ptr<Route> r, PublicEditor& e, TimeAxisView& rent,
- ArdourCanvas::Canvas& canvas, const string & nom,
- const string & state_name, const string & nomparent)
-
- : AxisView (s),
- TimeAxisView (s, e, &rent, canvas),
- route (r),
+Pango::FontDescription* AutomationTimeAxisView::name_font = 0;
+bool AutomationTimeAxisView::have_name_font = false;
+const string AutomationTimeAxisView::state_node_name = "AutomationChild";
+
+
+/** \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,
+ 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->parameter(), c)),
+ _base_rect (0),
+ _view (show_regions ? new AutomationStreamView(*this) : NULL),