]> 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 3a16b835d5a094d25555094a5641376138f17146..7b6d12539fa5edba6fbfec596b14304910520321 100644 (file)
@@ -33,10 +33,16 @@ public:
     EffectsList();
     ~EffectsList();
     /** Returns an XML version of this Effect.*/
-    QDomElement getEffectByName(const QString & name);
+    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);
+    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);
 };
 
 #endif