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

void ImageFrameSocketHandler::send_marker_view_renamed ( const string &  new_id,
const string &  old_id,
void *  src,
MarkerView item 
)

Send a message indicating that a MarkerView has been renamed

Parameters:
new_id the new_id of the object
old_id the old_id of the object
src the identity of the object that initiated the change
item the MarkerView which has been renamed

Definition at line 747 of file imageframe_socket_handler.cc.

References compose_marker_item_desc(), read_result(), and send_message().

{
      if(this == src || src == 0)
      {
            // ie the change originated from us, then dont send any message back
            return ;
      }
      
      // ctreate a message buffer
      std::ostringstream msgBuffer ;
      msgBuffer << std::setfill('0') ;
      
      // add the msg type
      msgBuffer << ardourvis::RENAME_ITEM << ardourvis::MARKER_ITEM ;
      
      this->compose_marker_item_desc(item, msgBuffer) ;
      
      // add the old id and length
      msgBuffer << std::setw(3) << old_id.length() ;
      msgBuffer << old_id ;
      
      send_message(msgBuffer.str()) ;
      
      // XXX should do something with the return
      read_result();
}


Generated by  Doxygen 1.6.0   Back to index