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

void ImageFrameSocketHandler::send_marker_view_removed ( const string &  item_id,
void *  src,
MarkerView item 
)

Send a message indicating that a MarkerView 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 MarkerView which has been removed

Definition at line 782 of file imageframe_socket_handler.cc.

References TimeAxisViewItem::get_time_axis_view(), AxisView::name(), read_result(), and send_message().

{
      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::MARKER_ITEM ;
      
      // add the id length, and the id
      std::string track_id = item->get_time_axis_view().name() ;
      msgBuffer << std::setw(3) << track_id.length() << track_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