1 /***************************************************************************
2 docclipbaseiterator.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 ***************************************************************************/
23 /**An List for DocClipBase objects. Use this instead of QList<DocClipBase> so as to sort lists correctly.
24 * Also contains the ability to set a "master clip", which can be used by a number of operations where
25 * the need for one clip to act as a reference for what happens to all clips is needed.
29 #include <QDomElement>
31 class EffectsList: public QList < QDomElement > {
35 /** Returns an XML version of this Effect.*/
36 QDomElement getEffectByName(const QString & name) const;
37 QDomElement getEffectByTag(const QString & tag, const QString & id) const;
38 /** if the list contains effect defined by tag + id, returns effect index, otherwise -1 */
39 int hasEffect(const QString & tag, const QString & id) const;
40 QStringList effectIdInfo(const int ix) const;
41 QStringList effectNames();
42 QString getInfo(const QString & tag, const QString & id);
43 QMap <QString, QString> effect(const QString & name);
44 static bool hasKeyFrames(QDomElement effect);
45 static void setParameter(QDomElement effect, QString name, QString value);