]> git.sesse.net Git - kdenlive/blobdiff - src/definitions.h
SVN_SILENT made messages (.desktop file)
[kdenlive] / src / definitions.h
index 0c521ce18df7546337f469136f7b954dac7138f2..fa226208cfb51e039b0461c90a3c4665cf0f48bb 100644 (file)
@@ -25,6 +25,7 @@
 #include "effectslist.h"
 
 #include <KLocale>
+#include <QDebug>
 
 #include <QTreeWidgetItem>
  #include <QtCore/QString>
@@ -165,7 +166,7 @@ public:
        if (value.isEmpty()) return;
        QStringList data = value.split("/");
        isCollapsed = data.at(0).toInt() == 1 || data.at(0).toInt() == 3;
-       groupIsCollapsed = data.at(0).toInt() == 3;
+       groupIsCollapsed = data.at(0).toInt() >= 2;
        if (data.count() > 1) groupIndex = data.at(1).toInt();
        if (data.count() > 2) groupName = data.at(2);
     }
@@ -202,6 +203,17 @@ public:
             if (at(i).name() == name) return true;
         return false;
     }
+    void setParamValue(const QString &name, const QString &value) {
+       bool found = false;
+        for (int i = 0; i < size(); i++)
+            if (at(i).name() == name) {
+               // update value
+               replace(i, EffectParameter(name, value));
+               found = true;
+           }
+       if (!found) addParam(name, value);
+    }
+        
     QString paramValue(const QString &name, QString defaultValue = QString()) const {
         for (int i = 0; i < size(); i++) {
             if (at(i).name() == name) return at(i).value();
@@ -270,5 +282,7 @@ private:
 
 };
 
+QDebug operator << (QDebug qd, const ItemInfo &info);
+
 
 #endif