]> git.sesse.net Git - kdenlive/blobdiff - src/effectstackview.cpp
Introduce very basic geometry editing on the monitor.
[kdenlive] / src / effectstackview.cpp
index 04bf15bb3a46459f02cd6a2020f503c6898a256a..b5d80d0e004ae3b51e0f9bbdba3a182d722aba4a 100644 (file)
 #include <QInputDialog>
 
 
-EffectStackView::EffectStackView(QWidget *parent) :
+EffectStackView::EffectStackView(Monitor *monitor, QWidget *parent) :
         QWidget(parent)
 {
     m_ui.setupUi(this);
     QVBoxLayout *vbox1 = new QVBoxLayout(m_ui.frame);
-    m_effectedit = new EffectStackEdit(m_ui.frame);
+    m_effectedit = new EffectStackEdit(monitor, m_ui.frame);
     vbox1->setContentsMargins(0, 0, 0, 0);
     vbox1->setSpacing(0);
     vbox1->addWidget(m_effectedit);
@@ -81,6 +81,7 @@ EffectStackView::EffectStackView(QWidget *parent) :
     connect(m_ui.checkAll, SIGNAL(stateChanged(int)), this, SLOT(slotCheckAll(int)));
     connect(m_effectedit, SIGNAL(parameterChanged(const QDomElement, const QDomElement)), this , SLOT(slotUpdateEffectParams(const QDomElement, const QDomElement)));
     connect(m_effectedit, SIGNAL(seekTimeline(int)), this , SLOT(slotSeekTimeline(int)));
+    connect(m_effectedit, SIGNAL(displayMessage(const QString&, int)), this, SIGNAL(displayMessage(const QString&, int)));
     m_effectLists["audio"] = &MainWindow::audioEffects;
     m_effectLists["video"] = &MainWindow::videoEffects;
     m_effectLists["custom"] = &MainWindow::customEffects;
@@ -268,7 +269,7 @@ void EffectStackView::slotItemSelectionChanged(bool update)
                                         0,
                                         m_clipref->cropStart().frames(KdenliveSettings::project_fps()),
                                         (m_clipref->cropStart() + m_clipref->cropDuration()).frames(KdenliveSettings::project_fps())); //minx max frame
-        m_ui.region_url->setText(eff.attribute("region"));
+        m_ui.region_url->setUrl(KUrl(eff.attribute("region")));
     }
     if (m_clipref && update) m_clipref->setSelectedEffect(activeRow);
     m_ui.buttonDel->setEnabled(hasItem);
@@ -320,7 +321,7 @@ void EffectStackView::slotResetEffect()
         dom.setAttribute("kdenlive_ix", old.attribute("kdenlive_ix"));
         m_clipref->initEffect(dom);
         m_effectedit->transferParamDesc(dom, 0, m_clipref->cropStart().frames(KdenliveSettings::project_fps()), (m_clipref->cropStart() + m_clipref->cropDuration()).frames(KdenliveSettings::project_fps()));//minx max frame
-        m_ui.region_url->setText(dom.attribute("region"));
+        m_ui.region_url->setUrl(KUrl(dom.attribute("region")));
         emit updateClipEffect(m_clipref, old, dom, activeRow);
     }
 }