Logo Search packages:      
Sourcecode: ardour version File versions

ImageFrameTimeAxisGroup * ImageFrameTimeAxisView::add_imageframe_group ( std::string  group_id,
void *  src 
)

Adds an ImageFrameTimeAxisGroup to the list of items upon this time axis view helper the new ImageFrameTimeAxisGroup is returned

Parameters:
group_id the unique id of the new group
src the identity of the object that initiated the change

Definition at line 202 of file imageframe_time_axis_view.cc.

References sigc::bind(), sigc::signal7< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7, T_accumulator >::connect(), get_named_imageframe_group(), ImageFrameTimeAxisGroup::GoingAway, ImageFrameGroupAdded, sigc::mem_fun(), and remove_imageframe_group().

Referenced by ImageFrameSocketHandler::handle_insert_imageframe_group().

{
      ImageFrameTimeAxisGroup* iftag = 0 ;
      
      //check that there is not already a group with that id
      if(get_named_imageframe_group(group_id) != 0)
      {
            // iftag = 0 ;
      }
      else
      {
            iftag = new ImageFrameTimeAxisGroup(*this, group_id) ;

            imageframe_groups.push_front(iftag) ;
      
            iftag->GoingAway.connect(bind(mem_fun(*this,&ImageFrameTimeAxisView::remove_imageframe_group), iftag, (void*)this)) ;
      
             ImageFrameGroupAdded(iftag, src) ; /* EMIT_SIGNAL */
      }

      return(iftag) ;
}


Generated by  Doxygen 1.6.0   Back to index