X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectslist.h;h=47ecae1eda17cda1584c8e96bacd5607b76ce7be;hb=dfb043ffa58a19606157dff669004403e8214af7;hp=affb686918ef3d903542d75e7f130f1e3a3707f2;hpb=7b8c484e305eaf8f6d31dc0c47bf861cc2b51cc2;p=kdenlive diff --git a/src/effectslist.h b/src/effectslist.h index affb6869..47ecae1e 100644 --- a/src/effectslist.h +++ b/src/effectslist.h @@ -1,5 +1,5 @@ /*************************************************************************** - docclipbaseiterator.h - description + effectslist.h - description ------------------- begin : Sat Aug 10 2002 copyright : (C) 2002 by Jason Wood @@ -19,24 +19,33 @@ #define EFFECTSLIST_H #include +#include -/**An List for DocClipBase objects. Use this instead of QList so as to sort lists correctly. - * Also contains the ability to set a "master clip", which can be used by a number of operations where - * the need for one clip to act as a reference for what happens to all clips is needed. +/**A List for DocClipBase objects. Use this instead of QList so as to sort lists correctly. + * Also contains the ability to set a "master clip", which can be used by a number of operations where + * the need for one clip to act as a reference for what happens to all clips is needed. * @author Jason Wood */ -#include -class EffectsList:public QList < QDomElement > { - public: +class EffectsList: public QList < QDomElement > +{ +public: EffectsList(); - ~EffectsList(); - /** Returns an XML version of this Effect.*/ - QDomElement getEffectByName(const QString & name); - QStringList effectNames(); - QString getInfo(QString effectName); - QMap effect(const QString & name); + ~EffectsList(); + /** Returns an XML version of this Effect.*/ + QDomElement getEffectByName(const QString & name) const; + QDomElement getEffectByTag(const QString & tag, const QString & id) const; + /** if the list contains effect defined by tag + id, returns effect index, otherwise -1 */ + int hasEffect(const QString & tag, const QString & id) const; + QStringList effectIdInfo(const int ix) const; + QStringList effectNames(); + QString getInfo(const QString & tag, const QString & id) const; + QString getInfoFromIndex(const int ix) const; + EffectsList clone() const; + static bool hasKeyFrames(QDomElement effect); + static void setParameter(QDomElement effect, const QString &name, const QString &value); + static QString parameter(QDomElement effect, const QString &name); }; #endif