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

void ImageFrameSocketHandler::send_imageframe_view_removed ( const string &  item_id,
void *  src,
ImageFrameView item 
)

Send a message indicating that an ImageFrameView item has been removed message

Parameters:
item_id the id of the item that was removed
src the identity of the object that initiated the change
item the removed item
Send a message indicating that an ImageFrameView item has been removed message

Parameters:
item_id the id of the item that was removed
item the removed item

Definition at line 637 of file imageframe_socket_handler.cc.

References ImageFrameTimeAxisGroup::get_group_name(), ImageFrameView::get_time_axis_group(), ImageFrameTimeAxisGroup::get_view(), VisualTimeAxis::name(), read_result(), send_message(), and ImageFrameTimeAxisView::trackview().

Referenced by handle_insert_imageframe_view().

{
      if(this == src || src == 0)
      {
            // ie the change originated from us, then dont send any message back
            return ;
      }
      
      // create a message buffer
      std::ostringstream msgBuffer ;
      msgBuffer << std::setfill('0') ;
      
      // add the msg type
      msgBuffer << ardourvis::REMOVE_ITEM << ardourvis::IMAGEFRAME_ITEM ;
      
      // add the id length, and the id
      ImageFrameTimeAxisGroup* parentGroup = item->get_time_axis_group() ;
      std::string group_id = parentGroup->get_group_name() ;
      std::string track_id = parentGroup->get_view().trackview().name() ;
      msgBuffer << std::setw(3) << track_id.length() << track_id ;
      msgBuffer << std::setw(3) << group_id.length() << group_id ;
      msgBuffer << std::setw(3) << item_id.length() << item_id ;
      
      send_message(msgBuffer.str()) ;

      // XXX should do something with the return
      read_result();
}


Generated by  Doxygen 1.6.0   Back to index