Olive
voideffect.h
1 /***
2 
3  Olive - Non-Linear Video Editor
4  Copyright (C) 2019 Olive Team
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 ***/
20 
21 #ifndef VOIDEFFECT_H
22 #define VOIDEFFECT_H
23 
24 /* VoidEffect is a placeholder used when Olive is unable to find an effect
25  * requested by a loaded project. It displays a missing effect so the user knows
26  * an effect is missing, and stores the XML project data verbatim so that it
27  * isn't lost if the user saves over the project.
28  */
29 
30 #include "project/effect.h"
31 
32 class VoidEffect : public Effect {
33  Q_OBJECT
34 public:
35  VoidEffect(Clip* c, const QString& n);
36 
37  virtual Effect* copy(Clip* c) override;
38  virtual void load(QXmlStreamReader &stream) override;
39  virtual void save(QXmlStreamWriter &stream) override;
40 private:
41  QByteArray bytes;
42  EffectMeta void_meta;
43 };
44 
45 #endif // VOIDEFFECT_H
Definition: effect.h:166
Definition: effect.h:47
Definition: voideffect.h:32
Definition: clip.h:53