Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
voideffect.h
Go to the documentation of this file.
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 "effects/effect.h"
31 
32 class VoidEffect : public Effect {
33  Q_OBJECT
34 public:
35  VoidEffect(Clip* c, const QString& n);
36 
37  virtual EffectPtr copy(Clip* c) override;
38  virtual void load(QXmlStreamReader &stream) override;
39  virtual void save(QXmlStreamWriter &stream) override;
40 private:
41  QByteArray bytes;
43 };
44 
45 #endif // VOIDEFFECT_H
virtual void load(QXmlStreamReader &stream) override
Definition: voideffect.cpp:54
virtual EffectPtr copy(Clip *c) override
Definition: voideffect.cpp:47
VoidEffect(Clip *c, const QString &n)
Definition: voideffect.cpp:30
Definition: clip.h:56
virtual void save(QXmlStreamWriter &stream) override
Definition: voideffect.cpp:78
Definition: effect.h:52
Definition: voideffect.h:32
std::shared_ptr< Effect > EffectPtr
Definition: effect.h:50
QByteArray bytes
Definition: voideffect.h:41
Definition: effect.h:136
EffectMeta void_meta
Definition: voideffect.h:42