void EffectStackView::slotItemDel(){
if (activeRow<effects.size() && activeRow>=0 ){
+ emit removeEffect(clipref, clipref->effectAt(activeRow));
effects.removeAt(activeRow);
+
}
if (effects.size()>0 && activeRow>0)
activeRow--;
void slotShowInTimeline();
void slotParameterChanged(const QString&);
void itemSelectionChanged();
+
+signals:
+ void removeEffect(ClipItem*, QDomElement);
+ void updateClipEffect(ClipItem*, QDomElement);
};
#endif
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);