]> git.sesse.net Git - kdenlive/blobdiff - src/effectslist.h
Fix handling of effects (do not rely on i18n name for identification)
[kdenlive] / src / effectslist.h
index b5b87e7b993e16cbe07ecc04f47ecbe39fff21ce..7b6d12539fa5edba6fbfec596b14304910520321 100644 (file)
@@ -34,11 +34,14 @@ public:
     ~EffectsList();
     /** Returns an XML version of this Effect.*/
     QDomElement getEffectByName(const QString & name) const;
-    QDomElement getEffectByTag(const QString & tag) 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);
+    QString getInfo(const QString & tag, const QString & id);
     QMap <QString, QString> effect(const QString & name);
-
+    static bool hasKeyFrames(QDomElement effect);
     static void setParameter(QDomElement effect, QString name, QString value);
 };