X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectslist.h;h=9654b5bb6174fb19fe077afe770dc2c09ca3a482;hb=a12cf2d6e75a7a9857330a6109b36d5b99a2ccb4;hp=b0abdc1b27705d17c95142e17299d0a42f673a30;hpb=bd18e035dc8e828d84bcd7f043cb4d06d52ad452;p=kdenlive diff --git a/src/effectslist.h b/src/effectslist.h index b0abdc1b..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,13 +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(QDomElement effect) const; + void initEffect(const QDomElement &effect) const; };