basic undo support added

This commit is contained in:
itsmattkc
2018-06-07 20:40:56 -07:00
parent 6130d0d91e
commit 544c77828a
8 changed files with 80 additions and 4 deletions
+10
View File
@@ -1,6 +1,8 @@
#ifndef SEQUENCE_H
#define SEQUENCE_H
#define UNDO_LIMIT 100
#include <QVector>
#include "project/clip.h"
@@ -25,8 +27,16 @@ public:
float frame_rate;
int audio_frequency;
int audio_layout;
void undo_add_current();
void undo();
void redo();
private:
QList<Clip> clips;
QVector<QList<Clip>> undo_stack;
int undo_pointer;
int undo_stack_start;
};
#endif // SEQUENCE_H