1 /***************************************************************************
2 effecstackedit.cpp - description
5 copyright : (C) 2008 by Marco Gittler
6 email : g.marco@freenet.de
7 ***************************************************************************/
9 /***************************************************************************
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. *
16 ***************************************************************************/
18 #include "effectstackedit.h"
19 #include "ui_listval_ui.h"
20 #include "ui_boolval_ui.h"
21 #include "ui_wipeval_ui.h"
22 #include "ui_urlval_ui.h"
23 #include "complexparameter.h"
24 #include "geometryval.h"
25 #include "positionedit.h"
26 #include "projectlist.h"
27 #include "effectslist.h"
28 #include "kdenlivesettings.h"
29 #include "profilesdialog.h"
30 #include "kis_curve_widget.h"
31 #include "kis_cubic_curve.h"
32 #include "choosecolorwidget.h"
33 #include "geometrywidget.h"
34 #include "colortools.h"
35 #include "doubleparameterwidget.h"
39 #include <KFileDialog>
41 #include <QVBoxLayout>
43 #include <QPushButton>
45 #include <QScrollArea>
48 class Boolval: public QWidget, public Ui::Boolval_UI
52 class Listval: public QWidget, public Ui::Listval_UI
56 class Wipeval: public QWidget, public Ui::Wipeval_UI
60 class Urlval: public QWidget, public Ui::Urlval_UI
64 QMap<QString, QImage> EffectStackEdit::iconCache;
66 EffectStackEdit::EffectStackEdit(Monitor *monitor, QWidget *parent) :
70 m_frameSize(QPoint()),
71 m_keyframeEditor(NULL),
74 m_baseWidget = new QWidget(this);
75 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
76 setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
77 setFrameStyle(QFrame::NoFrame);
78 setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding));
80 setWidget(m_baseWidget);
81 setWidgetResizable(true);
82 m_vbox = new QVBoxLayout(m_baseWidget);
83 m_vbox->setContentsMargins(0, 0, 0, 0);
84 m_vbox->setSpacing(0);
88 EffectStackEdit::~EffectStackEdit()
94 void EffectStackEdit::setFrameSize(QPoint p)
97 QDomNodeList namenode = m_params.elementsByTagName("parameter");
98 for (int i = 0; i < namenode.count() ; i++) {
99 QDomNode pa = namenode.item(i);
100 QDomNode na = pa.firstChildElement("name");
101 QString type = pa.attributes().namedItem("type").nodeValue();
102 QString paramName = i18n(na.toElement().text().toUtf8().data());
104 if (type == "geometry" && !KdenliveSettings::on_monitor_effects()) {
105 Geometryval *geom = ((Geometryval*)m_valueItems[paramName+"geometry"]);
106 geom->setFrameSize(m_frameSize);
112 void EffectStackEdit::updateTimecodeFormat()
114 if (m_keyframeEditor)
115 m_keyframeEditor->updateTimecodeFormat();
117 QDomNodeList namenode = m_params.elementsByTagName("parameter");
118 for (int i = 0; i < namenode.count() ; i++) {
119 QDomNode pa = namenode.item(i);
120 QDomNode na = pa.firstChildElement("name");
121 QString type = pa.attributes().namedItem("type").nodeValue();
122 QString paramName = i18n(na.toElement().text().toUtf8().data());
124 if (type == "geometry") {
125 if (KdenliveSettings::on_monitor_effects()) {
126 GeometryWidget *geom = (GeometryWidget*)m_valueItems[paramName+"geometry"];
127 geom->updateTimecodeFormat();
129 Geometryval *geom = ((Geometryval*)m_valueItems[paramName+"geometry"]);
130 geom->updateTimecodeFormat();
134 if (type == "position") {
135 PositionEdit *posi = ((PositionEdit*)m_valueItems[paramName+"position"]);
136 posi->updateTimecodeFormat();
142 void EffectStackEdit::meetDependency(const QString& name, QString type, QString value)
144 if (type == "curve") {
145 KisCurveWidget *curve = (KisCurveWidget*)m_valueItems[name];
147 int color = value.toInt();
148 curve->setPixmap(QPixmap::fromImage(ColorTools::rgbCurvePlane(curve->size(), (ColorTools::ColorsRGB)color)));
153 void EffectStackEdit::updateProjectFormat(MltVideoProfile profile, Timecode t)
159 void EffectStackEdit::updateParameter(const QString &name, const QString &value)
161 m_params.setAttribute(name, value);
164 void EffectStackEdit::transferParamDesc(const QDomElement d, int pos, int in, int out, bool isEffect)
167 if (m_keyframeEditor) delete m_keyframeEditor;
168 m_keyframeEditor = NULL;
172 if (m_params.isNull()) {
173 kDebug() << "// EMPTY EFFECT STACK";
177 QDomNodeList namenode = m_params.elementsByTagName("parameter");
178 QDomElement e = m_params.toElement();
179 const int minFrame = e.attribute("start").toInt();
180 const int maxFrame = e.attribute("end").toInt();
183 for (int i = 0; i < namenode.count() ; i++) {
184 QDomElement pa = namenode.item(i).toElement();
185 QDomNode na = pa.firstChildElement("name");
186 QString type = pa.attribute("type");
187 QString paramName = i18n(na.toElement().text().toUtf8().data());
188 QWidget * toFillin = new QWidget(m_baseWidget);
189 QString value = pa.attribute("value").isNull() ?
190 pa.attribute("default") : pa.attribute("value");
192 /** Currently supported parameter types are:
193 * constant (=double): a slider with an integer value (use the "factor" attribute to divide the value so that you can get a double
194 * list: a combobox containing a list of values to choose
196 * complex: designed for keyframe parameters, but old and not finished, do not use
197 * geometry: a rectangle that can be moved & resized, with possible keyframes, used in composite transition
198 * keyframe: a list widget with a list of entries (position and value)
199 * color: a color chooser button
200 * position: a slider representing the position of a frame in the current clip
201 * curve: a single curve representing multiple points
202 * wipe: a widget designed for the wipe transition, allowing to choose a position (left, right, top,...)
205 if (type == "double" || type == "constant") {
208 if (pa.attribute("min").startsWith('%'))
209 min = (int) ProfilesDialog::getStringEval(m_profile, pa.attribute("min"));
211 min = pa.attribute("min").toInt();
212 if (pa.attribute("max").startsWith('%'))
213 max = (int) ProfilesDialog::getStringEval(m_profile, pa.attribute("max"));
215 max = pa.attribute("max").toInt();
217 DoubleParameterWidget *doubleparam = new DoubleParameterWidget(paramName, (int)(value.toDouble() + 0.5), min, max,
218 pa.attribute("default").toInt(), pa.attribute("suffix"), this);
219 m_vbox->addWidget(doubleparam);
220 m_valueItems[paramName] = doubleparam;
221 connect(doubleparam, SIGNAL(valueChanged(int)), this, SLOT(collectAllParameters()));
222 } else if (type == "list") {
223 Listval *lsval = new Listval;
224 lsval->setupUi(toFillin);
225 QStringList listitems = pa.attribute("paramlist").split(',');
226 QStringList listitemsdisplay = pa.attribute("paramlistdisplay").split(',');
227 if (listitemsdisplay.count() != listitems.count()) listitemsdisplay = listitems;
228 //lsval->list->addItems(listitems);
229 lsval->list->setIconSize(QSize(30, 30));
230 for (int i = 0; i < listitems.count(); i++) {
231 lsval->list->addItem(listitemsdisplay.at(i), listitems.at(i));
232 QString entry = listitems.at(i);
233 if (!entry.isEmpty() && (entry.endsWith(".png") || entry.endsWith(".pgm"))) {
234 if (!EffectStackEdit::iconCache.contains(entry)) {
236 EffectStackEdit::iconCache[entry] = pix.scaled(30, 30);
238 lsval->list->setItemIcon(i, QPixmap::fromImage(iconCache[entry]));
241 if (!value.isEmpty()) lsval->list->setCurrentIndex(listitems.indexOf(value));
242 lsval->title->setTitle(paramName);
243 m_valueItems[paramName] = lsval;
244 connect(lsval->list, SIGNAL(currentIndexChanged(int)) , this, SLOT(collectAllParameters()));
245 m_uiItems.append(lsval);
246 } else if (type == "bool") {
247 Boolval *bval = new Boolval;
248 bval->setupUi(toFillin);
249 bval->checkBox->setCheckState(value == "0" ? Qt::Unchecked : Qt::Checked);
250 bval->checkBox->setText(paramName);
251 m_valueItems[paramName] = bval;
252 connect(bval->checkBox, SIGNAL(stateChanged(int)) , this, SLOT(collectAllParameters()));
253 m_uiItems.append(bval);
254 } else if (type == "complex") {
255 ComplexParameter *pl = new ComplexParameter;
256 pl->setupParam(d, pa.attribute("name"), 0, 100);
257 m_vbox->addWidget(pl);
258 m_valueItems[paramName+"complex"] = pl;
259 connect(pl, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters()));
260 } else if (type == "geometry") {
261 if (KdenliveSettings::on_monitor_effects()) {
262 GeometryWidget *geometry = new GeometryWidget(m_monitor, m_timecode, pos, isEffect, this);
263 // connect this before setupParam to make sure the monitor scene shows up at startup
264 connect(geometry, SIGNAL(checkMonitorPosition(int)), this, SIGNAL(checkMonitorPosition(int)));
265 if (minFrame == maxFrame)
266 geometry->setupParam(pa, m_in, m_out);
268 geometry->setupParam(pa, minFrame, maxFrame);
269 m_vbox->addWidget(geometry);
270 m_valueItems[paramName+"geometry"] = geometry;
271 connect(geometry, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters()));
272 connect(geometry, SIGNAL(seekToPos(int)), this, SIGNAL(seekTimeline(int)));
273 connect(this, SIGNAL(syncEffectsPos(int)), geometry, SLOT(slotSyncPosition(int)));
275 Geometryval *geo = new Geometryval(m_profile, m_timecode, m_frameSize, pos);
276 if (minFrame == maxFrame)
277 geo->setupParam(pa, m_in, m_out);
279 geo->setupParam(pa, minFrame, maxFrame);
280 m_vbox->addWidget(geo);
281 m_valueItems[paramName+"geometry"] = geo;
282 connect(geo, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters()));
283 connect(geo, SIGNAL(seekToPos(int)), this, SIGNAL(seekTimeline(int)));
284 connect(this, SIGNAL(syncEffectsPos(int)), geo, SLOT(slotSyncPosition(int)));
286 } else if (type == "keyframe" || type == "simplekeyframe") {
287 //Â keyframe editor widget
288 kDebug() << "min: " << m_in << ", MAX: " << m_out;
289 if (m_keyframeEditor == NULL) {
290 KeyframeEdit *geo = new KeyframeEdit(pa, m_in, m_in + m_out, pa.attribute("min").toInt(), pa.attribute("max").toInt(), m_timecode, e.attribute("active_keyframe", "-1").toInt());
291 m_vbox->addWidget(geo);
292 m_valueItems[paramName+"keyframe"] = geo;
293 m_keyframeEditor = geo;
294 connect(geo, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters()));
295 connect(geo, SIGNAL(seekToPos(int)), this, SIGNAL(seekTimeline(int)));
297 // we already have a keyframe editor, so just add another column for the new param
298 m_keyframeEditor->addParameter(pa);
300 } else if (type == "color") {
301 if (value.startsWith('#'))
302 value = value.replace('#', "0x");
304 ChooseColorWidget *choosecolor = new ChooseColorWidget(paramName, QColor(value.toUInt(&ok, 16)), this);
305 m_vbox->addWidget(choosecolor);
306 m_valueItems[paramName] = choosecolor;
307 connect(choosecolor, SIGNAL(displayMessage(const QString&, int)), this, SIGNAL(displayMessage(const QString&, int)));
308 connect(choosecolor, SIGNAL(modified()) , this, SLOT(collectAllParameters()));
309 } else if (type == "position") {
310 int pos = value.toInt();
311 if (d.attribute("id") == "fadein" || d.attribute("id") == "fade_from_black") {
313 } else if (d.attribute("id") == "fadeout" || d.attribute("id") == "fade_to_black") {
314 // fadeout position starts from clip end
315 pos = m_out - (pos - m_in);
317 PositionEdit *posedit = new PositionEdit(paramName, pos, 1, m_out, m_timecode);
318 m_vbox->addWidget(posedit);
319 m_valueItems[paramName+"position"] = posedit;
320 connect(posedit, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters()));
321 } else if (type == "curve") {
322 KisCurveWidget *curve = new KisCurveWidget(this);
323 curve->setMaxPoints(pa.attribute("max").toInt());
324 QList<QPointF> points;
325 int number = EffectsList::parameter(e, pa.attribute("number")).toInt();
326 QString inName = pa.attribute("inpoints");
327 QString outName = pa.attribute("outpoints");
328 int start = pa.attribute("min").toInt();
329 for (int j = start; j <= number; j++) {
331 in.replace("%i", QString::number(j));
332 QString out = outName;
333 out.replace("%i", QString::number(j));
334 points << QPointF(EffectsList::parameter(e, in).toDouble(), EffectsList::parameter(e, out).toDouble());
336 if (!points.isEmpty())
337 curve->setCurve(KisCubicCurve(points));
338 QSpinBox *spinin = new QSpinBox();
339 spinin->setRange(0, 1000);
340 QSpinBox *spinout = new QSpinBox();
341 spinout->setRange(0, 1000);
342 curve->setupInOutControls(spinin, spinout, 0, 1000);
343 m_vbox->addWidget(curve);
344 m_vbox->addWidget(spinin);
345 m_vbox->addWidget(spinout);
347 connect(curve, SIGNAL(modified()), this, SLOT(collectAllParameters()));
348 m_valueItems[paramName] = curve;
350 QString depends = pa.attribute("depends");
351 if (!depends.isEmpty())
352 meetDependency(paramName, type, EffectsList::parameter(e, depends));
353 } else if (type == "wipe") {
354 Wipeval *wpval = new Wipeval;
355 wpval->setupUi(toFillin);
356 wipeInfo w = getWipeInfo(value);
359 wpval->start_up->setChecked(true);
362 wpval->start_down->setChecked(true);
365 wpval->start_right->setChecked(true);
368 wpval->start_left->setChecked(true);
371 wpval->start_center->setChecked(true);
376 wpval->end_up->setChecked(true);
379 wpval->end_down->setChecked(true);
382 wpval->end_right->setChecked(true);
385 wpval->end_left->setChecked(true);
388 wpval->end_center->setChecked(true);
391 wpval->start_transp->setValue(w.startTransparency);
392 wpval->end_transp->setValue(w.endTransparency);
393 m_valueItems[paramName] = wpval;
394 connect(wpval->end_up, SIGNAL(clicked()), this, SLOT(collectAllParameters()));
395 connect(wpval->end_down, SIGNAL(clicked()), this, SLOT(collectAllParameters()));
396 connect(wpval->end_left, SIGNAL(clicked()), this, SLOT(collectAllParameters()));
397 connect(wpval->end_right, SIGNAL(clicked()), this, SLOT(collectAllParameters()));
398 connect(wpval->end_center, SIGNAL(clicked()), this, SLOT(collectAllParameters()));
399 connect(wpval->start_up, SIGNAL(clicked()), this, SLOT(collectAllParameters()));
400 connect(wpval->start_down, SIGNAL(clicked()), this, SLOT(collectAllParameters()));
401 connect(wpval->start_left, SIGNAL(clicked()), this, SLOT(collectAllParameters()));
402 connect(wpval->start_right, SIGNAL(clicked()), this, SLOT(collectAllParameters()));
403 connect(wpval->start_center, SIGNAL(clicked()), this, SLOT(collectAllParameters()));
404 connect(wpval->start_transp, SIGNAL(valueChanged(int)), this, SLOT(collectAllParameters()));
405 connect(wpval->end_transp, SIGNAL(valueChanged(int)), this, SLOT(collectAllParameters()));
406 //wpval->title->setTitle(na.toElement().text());
407 m_uiItems.append(wpval);
408 } else if (type == "url") {
409 Urlval *cval = new Urlval;
410 cval->setupUi(toFillin);
411 cval->label->setText(paramName);
412 cval->urlwidget->fileDialog()->setFilter(ProjectList::getExtensions());
413 m_valueItems[paramName] = cval;
414 cval->urlwidget->setUrl(KUrl(value));
415 connect(cval->urlwidget, SIGNAL(returnPressed()) , this, SLOT(collectAllParameters()));
416 connect(cval->urlwidget, SIGNAL(urlSelected(const KUrl&)) , this, SLOT(collectAllParameters()));
417 m_uiItems.append(cval);
424 m_vbox->addWidget(toFillin);
426 m_vbox->addStretch();
429 wipeInfo EffectStackEdit::getWipeInfo(QString value)
432 QString start = value.section(';', 0, 0);
433 QString end = value.section(';', 1, 1).section('=', 1, 1);
435 if (start.startsWith("-100%,0"))
437 else if (start.startsWith("100%,0"))
439 else if (start.startsWith("0%,100%"))
441 else if (start.startsWith("0%,-100%"))
446 if (start.count(':') == 2)
447 info.startTransparency = start.section(':', -1).toInt();
449 info.startTransparency = 100;
451 if (end.startsWith("-100%,0"))
453 else if (end.startsWith("100%,0"))
455 else if (end.startsWith("0%,100%"))
457 else if (end.startsWith("0%,-100%"))
462 if (end.count(':') == 2)
463 info.endTransparency = end.section(':', -1).toInt();
465 info.endTransparency = 100;
470 QString EffectStackEdit::getWipeString(wipeInfo info)
475 switch (info.start) {
477 start = "-100%,0%:100%x100%";
480 start = "100%,0%:100%x100%";
483 start = "0%,100%:100%x100%";
486 start = "0%,-100%:100%x100%";
489 start = "0%,0%:100%x100%";
492 start.append(':' + QString::number(info.startTransparency));
496 end = "-100%,0%:100%x100%";
499 end = "100%,0%:100%x100%";
502 end = "0%,100%:100%x100%";
505 end = "0%,-100%:100%x100%";
508 end = "0%,0%:100%x100%";
511 end.append(':' + QString::number(info.endTransparency));
512 return QString(start + ";-1=" + end);
515 void EffectStackEdit::collectAllParameters()
517 if (m_valueItems.isEmpty() || m_params.isNull()) return;
518 const QDomElement oldparam = m_params.cloneNode().toElement();
519 QDomElement newparam = oldparam.cloneNode().toElement();
520 QDomNodeList namenode = newparam.elementsByTagName("parameter");
522 for (int i = 0; i < namenode.count() ; i++) {
523 QDomNode pa = namenode.item(i);
524 QDomNode na = pa.firstChildElement("name");
525 QString type = pa.attributes().namedItem("type").nodeValue();
526 QString paramName = i18n(na.toElement().text().toUtf8().data());
527 if (type == "complex")
528 paramName.append("complex");
529 else if (type == "position")
530 paramName.append("position");
531 else if (type == "geometry")
532 paramName.append("geometry");
533 else if (type == "keyframe")
534 paramName.append("keyframe");
535 if (type != "simplekeyframe" && !m_valueItems.contains(paramName)) {
536 kDebug() << "// Param: " << paramName << " NOT FOUND";
541 if (type == "double" || type == "constant") {
542 DoubleParameterWidget *doubleparam = (DoubleParameterWidget*)m_valueItems.value(paramName);
543 setValue = QString::number(doubleparam->getValue());
544 } else if (type == "list") {
545 KComboBox *box = ((Listval*)m_valueItems.value(paramName))->list;
546 setValue = box->itemData(box->currentIndex()).toString();
547 } else if (type == "bool") {
548 QCheckBox *box = ((Boolval*)m_valueItems.value(paramName))->checkBox;
549 setValue = box->checkState() == Qt::Checked ? "1" : "0" ;
550 } else if (type == "color") {
551 ChooseColorWidget *choosecolor = ((ChooseColorWidget*)m_valueItems.value(paramName));
552 setValue = choosecolor->getColor().name();
553 } else if (type == "complex") {
554 ComplexParameter *complex = ((ComplexParameter*)m_valueItems.value(paramName));
555 namenode.item(i) = complex->getParamDesc();
556 } else if (type == "geometry") {
557 if (KdenliveSettings::on_monitor_effects()) {
558 GeometryWidget *geometry = ((GeometryWidget*)m_valueItems.value(paramName));
559 namenode.item(i).toElement().setAttribute("value", geometry->getValue());
561 Geometryval *geom = ((Geometryval*)m_valueItems.value(paramName));
562 namenode.item(i).toElement().setAttribute("value", geom->getValue());
564 } else if (type == "position") {
565 PositionEdit *pedit = ((PositionEdit*)m_valueItems.value(paramName));
566 int pos = pedit->getPosition();
567 setValue = QString::number(pos);
568 if (newparam.attribute("id") == "fadein" || newparam.attribute("id") == "fade_from_black") {
569 // Make sure duration is not longer than clip
572 pedit->setPosition(pos);
574 EffectsList::setParameter(newparam, "in", QString::number(m_in));
575 EffectsList::setParameter(newparam, "out", QString::number(m_in + pos));
577 } else if (newparam.attribute("id") == "fadeout" || newparam.attribute("id") == "fade_to_black") {
578 // Make sure duration is not longer than clip
581 pedit->setPosition(pos);
583 EffectsList::setParameter(newparam, "in", QString::number(m_out + m_in - pos));
584 EffectsList::setParameter(newparam, "out", QString::number(m_out + m_in));
587 } else if (type == "curve") {
588 KisCurveWidget *curve = ((KisCurveWidget*)m_valueItems.value(paramName));
589 QList<QPointF> points = curve->curve().points();
590 QString number = pa.attributes().namedItem("number").nodeValue();
591 QString inName = pa.attributes().namedItem("inpoints").nodeValue();
592 QString outName = pa.attributes().namedItem("outpoints").nodeValue();
593 int off = pa.attributes().namedItem("min").nodeValue().toInt();
594 int end = pa.attributes().namedItem("max").nodeValue().toInt();
595 EffectsList::setParameter(newparam, number, QString::number(points.count()));
596 for (int j = 0; (j < points.count() && j + off <= end); j++) {
598 in.replace("%i", QString::number(j + off));
599 QString out = outName;
600 out.replace("%i", QString::number(j + off));
601 EffectsList::setParameter(newparam, in, QString::number(points.at(j).x()));
602 EffectsList::setParameter(newparam, out, QString::number(points.at(j).y()));
604 QString depends = pa.attributes().namedItem("depends").nodeValue();
605 if (!depends.isEmpty())
606 meetDependency(paramName, type, EffectsList::parameter(newparam, depends));
607 } else if (type == "wipe") {
608 Wipeval *wp = (Wipeval*)m_valueItems.value(paramName);
610 if (wp->start_left->isChecked())
612 else if (wp->start_right->isChecked())
614 else if (wp->start_up->isChecked())
616 else if (wp->start_down->isChecked())
618 else if (wp->start_center->isChecked())
622 info.startTransparency = wp->start_transp->value();
624 if (wp->end_left->isChecked())
626 else if (wp->end_right->isChecked())
628 else if (wp->end_up->isChecked())
630 else if (wp->end_down->isChecked())
632 else if (wp->end_center->isChecked())
636 info.endTransparency = wp->end_transp->value();
638 setValue = getWipeString(info);
639 } else if ((type == "simplekeyframe" || type == "keyframe") && m_keyframeEditor) {
640 QString realName = i18n(na.toElement().text().toUtf8().data());
641 QString val = m_keyframeEditor->getValue(realName);
642 kDebug() << "SET VALUE: " << val;
643 namenode.item(i).toElement().setAttribute("keyframes", val);
644 } else if (type == "url") {
645 KUrlRequester *req = ((Urlval*)m_valueItems.value(paramName))->urlwidget;
646 setValue = req->url().path();
649 if (!setValue.isNull())
650 pa.attributes().namedItem("value").setNodeValue(setValue);
653 emit parameterChanged(oldparam, newparam);
656 void EffectStackEdit::clearAllItems()
659 m_valueItems.clear();
661 /*while (!m_items.isEmpty()) {
662 QWidget *die = m_items.takeFirst();
666 //qDeleteAll(m_uiItems);
668 while ((child = m_vbox->takeAt(0)) != 0) {
669 QWidget *wid = child->widget();
673 m_keyframeEditor = NULL;
677 void EffectStackEdit::slotSyncEffectsPos(int pos)
679 emit syncEffectsPos(pos);