#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);
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;
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);
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);
}
}