]> git.sesse.net Git - kdenlive/blobdiff - src/effectstackedit.cpp
Composite transition: add new "Resize to original size" option that will allow for...
[kdenlive] / src / effectstackedit.cpp
index 43ed8f44abe650fcd2284a942c0a3bc7275bc1f9..7bd9b58e69f4ebd968debb3316d5fa6bfdd5808c 100644 (file)
@@ -67,7 +67,8 @@ QMap<QString, QImage> EffectStackEdit::iconCache;
 EffectStackEdit::EffectStackEdit(QWidget *parent) :
         QWidget(parent),
         m_in(0),
-        m_out(0)
+        m_out(0),
+        m_frameSize(QPoint())
 {
     setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));
     QVBoxLayout *vbox1 = new QVBoxLayout(parent);
@@ -96,6 +97,11 @@ EffectStackEdit::~EffectStackEdit()
     iconCache.clear();
 }
 
+void EffectStackEdit::setFrameSize(QPoint p)
+{
+    m_frameSize = p;
+}
+
 void EffectStackEdit::updateProjectFormat(MltVideoProfile profile, Timecode t)
 {
     m_profile = profile;
@@ -205,7 +211,7 @@ void EffectStackEdit::transferParamDesc(const QDomElement& d, int in, int out)
             m_valueItems[paramName+"complex"] = pl;
             m_items.append(pl);
         } else if (type == "geometry") {
-            Geometryval *geo = new Geometryval(m_profile);
+            Geometryval *geo = new Geometryval(m_profile, m_frameSize);
             connect(geo, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters()));
             connect(geo, SIGNAL(seekToPos(int)), this, SLOT(slotSeekToPos(int)));
             geo->setupParam(pa, minFrame, maxFrame);