+#include "mainwindow.h"
+
+
+EffectStackView::EffectStackView(QWidget *parent)
+ : QWidget(parent) {
+ ui.setupUi(this);
+ effectedit = new EffectStackEdit(ui.frame, this);
+ //ui.effectlist->horizontalHeader()->setVisible(false);
+ //ui.effectlist->verticalHeader()->setVisible(false);
+ clipref = NULL;
+
+ ui.buttonNew->setIcon(KIcon("document-new"));
+ ui.buttonNew->setToolTip(i18n("Add new effect"));
+ ui.buttonUp->setIcon(KIcon("go-up"));
+ ui.buttonUp->setToolTip(i18n("Move effect up"));
+ ui.buttonDown->setIcon(KIcon("go-down"));
+ ui.buttonDown->setToolTip(i18n("Move effect down"));
+ ui.buttonDel->setIcon(KIcon("trash-empty"));
+ ui.buttonDel->setToolTip(i18n("Delete effect"));
+ ui.buttonSave->setIcon(KIcon("document-save"));
+ ui.buttonSave->setToolTip(i18n("Save effect"));
+ ui.buttonReset->setIcon(KIcon("view-refresh"));
+ ui.buttonReset->setToolTip(i18n("Reset effect"));
+
+
+ ui.effectlist->setDragDropMode(QAbstractItemView::NoDragDrop);//use internal if drop is recognised right
+
+ connect(ui.effectlist, SIGNAL(itemSelectionChanged()), this , SLOT(slotItemSelectionChanged()));
+ connect(ui.effectlist, SIGNAL(itemChanged(QListWidgetItem *)), this , SLOT(slotItemChanged(QListWidgetItem *)));
+ connect(ui.buttonNew, SIGNAL(clicked()), this, SLOT(slotNewEffect()));
+ connect(ui.buttonUp, SIGNAL(clicked()), this, SLOT(slotItemUp()));
+ connect(ui.buttonDown, SIGNAL(clicked()), this, SLOT(slotItemDown()));
+ connect(ui.buttonDel, SIGNAL(clicked()), this, SLOT(slotItemDel()));
+ connect(ui.buttonSave, SIGNAL(clicked()), this, SLOT(slotSaveEffect()));
+ connect(ui.buttonReset, SIGNAL(clicked()), this, SLOT(slotResetEffect()));
+ connect(this, SIGNAL(transferParamDesc(const QDomElement&, int , int)), effectedit , SLOT(transferParamDesc(const QDomElement&, int , int)));
+ connect(effectedit, SIGNAL(parameterChanged(const QDomElement&, const QDomElement&)), this , SLOT(slotUpdateEffectParams(const QDomElement&, const QDomElement&)));
+ effectLists["audio"] = &MainWindow::audioEffects;
+ effectLists["video"] = &MainWindow::videoEffects;
+ effectLists["custom"] = &MainWindow::customEffects;