#include <QDomDocument>
+namespace Kdenlive {
+ enum EFFECTTYPE { simpleEffect, groupEffect };
+}
+
class EffectsList: public QDomDocument
{
public:
/** @brief Get am effect with effect index equal to ix. */
QDomElement effectFromIndex(QDomNodeList effects, int ix);
/** @brief Update all effects indexes to make sure they are 1, 2, 3, ... */
- void updateIndexes(QDomNodeList effects);
+ void updateIndexes(QDomNodeList effects, int startIndex);
+ /** @brief Enable / disable a list of effects */
+ void enableEffects(QList <int> indexes, bool disable);
private:
QDomElement m_baseElement;
bool m_useIndex;
+
+ /** @brief Init effect default parameter values. */
+ void initEffect(QDomElement effect) const;
};