]> git.sesse.net Git - kdenlive/commitdiff
some small updates
authorMarco Gittler <marco@gitma.de>
Thu, 27 Mar 2008 22:50:29 +0000 (22:50 +0000)
committerMarco Gittler <marco@gitma.de>
Thu, 27 Mar 2008 22:50:29 +0000 (22:50 +0000)
svn path=/branches/KDE4/; revision=2130

po/de/kdenlive.po
src/clipitem.cpp
src/effectstackedit.cpp
src/effectstackview.cpp
src/initeffects.cpp
src/parameterplotter.cpp
src/transition.cpp

index 28d65ba83ea6403d958f6181bd02a60551664345..f7ae44871a4429336bea534bb1badba68bff297e 100644 (file)
@@ -84,7 +84,7 @@ msgid "Add Clip"
 msgstr "Datei hinzufügen"
 
 msgid "Add Color Clip"
-msgstr "Farbeclip hinzufügen"
+msgstr "Farbclip hinzufügen"
 
 msgid "Add Custom Effect"
 msgstr "Benutzerdefinierten Effekt hinzufügen"
@@ -207,7 +207,7 @@ msgid "Clear"
 msgstr ""
 
 msgid "Clip Color"
-msgstr "Farbeclip"
+msgstr "Farbclip"
 
 msgid "Clip Monitor"
 msgstr "Clip-Monitor"
index 81ccec54ca9dd5219a55a34064655b59fe47bb06..437850593ac40476108db3fe950019e39eb98829 100644 (file)
@@ -350,10 +350,28 @@ void ClipItem::paint(QPainter *painter,
     // painter->drawRect(boundingRect());
     //painter->drawRoundRect(-10, -10, 20, 20);
     if (m_hover) {
+        int pointy = (int)(br.y() + br.height() / 2 - 5);
+        int pointx1 = (int)(br.x() + 10);
+        int pointx2 = (int)(br.x() + br.width() - 20);
+#if 0
         painter->setPen(QPen(Qt::black));
-        painter->setBrush(QBrush(Qt::yellow));
-        painter->drawEllipse((int)(br.x() + 10), (int)(br.y() + br.height() / 2 - 5) , 10, 10);
-        painter->drawEllipse((int)(br.x() + br.width() - 20), (int)(br.y() + br.height() / 2 - 5), 10, 10);
+        painter->setBrush(QBrush(QColor(50, 50, 0)));
+#else
+        QRadialGradient gradient(pointx1 + 5, pointy + 5 , 5, 2, 2);
+        gradient.setColorAt(0.2, Qt::white);
+        gradient.setColorAt(0.8, Qt::yellow);
+        gradient.setColorAt(1, Qt::black);
+        painter->setBrush(gradient);
+#endif
+        painter->drawEllipse(pointx1, pointy , 10, 10);
+
+        QRadialGradient gradient1(pointx2 + 5, pointy + 5 , 5, 2, 2);
+        gradient1.setColorAt(0.2, Qt::white);
+        gradient1.setColorAt(0.8, Qt::yellow);
+        gradient1.setColorAt(1, Qt::black);
+        painter->setBrush(gradient1);
+        painter->drawEllipse(pointx2, pointy, 10, 10);
+
     }
 }
 
