finished new/load/save

This commit is contained in:
itsmattkc
2018-06-10 23:39:28 -07:00
parent 94fae972cf
commit 093b68cb67
28 changed files with 441 additions and 154 deletions
-1
View File
@@ -38,7 +38,6 @@ Clip* Clip::copy() {
}
void Clip::init() {
qDebug() << "init was called";
reset();
clip_in = timeline_in = timeline_out = track = undeletable = 0;
texture = NULL;
+1
View File
@@ -29,6 +29,7 @@ void Effect::field_changed() {
}
Effect* Effect::copy() {return NULL;}
void Effect::load(QXmlStreamReader* stream) {}
void Effect::save(QXmlStreamWriter *stream) {}
void Effect::process_gl(int*, int*) {}
+2
View File
@@ -7,6 +7,7 @@ class QWidget;
class CollapsibleWidget;
struct Clip;
class QXmlStreamReader;
class QXmlStreamWriter;
enum EffectTypes { EFFECT_TYPE_INVALID, EFFECT_TYPE_VIDEO, EFFECT_TYPE_AUDIO };
@@ -24,6 +25,7 @@ public:
Clip* parent_clip;
virtual Effect* copy();
virtual void load(QXmlStreamReader* stream);
virtual void save(QXmlStreamWriter* stream);
virtual void process_gl(int* anchor_x, int* anchor_y);
+3
View File
@@ -162,3 +162,6 @@ void Sequence::redo() {
set_undo(undo_pointer);
}
}
// static variable for the currently active sequence
Sequence* sequence = NULL;
+3
View File
@@ -38,4 +38,7 @@ private:
int undo_stack_start;
};
// static variable for the currently active sequence
extern Sequence* sequence;
#endif // SEQUENCE_H