]> git.sesse.net Git - kdenlive/blob - src/effectslist.h
Reindent the codebase using 'linux' bracket placement.
[kdenlive] / src / effectslist.h
1 /***************************************************************************
2                           effectslist.h  -  description
3                              -------------------
4     begin                : Sat Aug 10 2002
5     copyright            : (C) 2002 by Jason Wood
6     email                : jasonwood@blueyonder.co.uk
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18 #ifndef EFFECTSLIST_H
19 #define EFFECTSLIST_H
20
21 #include <QList>
22 #include <QDomElement>
23
24 /**A List for DocClipBase objects. Use this instead of QList<DocClipBase> so as to sort lists correctly.
25  * Also contains the ability to set a "master clip", which can be used by a number of operations where
26  * the need for one clip to act as a reference for what happens to all clips is needed.
27   * @author Jason Wood
28   */
29
30
31 class EffectsList: public QList < QDomElement >
32 {
33 public:
34     EffectsList();
35     ~EffectsList();
36     /** Returns an XML version of this Effect.*/
37     QDomElement getEffectByName(const QString & name) const;
38     QDomElement getEffectByTag(const QString & tag, const QString & id) const;
39     /** if the list contains effect defined by tag + id, returns effect index, otherwise -1 */
40     int hasEffect(const QString & tag, const QString & id) const;
41     QStringList effectIdInfo(const int ix) const;
42     QStringList effectNames();
43     QString getInfo(const QString & tag, const QString & id) const;
44     QString getInfoFromIndex(const int ix) const;
45     EffectsList clone() const;
46     static bool hasKeyFrames(QDomElement effect);
47     static void setParameter(QDomElement effect, const QString &name, const QString &value);
48     static QString parameter(QDomElement effect, const QString &name);
49 };
50
51 #endif