index 4062ea0ababf1f5e5abc8573cda85c6ef5b71cdd..35fc93743e7f0207a3dbd85351dbb5f53dd24c58 100644 (file)
@@ -81,10 +81,10 @@ void EffectStackEdit::transferParamDesc(const QDomElement& d, int , int) {
         QString value = pa.attribute("value").isNull() ?
                         pa.attribute("default") : pa.attribute("value");
         if (type == "geometry") {
-            pa.setAttribute("namedesc", "X;Y;W;H");
-            pa.setAttribute("format", "%d,%d:%dx%d");
-            pa.setAttribute("min", "-100;-100;0;0");
-            pa.setAttribute("max", "0;0;100;100");
+            pa.setAttribute("namedesc", "X;Y;W;H;M");
+            pa.setAttribute("format", "%d%,%d%:%d%x%d%:%d%");
+            pa.setAttribute("min", "-200;-20;0;0;0");
+            pa.setAttribute("max", "200;200;100;100;100");
         }
         if (type == "complex") {
             //pa.setAttribute("namedesc",pa.attribute("name"));
@@ -105,10 +105,10 @@ void EffectStackEdit::transferParamDesc(const QDomElement& d, int , int) {
             for (int i = 0;i < lsval->list->count();i++) {
                 QString entry = lsval->list->itemText(i);
                 if (!entry.isEmpty() && (entry.endsWith(".png") || entry.endsWith(".pgm"))) {
-                    /*if (!EffectStackEdit::iconCache.contains(entry)) {
-                           QPixmap pix(entry);
+                    if (!EffectStackEdit::iconCache.contains(entry)) {
+                        QImage pix(entry);
                         EffectStackEdit::iconCache[entry] = pix.scaled(30, 30);
-                       }*/
+                    }
                     lsval->list->setIconSize(QSize(30, 30));
                     lsval->list->setItemIcon(i, QPixmap::fromImage(iconCache[entry]));
                 }
index 717586b6c166efa09d6a8ad85da27b5ba54187f0..939733b3f97510e6f03dc0bf50bb5dff2006331a 100644 (file)
@@ -61,8 +61,6 @@ EffectStackView::EffectStackView(EffectsList *audioEffectList, EffectsList *vide
 
     ui.infoBox->hide();
     setEnabled(false);
-    setEnabled(false);
-
 }
 
 void EffectStackView::slotUpdateEffectParams(const QDomElement& old, const QDomElement& e) {
index f99def50cd0636bb34b0e9105ac0513b919cde55..3decbf202dacaf5d33d97e3d5d7843db74ca9447 100644 (file)
@@ -33,7 +33,7 @@
 #include "effectstackedit.h"
 
 initEffectsThumbnailer::initEffectsThumbnailer() {
-    connect(this, SIGNAL(prepareThumbnails(const QStringList&)), this, SLOT(slotPrepareThumbnails(const QStringList&)), Qt::QueuedConnection);
+
 }
 
 void initEffectsThumbnailer::prepareThumbnailsCall(const QStringList& list) {
@@ -516,10 +516,10 @@ void initEffects::fillTransitionsList(Mlt::Repository * repository, EffectsList*
                 paramList.append(quickParameterFill(ret, "Softness", "softness", "double", "0", "0", "100", "", "100"));
                 paramList.append(quickParameterFill(ret, "Invert", "invert", "bool", "0", "0", "1"));
                 paramList.append(quickParameterFill(ret, "ImageFile", "resource", "list", "", "", "", imagefiles));
-                thumbnailer.prepareThumbnailsCall(imagelist);
+                //thumbnailer.prepareThumbnailsCall(imagelist);
 
             } else if (name == "composite") {
-                paramList.append(quickParameterFill(ret, "Geometry", "geometry", "geometry", "0%,0%:100%x100%", "0%,0%:100%x100%", "0%,0%:100%x100%"));
+                paramList.append(quickParameterFill(ret, "Geometry", "geometry", "geometry", "0;0;100;100;100", "0;0;100;100;100", "0;0;100;100;100"));
                 tname.appendChild(ret.createTextNode("Composite"));
 
                 QDomDocument ret1;
@@ -547,7 +547,7 @@ void initEffects::fillTransitionsList(Mlt::Repository * repository, EffectsList*
                 paramList.append(quickParameterFill(ret, "Fix Shear Z", "fix_shear_z", "double", "0", "0", "360"));
                 paramList.append(quickParameterFill(ret, "Mirror", "mirror_off", "bool", "0", "0", "1"));
                 paramList.append(quickParameterFill(ret, "Repeat", "repeat_off", "bool", "0", "0", "1"));
-                paramList.append(quickParameterFill(ret, "Geometry", "geometry", "geometry", "0%,0%:100%x100%", "0%,0%:100%x100%", "0%,0%:100%x100%"));
+                paramList.append(quickParameterFill(ret, "Geometry", "geometry", "geometry",  "0;0;100;100;100", "0;0;100;100;100", "0;0;100;100;100"));
                 tname.appendChild(ret.createTextNode("Composite"));
             } else if (name == "region") {
                 tname.appendChild(ret.createTextNode("Region"));
index 7d8d5d57039a5c17e951089b1e836b4d5d98d80d..4f7394c0c4965f3b0ea9713bdbea7a6aac0c3461 100644 (file)
@@ -92,12 +92,11 @@ void ParameterPlotter::setPointLists(const QDomElement& d, const QString& paramN
         else if (pa.attribute("default").contains(";"))
             defaults = pa.attribute("default").split(";");
         QStringList maxv = pa.attribute("max").split(";");
-        QStringList minv = pa.attribute("max").split(";");
+        QStringList minv = pa.attribute("min").split(";");
         for (int i = 0;i < maxv.size() && i < minv.size();i++) {
             if (max_y < maxv[i].toInt()) max_y = maxv[i].toInt();
             if (min_y > minv[i].toInt()) min_y = minv[i].toInt();
         }
-
         for (int i = 0;i < parameterNameList.count();i++) {
             KPlotObject *plot = new KPlotObject(colors[plotobjects.size()%colors.size()]);
             plot->setShowLines(true);
index 867cd96427149500334b8564e602263e9d328175..df70e972ef01535c37679595029abbb19ce5a53c 100644 (file)
@@ -115,8 +115,15 @@ void Transition::paint(QPainter *painter,
     QPainterPath resultClipPath = roundRectPathUpper.united(roundRectPathLower);
 
     painter->setClipPath(resultClipPath.intersected(clippath), Qt::IntersectClip);
-    //painter->fillPath(roundRectPath, brush()); //, QBrush(QColor(Qt::red)));
+#if 0
+    QRadialGradient radialGrad(QPointF(br.x() + 50, br.y() + 20), 70);
+    radialGrad.setColorAt(0, QColor(200, 200, 0, 100));
+    radialGrad.setColorAt(0.5, QColor(150, 150, 0, 100));
+    radialGrad.setColorAt(1, QColor(100, 100, 0, 100));
+    painter->fillRect(br.intersected(rectInView), QBrush(radialGrad)/*,Qt::Dense4Pattern*/);
+#else
     painter->fillRect(br.intersected(rectInView), QBrush(QColor(200, 200, 0, 160)/*,Qt::Dense4Pattern*/));
+#endif
     painter->setClipRect(option->exposedRect);
     painter->drawPixmap((int)(br.x() + 10), (int)(br.y() + 10), transitionPixmap());
     painter->drawPath(resultClipPath.intersected(clippath));