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

void ImageFrameSocketHandler::send_imageframe_view_renamed ( const string &  new_id,
const string &  old_id,
void *  src,
ImageFrameView item 
)

Send a message indicating that an ImageFrameView has been renamed

Parameters:
item the ImageFrameView which has been renamed
src the identity of the object that initiated the change
item the renamed item

Definition at line 603 of file imageframe_socket_handler.cc.

References compose_imageframe_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::IMAGEFRAME_ITEM ;
      
      this->compose_imageframe_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