- group = new ArdourCanvas::Group (parent);
-
- init (it_name, spu, base_color, start, duration, vis, true);
-
+/**
+ * Construct a new TimeAxisViewItem.
+ *
+ * @param it_name the unique name of this item
+ * @param parent the parent canvas group
+ * @param tv the TimeAxisView we are going to be added to
+ * @param spu samples per unit
+ * @param base_color
+ * @param start the start point of this item
+ * @param duration the duration of this item
+ * @param recording true if this is a recording region view
+ * @param automation true if this is an automation region view
+ */
+TimeAxisViewItem::TimeAxisViewItem(
+ const string & it_name, ArdourCanvas::Item& parent, TimeAxisView& tv, double spu, uint32_t base_color,
+ framepos_t start, framecnt_t duration, bool recording, bool automation, Visibility vis
+ )
+ : trackview (tv)
+ , frame_position (-1)
+ , item_name (it_name)
+ , selection_frame (0)
+ , _height (1.0)
+ , _recregion (recording)
+ , _automation (automation)
+ , _dragging (false)
+ , _width (0.0)
+{
+ init (&parent, spu, base_color, start, duration, vis, true, true);