00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef MOVEEDGE_H
00024 #define MOVEEDGE_H
00025
00026 #include "Command.h"
00027 #include "defines.h"
00028 #include <QByteArray>
00029
00030 class AudioClip;
00031 class SheetView;
00032 class AudioClipView;
00033
00034 class MoveEdge : public Command
00035 {
00036 public :
00037 MoveEdge(AudioClipView* cv, SheetView* sv, QByteArray whichEdge);
00038 ~MoveEdge();
00039
00040 int begin_hold();
00041 int finish_hold();
00042 void cancel_action();
00043 int prepare_actions();
00044 int do_action();
00045 int undo_action();
00046
00047 int jog();
00048
00049 private :
00050 AudioClip* m_clip;
00051 SheetView* m_sv;
00052 QByteArray m_edge;
00053 TimeRef m_originalPos;
00054 TimeRef m_newPos;
00055 TimeRef m_otherEdgePos;
00056 };
00057
00058 #endif
00059