26 lines
711 B
C++
26 lines
711 B
C++
#ifndef VOIDEFFECT_H
|
|
#define VOIDEFFECT_H
|
|
|
|
/* VoidEffect is a placeholder used when Olive is unable to find an effect
|
|
* requested by a loaded project. It displays a missing effect so the user knows
|
|
* an effect is missing, and stores the XML project data verbatim so that it
|
|
* isn't lost if the user saves over the project.
|
|
*/
|
|
|
|
#include "project/effect.h"
|
|
|
|
class VoidEffect : public Effect {
|
|
Q_OBJECT
|
|
public:
|
|
VoidEffect(Clip* c, const QString& n);
|
|
|
|
virtual Effect* copy(Clip* c) override;
|
|
virtual void load(QXmlStreamReader &stream) override;
|
|
virtual void save(QXmlStreamWriter &stream) override;
|
|
private:
|
|
QByteArray bytes;
|
|
EffectMeta void_meta;
|
|
};
|
|
|
|
#endif // VOIDEFFECT_H
|