1 /***************************************************************************
2 effectslist.h - description
4 begin : Sat Aug 10 2002
5 copyright : (C) 2002 by Jason Wood
6 email : jasonwood@blueyonder.co.uk
7 ***************************************************************************/
9 /***************************************************************************
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. *
16 ***************************************************************************/
22 #include <QDomElement>
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.
31 class EffectsList: public QList < QDomElement >
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);