Logo Search packages:      
Sourcecode: ardour version File versions

MarkerTimeAxis * ImageFrameTimeAxis::remove_named_marker_time_axis ( const string &  track_id,
void *  src 
)

Removes the named markerTimeAxis from those associated with this ImageFrameTimeAxis

Parameters:
track_id the track id of the MarkerTimeAxis to remove
src the identity of the object that initiated the change
Returns:
the removed MarkerTimeAxis

Definition at line 374 of file imageframe_time_axis.cc.

References MarkerTimeAxisRemoved, and VisualTimeAxis::name().

{
      MarkerTimeAxis* mta = 0 ;
      
      for(MarkerTimeAxisList::iterator i = marker_time_axis_list.begin(); i != marker_time_axis_list.end(); ++i)
      {
            if (((MarkerTimeAxis*)*i)->name() == track_id)
            {
                  mta = ((MarkerTimeAxis*)*i) ;
                  
                  // the iterator is invalid after this call, so we can no longer use it as is.
                  marker_time_axis_list.erase(i) ;
                  
                   MarkerTimeAxisRemoved(mta->name(), src) ; /* EMIT_SIGNAL */
                  break ;
            }
      }
      
      return(mta) ;
}


Generated by  Doxygen 1.6.0   Back to index