Logo Search packages:      
Sourcecode: ardour version File versions

void ImageFrameSocketHandler::send_imageframe_time_axis_renamed ( const string &  new_id,
const string &  old_id,
void *  src,
ImageFrameTimeAxis time_axis 
)

Sends a message indicating that an ImageFrameTimeAxis has been renamed

Parameters:
new_id the new name, or Id, of the track
old_id the old name, or Id, of the track
src the identity of the object that initiated the change
time_axis the time axis that has changed

Definition at line 331 of file imageframe_socket_handler.cc.

References read_result(), and send_message().

Referenced by handle_insert_imageframe_time_axis().

{
      // ENSURE_GUI_THREAD(SigC::bind (mem_fun(*this, &ImageFrameSocketHandler::send_imageframe_time_axis_renamed), new_id, old_id, src, time_axis));
      
      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::RENAME_ITEM << ardourvis::IMAGEFRAME_TIME_AXIS ;
      
      // add the old id and length
      msgBuffer << std::setw(3) << old_id.length() ;
      msgBuffer << old_id ;
      
      // add the new id and length
      msgBuffer << std::setw(3) << new_id.length() ;
      msgBuffer << new_id ;
      
      send_message(msgBuffer.str()) ;

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


Generated by  Doxygen 1.6.0   Back to index