Logo Search packages:      
Sourcecode: ardour version File versions  Download package

MarkerTimeAxis::MarkerTimeAxis ( PublicEditor &  ed,
ARDOUR::Session &  sess,
ArdourCanvas::Canvas canvas,
const string &  name,
TimeAxisView tav 
)

Constructs a new MarkerTimeAxis

Parameters:
ed the PublicEditor
sess the current session
canvas the parent canvas item
name the name/id of this time axis
tav the associated track view that this MarkerTimeAxis is marking up

Definition at line 60 of file marker_time_axis.cc.

References VisualTimeAxis::label_view(), marked_time_axis, marker_menu, set_height(), VisualTimeAxis::time_axis_name, AxisView::unique_random_color(), and view.

      : AxisView(sess),
        VisualTimeAxis(name, ed, sess, canvas)
{
      /* the TimeAxisView these markers are associated with */
      marked_time_axis = tav ;
      
      _color = unique_random_color() ;
      time_axis_name = name ;

      selection_group = new Group (*canvas_display);
      selection_group->hide();

      // intialize our data items
      marker_menu = 0 ;

      y_position = -1 ;

      /* create our new marker time axis strip view */
      view = new MarkerTimeAxisView(*this) ;

      // set the initial time axis text label
      label_view() ;
            
      // set the initial height of this time axis
      set_height(hSmall) ;
}


Generated by  Doxygen 1.6.0   Back to index