]> git.sesse.net Git - kdenlive/blob - src/effectstackview.cpp
Freesound: save audio file url in clip comment (for attribution)
[kdenlive] / src / effectstackview.cpp
1 /***************************************************************************
2                           effecstackview.cpp  -  description
3                              -------------------
4     begin                : Feb 15 2008
5     copyright            : (C) 2008 by Marco Gittler
6     email                : g.marco@freenet.de
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18
19 #include "effectstackview.h"
20 #include "effectslist.h"
21 #include "clipitem.h"
22 #include "mainwindow.h"
23 #include "docclipbase.h"
24 #include "projectlist.h"
25 #include "kthumb.h"
26 #include "monitoreditwidget.h"
27 #include "monitorscene.h"
28 #include "kdenlivesettings.h"
29
30 #include <KDebug>
31 #include <KLocale>
32 #include <KMessageBox>
33 #include <KStandardDirs>
34 #include <KFileDialog>
35
36 #include <QMenu>
37 #include <QTextStream>
38 #include <QFile>
39 #include <QInputDialog>
40
41
42 EffectStackView::EffectStackView(Monitor *monitor, QWidget *parent) :
43         QWidget(parent),
44         m_monitor(monitor),
45         m_clipref(NULL),
46         m_trackMode(false),
47         m_trackindex(-1)
48 {
49     m_ui.setupUi(this);
50     QVBoxLayout *vbox1 = new QVBoxLayout(m_ui.frame);
51     m_effectedit = new EffectStackEdit(monitor, m_ui.frame);
52     m_ui.frame->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
53     vbox1->setContentsMargins(2, 0, 2, 0);
54     vbox1->setSpacing(0);
55     vbox1->addWidget(m_effectedit);
56     m_ui.splitter->setStretchFactor(0, 1);
57     m_ui.splitter->setStretchFactor(1, 20);
58
59     //m_ui.region_url->fileDialog()->setFilter(ProjectList::getExtensions());
60     //m_ui.effectlist->horizontalHeader()->setVisible(false);
61     //m_ui.effectlist->verticalHeader()->setVisible(false);
62
63     m_ui.buttonNew->setIcon(KIcon("document-new"));
64     m_ui.buttonNew->setToolTip(i18n("Add new effect"));
65     m_ui.buttonUp->setIcon(KIcon("go-up"));
66     m_ui.buttonUp->setToolTip(i18n("Move effect up"));
67     m_ui.buttonDown->setIcon(KIcon("go-down"));
68     m_ui.buttonDown->setToolTip(i18n("Move effect down"));
69     m_ui.buttonDel->setIcon(KIcon("edit-delete"));
70     m_ui.buttonDel->setToolTip(i18n("Delete effect"));
71     m_ui.buttonSave->setIcon(KIcon("document-save"));
72     m_ui.buttonSave->setToolTip(i18n("Save effect"));
73     m_ui.buttonReset->setIcon(KIcon("view-refresh"));
74     m_ui.buttonReset->setToolTip(i18n("Reset effect"));
75     m_ui.checkAll->setToolTip(i18n("Enable/Disable all effects"));
76     m_ui.buttonShowComments->setIcon(KIcon("help-about"));
77     m_ui.buttonShowComments->setToolTip(i18n("Show additional information for the parameters"));
78
79     m_ui.effectlist->setDragDropMode(QAbstractItemView::NoDragDrop); //use internal if drop is recognised right
80
81     m_ui.labelComment->setHidden(true);
82
83     //connect(m_ui.region_url, SIGNAL(urlSelected(const KUrl &)), this , SLOT(slotRegionChanged()));
84     //connect(m_ui.region_url, SIGNAL(returnPressed()), this , SLOT(slotRegionChanged()));
85     connect(m_ui.effectlist, SIGNAL(itemSelectionChanged()), this , SLOT(slotItemSelectionChanged()));
86     connect(m_ui.effectlist, SIGNAL(itemChanged(QListWidgetItem *)), this , SLOT(slotItemChanged(QListWidgetItem *)));
87     connect(m_ui.buttonUp, SIGNAL(clicked()), this, SLOT(slotItemUp()));
88     connect(m_ui.buttonDown, SIGNAL(clicked()), this, SLOT(slotItemDown()));
89     connect(m_ui.buttonDel, SIGNAL(clicked()), this, SLOT(slotItemDel()));
90     connect(m_ui.buttonSave, SIGNAL(clicked()), this, SLOT(slotSaveEffect()));
91     connect(m_ui.buttonReset, SIGNAL(clicked()), this, SLOT(slotResetEffect()));
92     connect(m_ui.checkAll, SIGNAL(stateChanged(int)), this, SLOT(slotCheckAll(int)));
93     connect(m_ui.buttonShowComments, SIGNAL(clicked()), this, SLOT(slotShowComments()));
94     connect(m_effectedit, SIGNAL(parameterChanged(const QDomElement &, const QDomElement &)), this , SLOT(slotUpdateEffectParams(const QDomElement &, const QDomElement &)));
95     connect(m_effectedit, SIGNAL(startFilterJob(QString,QString,QString,QString,QString,QString)), this , SLOT(slotStartFilterJob(QString,QString,QString,QString,QString,QString)));
96     connect(m_effectedit, SIGNAL(seekTimeline(int)), this , SLOT(slotSeekTimeline(int)));
97     connect(m_effectedit, SIGNAL(displayMessage(const QString&, int)), this, SIGNAL(displayMessage(const QString&, int)));
98     connect(m_effectedit, SIGNAL(checkMonitorPosition(int)), this, SLOT(slotCheckMonitorPosition(int)));
99     
100     connect(monitor, SIGNAL(renderPosition(int)), this, SLOT(slotRenderPos(int)));
101     connect(this, SIGNAL(showComments(bool)), m_effectedit, SIGNAL(showComments(bool)));
102     m_effectLists["audio"] = &MainWindow::audioEffects;
103     m_effectLists["video"] = &MainWindow::videoEffects;
104     m_effectLists["custom"] = &MainWindow::customEffects;
105     setEnabled(false);
106 }
107
108 EffectStackView::~EffectStackView()
109 {
110     m_effectLists.clear();
111     delete m_effectedit;
112 }
113
114 void EffectStackView::updateTimecodeFormat()
115 {
116     m_effectedit->updateTimecodeFormat();
117 }
118
119 void EffectStackView::setMenu(QMenu *menu)
120 {
121     m_ui.buttonNew->setMenu(menu);
122 }
123
124 void EffectStackView::updateProjectFormat(MltVideoProfile profile, Timecode t)
125 {
126     m_effectedit->updateProjectFormat(profile, t);
127 }
128
129 void EffectStackView::slotSaveEffect()
130 {
131     QString name = QInputDialog::getText(this, i18n("Save Effect"), i18n("Name for saved effect: "));
132     if (name.isEmpty()) return;
133     QString path = KStandardDirs::locateLocal("appdata", "effects/", true);
134     path = path + name + ".xml";
135     if (QFile::exists(path)) if (KMessageBox::questionYesNo(this, i18n("File %1 already exists.\nDo you want to overwrite it?", path)) == KMessageBox::No) return;
136
137     int i = m_ui.effectlist->currentRow();
138     QDomDocument doc;
139     QDomElement effect = m_currentEffectList.at(i).cloneNode().toElement();
140     doc.appendChild(doc.importNode(effect, true));
141     effect = doc.firstChild().toElement();
142     effect.removeAttribute("kdenlive_ix");
143     effect.setAttribute("id", name);
144     effect.setAttribute("type", "custom");
145     QDomElement effectname = effect.firstChildElement("name");
146     effect.removeChild(effectname);
147     effectname = doc.createElement("name");
148     QDomText nametext = doc.createTextNode(name);
149     effectname.appendChild(nametext);
150     effect.insertBefore(effectname, QDomNode());
151     QDomElement effectprops = effect.firstChildElement("properties");
152     effectprops.setAttribute("id", name);
153     effectprops.setAttribute("type", "custom");
154
155     QFile file(path);
156     if (file.open(QFile::WriteOnly | QFile::Truncate)) {
157         QTextStream out(&file);
158         out << doc.toString();
159     }
160     file.close();
161     emit reloadEffects();
162 }
163
164 void EffectStackView::slotUpdateEffectParams(const QDomElement &old, const QDomElement &e)
165 {
166     if (m_trackMode)
167         emit updateEffect(NULL, m_trackindex, old, e, m_ui.effectlist->currentRow());
168     else if (m_clipref)
169         emit updateEffect(m_clipref, -1, old, e, m_ui.effectlist->currentRow());
170 }
171
172 void EffectStackView::slotClipItemSelected(ClipItem* c, int ix)
173 {
174     if (c && !c->isEnabled()) return;
175     if (c && c == m_clipref) {
176         if (ix == -1) ix = m_ui.effectlist->currentRow();
177         //if (ix == -1 || ix == m_ui.effectlist->currentRow()) return;
178     } else {
179         m_clipref = c;
180         if (c) {
181             QString cname = m_clipref->clipName();
182             if (cname.length() > 30) {
183                 m_ui.checkAll->setToolTip(i18n("Effects for %1").arg(cname));
184                 cname.truncate(27);
185                 m_ui.checkAll->setText(i18n("Effects for %1").arg(cname) + "...");
186             } else {
187                 m_ui.checkAll->setToolTip(QString());
188                 m_ui.checkAll->setText(i18n("Effects for %1").arg(cname));
189             }
190             ix = c->selectedEffectIndex();
191             QString size = c->baseClip()->getProperty("frame_size");
192             double factor = c->baseClip()->getProperty("aspect_ratio").toDouble();
193             QPoint p((int)(size.section('x', 0, 0).toInt() * factor + 0.5), size.section('x', 1, 1).toInt());
194             m_effectedit->setFrameSize(p);
195         } else {
196             ix = 0;
197         }
198     }
199     if (m_clipref == NULL) {
200         m_ui.effectlist->blockSignals(true);
201         m_ui.effectlist->clear();
202         ItemInfo info;
203         m_effectedit->transferParamDesc(QDomElement(), info);
204         //m_ui.region_url->clear();
205         m_ui.effectlist->blockSignals(false);
206         m_ui.checkAll->setToolTip(QString());
207         m_ui.checkAll->setText(QString());
208         m_ui.labelComment->setText(QString());
209         setEnabled(false);
210         return;
211     }
212     setEnabled(true);
213     m_trackMode = false;
214     m_currentEffectList = m_clipref->effectList();
215     setupListView(ix);
216 }
217
218 void EffectStackView::slotTrackItemSelected(int ix, const TrackInfo info)
219 {
220     m_clipref = NULL;
221     m_trackMode = true;
222     m_currentEffectList = info.effectsList;
223     m_trackInfo = info;
224     kDebug() << "// TRACK; " << ix << ", EFFECTS: " << m_currentEffectList.count();
225     setEnabled(true);
226     m_ui.checkAll->setToolTip(QString());
227     m_ui.checkAll->setText(i18n("Effects for track %1").arg(info.trackName.isEmpty() ? QString::number(ix) : info.trackName));
228     m_trackindex = ix;
229     setupListView(0);
230 }
231
232 void EffectStackView::slotItemChanged(QListWidgetItem *item)
233 {
234     bool disable = true;
235     if (item->checkState() == Qt::Checked) disable = false;
236     m_ui.buttonReset->setEnabled(!disable || !KdenliveSettings::disable_effect_parameters());
237     int activeRow = m_ui.effectlist->currentRow();
238     if (activeRow >= 0) {
239         m_effectedit->updateParameter("disable", QString::number((int) disable));
240         if (m_trackMode)
241             emit changeEffectState(NULL, m_trackindex, activeRow, disable);
242         else
243             emit changeEffectState(m_clipref, -1, activeRow, disable);
244     }
245     slotUpdateCheckAllButton();
246 }
247
248
249 void EffectStackView::setupListView(int ix)
250 {
251     m_ui.effectlist->blockSignals(true);
252     m_ui.effectlist->clear();
253
254     // Issue 238: Add icons for effect type in effectstack.
255     KIcon videoIcon("kdenlive-show-video");
256     KIcon audioIcon("kdenlive-show-audio");
257     KIcon customIcon("kdenlive-custom-effect");
258     QListWidgetItem* item;
259
260     for (int i = 0; i < m_currentEffectList.count(); i++) {
261         const QDomElement d = m_currentEffectList.at(i).cloneNode().toElement();
262         if (d.isNull()) {
263             kDebug() << " . . . . WARNING, NULL EFFECT IN STACK!!!!!!!!!";
264             continue;
265         }
266
267         /*QDomDocument doc;
268         doc.appendChild(doc.importNode(d, true));
269         kDebug() << "IMPORTED STK: " << doc.toString();*/
270
271         QDomElement namenode = d.firstChildElement("name");
272         if (!namenode.isNull()) {
273             // Issue 238: Add icons for effect type in effectstack.
274             // Logic more or less copied from initeffects.cpp
275             QString type = d.attribute("type", QString());
276             if ("audio" == type) {
277                 item = new QListWidgetItem(audioIcon, i18n(namenode.text().toUtf8().data()), m_ui.effectlist);
278             } else if ("custom" == type) {
279                 item = new QListWidgetItem(customIcon, i18n(namenode.text().toUtf8().data()), m_ui.effectlist);
280             } else {
281                 item = new QListWidgetItem(videoIcon, i18n(namenode.text().toUtf8().data()), m_ui.effectlist);
282             }
283             item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsDragEnabled | Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
284             if (d.attribute("disable") == "1")
285                 item->setCheckState(Qt::Unchecked);
286             else
287                 item->setCheckState(Qt::Checked);
288         }
289     }
290     if (m_ui.effectlist->count() == 0) {
291         m_ui.buttonDel->setEnabled(false);
292         m_ui.buttonSave->setEnabled(false);
293         m_ui.buttonReset->setEnabled(false);
294         m_ui.buttonUp->setEnabled(false);
295         m_ui.buttonDown->setEnabled(false);
296         m_ui.checkAll->setEnabled(false);
297         m_ui.buttonShowComments->setEnabled(false);
298         m_ui.labelComment->setHidden(true);
299     } else {
300         ix = qBound(0, ix, m_ui.effectlist->count() - 1);
301         m_ui.effectlist->setCurrentRow(ix);
302         m_ui.checkAll->setEnabled(true);
303     }
304     m_ui.effectlist->blockSignals(false);
305     if (m_ui.effectlist->count() == 0) {
306         ItemInfo info;
307         m_effectedit->transferParamDesc(QDomElement(), info);
308         //m_ui.region_url->clear();
309     } else slotItemSelectionChanged(false);
310     slotUpdateCheckAllButton();
311 }
312
313 void EffectStackView::slotItemSelectionChanged(bool update)
314 {
315     bool hasItem = m_ui.effectlist->currentItem();
316     int activeRow = m_ui.effectlist->currentRow();
317     bool isChecked = false;
318     if (hasItem && m_ui.effectlist->currentItem()->checkState() == Qt::Checked) isChecked = true;
319     QDomElement eff;
320     if (hasItem && m_ui.effectlist->currentItem()->isSelected()) {
321         eff = m_currentEffectList.at(activeRow);
322         if (m_trackMode) {
323             // showing track effects
324             ItemInfo info;
325             info.track = m_trackInfo.type;
326             info.cropDuration = GenTime(m_trackInfo.duration, KdenliveSettings::project_fps());
327             info.cropStart = GenTime(0);
328             info.startPos = GenTime(-1);
329             info.track = 0;
330             m_effectedit->transferParamDesc(eff, info);
331         } else {
332             m_effectedit->transferParamDesc(eff, m_clipref->info());
333         }
334         //m_ui.region_url->setUrl(KUrl(eff.attribute("region")));
335         m_ui.labelComment->setText(i18n(eff.firstChildElement("description").firstChildElement("full").text().toUtf8().data()));
336     }
337     if (!m_trackMode && m_clipref && update) m_clipref->setSelectedEffect(activeRow);
338     m_ui.buttonDel->setEnabled(hasItem);
339     m_ui.buttonSave->setEnabled(hasItem);
340     m_ui.buttonReset->setEnabled(hasItem && (isChecked || !KdenliveSettings::disable_effect_parameters()));
341     m_ui.buttonUp->setEnabled(activeRow > 0);
342     m_ui.buttonDown->setEnabled((activeRow < m_ui.effectlist->count() - 1) && hasItem);
343     m_ui.buttonShowComments->setEnabled(hasItem);
344
345     emit showComments(m_ui.buttonShowComments->isChecked());
346     m_ui.labelComment->setVisible(hasItem && m_ui.labelComment->text().count() && (m_ui.buttonShowComments->isChecked() || !eff.elementsByTagName("parameter").count()));
347 }
348
349 void EffectStackView::slotItemUp()
350 {
351     int activeRow = m_ui.effectlist->currentRow();
352     if (activeRow <= 0) return;
353     if (m_trackMode) emit changeEffectPosition(NULL, m_trackindex, activeRow + 1, activeRow);
354     else emit changeEffectPosition(m_clipref, -1, activeRow + 1, activeRow);
355 }
356
357 void EffectStackView::slotItemDown()
358 {
359     int activeRow = m_ui.effectlist->currentRow();
360     if (activeRow >= m_ui.effectlist->count() - 1) return;
361     if (m_trackMode) emit changeEffectPosition(NULL, m_trackindex, activeRow + 1, activeRow + 2);
362     else emit changeEffectPosition(m_clipref, -1, activeRow + 1, activeRow + 2);
363 }
364
365 void EffectStackView::slotItemDel()
366 {
367     int activeRow = m_ui.effectlist->currentRow();
368     if (activeRow >= 0) {
369         if (m_trackMode)
370             emit removeEffect(NULL, m_trackindex, m_currentEffectList.at(activeRow).cloneNode().toElement());
371         else
372             emit removeEffect(m_clipref, -1, m_clipref->effectAt(activeRow));
373         slotUpdateCheckAllButton();
374     }
375 }
376
377 void EffectStackView::slotResetEffect()
378 {
379     int activeRow = m_ui.effectlist->currentRow();
380     if (activeRow < 0) return;
381     QDomElement old = m_currentEffectList.at(activeRow).cloneNode().toElement();
382     QDomElement dom;
383     QString effectName = m_ui.effectlist->currentItem()->text();
384     foreach(const QString &type, m_effectLists.keys()) {
385         EffectsList *list = m_effectLists[type];
386         if (list->effectNames().contains(effectName)) {
387             dom = list->getEffectByName(effectName).cloneNode().toElement();
388             break;
389         }
390     }
391     if (!dom.isNull()) {
392         dom.setAttribute("kdenlive_ix", old.attribute("kdenlive_ix"));
393         if (m_trackMode) {
394             EffectsList::setParameter(dom, "in", QString::number(0));
395             EffectsList::setParameter(dom, "out", QString::number(m_trackInfo.duration));
396             ItemInfo info;
397             info.track = m_trackInfo.type;
398             info.cropDuration = GenTime(m_trackInfo.duration, KdenliveSettings::project_fps());
399             info.cropStart = GenTime(0);
400             info.startPos = GenTime(-1);
401             info.track = 0;
402             m_effectedit->transferParamDesc(dom, info);
403             emit updateEffect(NULL, m_trackindex, old, dom, activeRow);
404         } else {
405             m_clipref->initEffect(dom);
406             m_effectedit->transferParamDesc(dom, m_clipref->info());
407             //m_ui.region_url->setUrl(KUrl(dom.attribute("region")));
408             emit updateEffect(m_clipref, -1, old, dom, activeRow);
409         }
410     }
411
412     emit showComments(m_ui.buttonShowComments->isChecked());
413     m_ui.labelComment->setHidden(!m_ui.buttonShowComments->isChecked() || !m_ui.labelComment->text().count());
414 }
415
416
417 void EffectStackView::raiseWindow(QWidget* dock)
418 {
419     if ((m_clipref || m_trackMode) && dock)
420         dock->raise();
421 }
422
423 void EffectStackView::clear()
424 {
425     m_ui.effectlist->blockSignals(true);
426     m_ui.effectlist->clear();
427     m_ui.buttonDel->setEnabled(false);
428     m_ui.buttonSave->setEnabled(false);
429     m_ui.buttonReset->setEnabled(false);
430     m_ui.buttonUp->setEnabled(false);
431     m_ui.buttonDown->setEnabled(false);
432     m_ui.checkAll->setEnabled(false);
433     ItemInfo info;
434     m_effectedit->transferParamDesc(QDomElement(), info);
435     //m_ui.region_url->clear();
436     m_clipref = NULL;
437     m_ui.buttonShowComments->setEnabled(false);
438     m_ui.labelComment->setText(QString());
439     m_ui.effectlist->blockSignals(false);
440 }
441
442
443 void EffectStackView::slotSeekTimeline(int pos)
444 {
445     if (m_trackMode) {
446         emit seekTimeline(pos);
447     } else if (m_clipref) {
448         emit seekTimeline(m_clipref->startPos().frames(KdenliveSettings::project_fps()) + pos);
449     }
450 }
451
452 void EffectStackView::slotUpdateCheckAllButton()
453 {
454     bool hasEnabled = false;
455     bool hasDisabled = false;
456     for (int i = 0; i < m_ui.effectlist->count(); ++i) {
457         if (m_ui.effectlist->item(i)->checkState() == Qt::Checked)
458             hasEnabled = true;
459         else
460             hasDisabled = true;
461     }
462
463     m_ui.checkAll->blockSignals(true);
464     if (hasEnabled && hasDisabled)
465         m_ui.checkAll->setCheckState(Qt::PartiallyChecked);
466     else if (hasEnabled)
467         m_ui.checkAll->setCheckState(Qt::Checked);
468     else
469         m_ui.checkAll->setCheckState(Qt::Unchecked);
470     m_ui.checkAll->blockSignals(false);
471 }
472
473 void EffectStackView::slotCheckAll(int state)
474 {
475     if (state == 1) {
476         state = 2;
477         m_ui.checkAll->blockSignals(true);
478         m_ui.checkAll->setCheckState(Qt::Checked);
479         m_ui.checkAll->blockSignals(false);
480     }
481
482     bool disabled = (state != 2);
483     m_effectedit->updateParameter("disable", QString::number((int) disabled));
484     for (int i = 0; i < m_ui.effectlist->count(); ++i) {
485         if (m_ui.effectlist->item(i)->checkState() != (Qt::CheckState)state) {
486             m_ui.effectlist->item(i)->setCheckState((Qt::CheckState)state);
487             if (m_trackMode)
488                 emit changeEffectState(NULL, m_trackindex, i, disabled);
489             else
490                 emit changeEffectState(m_clipref, -1, i, disabled);
491         }
492     }
493 }
494
495 /*void EffectStackView::slotRegionChanged()
496 {
497     if (!m_trackMode) emit updateClipRegion(m_clipref, m_ui.effectlist->currentRow(), m_ui.region_url->text());
498 }*/
499
500 void EffectStackView::slotCheckMonitorPosition(int renderPos)
501 {
502     if (m_trackMode || (m_clipref && renderPos >= m_clipref->startPos().frames(KdenliveSettings::project_fps()) && renderPos <= m_clipref->endPos().frames(KdenliveSettings::project_fps()))) {
503         if (!m_monitor->getEffectEdit()->getScene()->views().at(0)->isVisible())
504             m_monitor->slotEffectScene(true);
505     } else {
506         m_monitor->slotEffectScene(false);
507     }
508 }
509
510 void EffectStackView::slotRenderPos(int pos)
511 {
512     if (m_effectedit) {
513         if (m_trackMode) {
514             m_effectedit->slotSyncEffectsPos(pos);
515         } else if (m_clipref) {
516             m_effectedit->slotSyncEffectsPos(pos - m_clipref->startPos().frames(KdenliveSettings::project_fps()));
517         }
518     }
519 }
520
521 int EffectStackView::isTrackMode(bool *ok) const
522 {
523     *ok = m_trackMode;
524     return m_trackindex;
525 }
526
527 void EffectStackView::slotShowComments()
528 {
529     m_ui.labelComment->setHidden(!m_ui.buttonShowComments->isChecked() || !m_ui.labelComment->text().count());
530     emit showComments(m_ui.buttonShowComments->isChecked());
531 }
532
533 void EffectStackView::slotStartFilterJob(const QString&filterName, const QString&filterParams, const QString&finalFilterName, const QString&consumer, const QString&consumerParams, const QString&properties)
534 {
535     if (!m_clipref) return;
536     emit startFilterJob(m_clipref->info(), m_clipref->clipProducer(), filterName, filterParams, finalFilterName, consumer, consumerParams, properties);
537 }
538
539 #include "effectstackview.moc"