}
}
-void MainWindow::slotAddEffect(QDomElement effect)
+void MainWindow::slotAddEffect(QDomElement effect, GenTime pos, int track)
{
if (!m_activeDocument) return;
/*QMap <QString, QString> filter;
filter = m_audioEffects.effect(effectName);
else
filter = m_customEffects.effect(effectName);*/
+ if (effect.isNull()) {
+ kDebug()<<"--- ERROR, TRYING TO APPEND NULL EFFECT";
+ return;
+ }
TrackView *currentTimeLine = (TrackView *) m_timelineArea->currentWidget();
- currentTimeLine->projectView()->slotAddEffect(effect);
+ currentTimeLine->projectView()->slotAddEffect(effect, pos, track);
}
void MainWindow::slotRaiseMonitor(bool clipMonitor)
statusProgressBar->setVisible(false);
}
}
+ if (event->type()==10010){
+ EffectEvent* p=(EffectEvent*) event;
+ slotAddEffect(p->xml(), p->pos(), p->track());
+ }
+
}
#include "mainwindow.moc"