X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectslist.h;h=9654b5bb6174fb19fe077afe770dc2c09ca3a482;hb=e8f43a6f96b987e8476674484346fcb7d9e2eb6c;hp=8a851a79c15270eb77c7f69bb1763b5ac07e8dcf;hpb=65291fac2609fe71e4be801a4d5349ddda5b9243;p=kdenlive diff --git a/src/effectslist.h b/src/effectslist.h index 8a851a79..9654b5bb 100644 --- a/src/effectslist.h +++ b/src/effectslist.h @@ -72,11 +72,11 @@ public: QDomElement itemFromIndex(int ix) const; QDomElement insert(QDomElement effect); void updateEffect(QDomElement effect); - static bool hasKeyFrames(QDomElement effect); - static bool hasSimpleKeyFrames(QDomElement effect); - static bool hasGeometryKeyFrames(QDomElement effect); + static bool hasKeyFrames(const QDomElement &effect); + static bool hasSimpleKeyFrames(const QDomElement &effect); + static bool hasGeometryKeyFrames(const QDomElement &effect); static void setParameter(QDomElement effect, const QString &name, const QString &value); - static QString parameter(QDomElement effect, const QString &name); + static QString parameter(const QDomElement &effect, const QString &name); /** @brief Change the value of a 'property' element from the effect node. */ static void setProperty(QDomElement effect, const QString &name, const QString &value); /** @brief Rename a 'property' element from the effect node. */ @@ -92,10 +92,15 @@ public: QDomElement effectFromIndex(QDomNodeList effects, int ix); /** @brief Update all effects indexes to make sure they are 1, 2, 3, ... */ void updateIndexes(QDomNodeList effects, int startIndex); + /** @brief Enable / disable a list of effects */ + void enableEffects(const QList &indexes, bool disable); private: QDomElement m_baseElement; bool m_useIndex; + + /** @brief Init effect default parameter values. */ + void initEffect(const QDomElement &effect) const; };