rewrote undo system #72

This commit is contained in:
itsmattkc
2018-07-13 19:07:01 +01:00
parent 5297d4a5f7
commit c957780a9c
17 changed files with 613 additions and 1350 deletions
+3 -12
View File
@@ -16,26 +16,17 @@ public:
int add_clip(Clip* c);
int clip_count();
Clip* get_clip(int i);
void delete_clip(int i);
int split_clip(int pre, long frame);
void replace_clip(int i, Clip* c);
void get_track_limits(int* video_tracks, int* audio_tracks);
void destroy_clip(int i, bool del);
long getEndFrame();
int width;
int height;
float frame_rate;
int audio_frequency;
int audio_layout;
void reset_undo();
void undo_add_current();
void undo();
void redo();
int audio_layout;
private:
QVector<Clip*> clips;
void set_undo();
QVector<QVector<Clip*>*> undo_stack;
int undo_pointer;
};
// static variable for the currently active sequence