Logo Search packages:      
Sourcecode: ardour version File versions

bool ImageFrameView::set_duration ( nframes_t  dur,
void *  src 
) [virtual]

Sets the duration of this item

Parameters:
dur the new duration of this item
src the identity of the object that initiated the change
Returns:
true if the duration change was succesful, false otherwise

Reimplemented from TimeAxisViewItem.

Definition at line 214 of file imageframe_view.cc.

References TimeAxisView::editor, TimeAxisViewItem::get_duration(), imageframe, TimeAxisViewItem::set_duration(), and TimeAxisViewItem::trackview.

Referenced by ImageFrameSocketHandler::handle_imageframe_view_duration_update(), and ImageFrameTimeAxisView::set_imageframe_duration_sec().

{
      /* do the standard stuff */
      bool ret = TimeAxisViewItem::set_duration(dur, src) ;
      
      // eveything went ok with the standard stuff?
      if(ret)
      {
            /* handle setting the sizes of our canvas itesm based on the new duration */
            imageframe->property_drawwidth() = trackview.editor.frame_to_pixel(get_duration());
      }
      
      return(ret) ;
}


Generated by  Doxygen 1.6.0   Back to index