From: Jean-Baptiste Mardelle Date: Wed, 20 Feb 2008 23:03:33 +0000 (+0000) Subject: delete effect from effect stack X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=27f7039773d3ff5e27df4af6d2964b0ed8ba5d23;p=kdenlive delete effect from effect stack svn path=/branches/KDE4/; revision=1893 --- diff --git a/src/effectstackview.cpp b/src/effectstackview.cpp index f82d72a1..58131f97 100644 --- a/src/effectstackview.cpp +++ b/src/effectstackview.cpp @@ -161,7 +161,9 @@ void EffectStackView::slotItemDown(){ void EffectStackView::slotItemDel(){ if (activeRow=0 ){ + emit removeEffect(clipref, clipref->effectAt(activeRow)); effects.removeAt(activeRow); + } if (effects.size()>0 && activeRow>0) activeRow--; diff --git a/src/effectstackview.h b/src/effectstackview.h index 703104ad..662fd5e6 100644 --- a/src/effectstackview.h +++ b/src/effectstackview.h @@ -55,6 +55,10 @@ public slots: void slotShowInTimeline(); void slotParameterChanged(const QString&); void itemSelectionChanged(); + +signals: + void removeEffect(ClipItem*, QDomElement); + void updateClipEffect(ClipItem*, QDomElement); }; #endif diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 31bc3df8..24dbd517 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -442,6 +442,10 @@ void MainWindow::connectDocument(TrackView *trackView, KdenliveDoc *doc) //chang connect(doc, SIGNAL(updateClipDisplay(int)), m_projectList, SLOT(slotUpdateClip(int))); connect(doc, SIGNAL(deletTimelineClip(int)), trackView, SLOT(slotDeleteClip(int))); connect(trackView, SIGNAL(clipItemSelected(ClipItem*)), effectStack, SLOT(slotClipItemSelected(ClipItem*))); + connect(effectStack, SIGNAL(updateClipEffect(ClipItem*, QDomElement)), trackView->projectView(), SLOT(slotUpdateClipEffect(ClipItem*, QDomElement))); + connect(effectStack, SIGNAL(removeEffect(ClipItem*, QDomElement)), trackView->projectView(), SLOT(slotDeleteEffect(ClipItem*, QDomElement))); + + m_projectList->setDocument(doc); m_monitorManager->setTimecode(doc->timecode()); doc->setRenderer(m_projectMonitor->render);