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

void ImageFrameSocketHandler::handle_rename_message ( const char *  msg  )  [private]

Handle rename item requests

Parameters:
msg the received message

Definition at line 908 of file imageframe_socket_handler.cc.

References get_message_part(), handle_rename_imageframe_time_axis(), handle_rename_imageframe_view(), handle_rename_marker_time_axis(), handle_rename_marker_view(), and send_return_failure().

Referenced by image_socket_callback().

{
      // handle the renaming of an item message
      // determine the object type to rename based upon characters 2-3
      
      std::string oType = get_message_part(2,2,msg) ;
      
      if(oType == ardourvis::IMAGEFRAME_TIME_AXIS)
      {
            this->handle_rename_imageframe_time_axis(msg) ;
      }
      else if (oType == ardourvis::MARKER_TIME_AXIS)
      {
            this->handle_rename_marker_time_axis(msg) ;
      }
      else if (oType == ardourvis::IMAGEFRAME_ITEM)
      {
            this->handle_rename_imageframe_view(msg) ;
      }
      else if (oType == ardourvis::MARKER_ITEM)
      {
            this->handle_rename_marker_view(msg) ;
      }
      else
      {
            std::string errMsg = "Unknown Object type during Rename: " ; 
            errMsg.append(oType) ;
            send_return_failure(errMsg) ;
      }
}


Generated by  Doxygen 1.6.0   Back to index