X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectslist.h;h=47ecae1eda17cda1584c8e96bacd5607b76ce7be;hb=dfb043ffa58a19606157dff669004403e8214af7;hp=462e283ff74fd7a4b1caa492346a9c42a3cf6582;hpb=e006f3c3de685754c0a98ebd2c86da6f6967d524;p=kdenlive diff --git a/src/effectslist.h b/src/effectslist.h index 462e283f..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,27 +19,33 @@ #define EFFECTSLIST_H #include +#include -/**An List for DocClipBase objects. Use this instead of QList so as to sort lists correctly. +/**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 > { +class EffectsList: public QList < QDomElement > +{ public: EffectsList(); ~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(QString effectName); - QMap effect(const QString & name); + 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, QString name, QString value); + static void setParameter(QDomElement effect, const QString &name, const QString &value); + static QString parameter(QDomElement effect, const QString &name); }; #endif