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

guint32 TimeAxisView::show_at ( double  y,
int &  nth,
Gtk::VBox parent 
) [virtual, inherited]

Display this TrackView as the nth component of the parent box, at y.

Parameters:
y 
nth 
parent the parent component
Returns:
the height of this TrackView

Definition at line 216 of file time_axis_view.cc.

References Gtk::Box::pack_start(), Gtk::Box::reorder_child(), and Gtk::Widget::show().

{
      if (control_parent) {
            control_parent->reorder_child (controls_frame, nth);
      } else {    
            control_parent = parent;
            parent->pack_start (controls_frame, false, false);
            parent->reorder_child (controls_frame, nth);
      }

      order = nth;

      if (y_position != y) {
            canvas_display->property_y () = y;
            canvas_background->property_y () = y;
            /* silly canvas */
            canvas_display->move (0.0, 0.0);
            canvas_background->move (0.0, 0.0);
            y_position = y;
      }

      canvas_background->raise_to_top ();
      canvas_display->raise_to_top ();

      if (_marked_for_display) {
            controls_frame.show ();
            controls_ebox.show ();
            canvas_background->show ();
      }

      _hidden = false;
      
      effective_height = current_height();

      /* now show children */
      
      for (vector<TimeAxisView*>::iterator i = children.begin(); i != children.end(); ++i) {
            
            if (canvas_item_visible ((*i)->canvas_display)) {
                  ++nth;
                  effective_height += (*i)->show_at (y + effective_height, nth, parent);
            }
      }

      return effective_height;
}


Generated by  Doxygen 1.6.0   Back to index