connect(m_trackview, SIGNAL(trackHeightChanged()), this, SLOT(slotRebuildTrackHeaders()));
connect(m_trackview, SIGNAL(tracksChanged()), this, SLOT(slotReloadTracks()));
connect(m_trackview, SIGNAL(updateTrackHeaders()), this, SLOT(slotRepaintTracks()));
+ connect(m_trackview, SIGNAL(showTrackEffects(int, EffectsList)), this, SIGNAL(showTrackEffects(int, EffectsList)));
parseDocument(m_doc->toXml());
if (m_doc->setSceneList() == -1) *ok = false;
return m_projectTracks - 1;
}
+bool TrackView::checkProjectAudio() const
+{
+ bool hasAudio = false;
+ const QList <TrackInfo> list = m_doc->tracksList();
+ int max = list.count();
+ for (int i = 0; i < max; i++) {
+ TrackInfo info = list.at(max - i - 1);
+ if (!info.isMute && m_trackview->hasAudio(i)) {
+ hasAudio = true;
+ break;
+ }
+ }
+ return hasAudio;
+}
+
int TrackView::inPoint() const
{
return m_ruler->inPoint();
connect(header, SIGNAL(insertTrack(int)), this, SIGNAL(insertTrack(int)));
connect(header, SIGNAL(renameTrack(int, QString)), this, SLOT(slotRenameTrack(int, QString)));
connect(header, SIGNAL(configTrack(int)), this, SIGNAL(configTrack(int)));
+ connect(header, SIGNAL(addTrackInfo(const QDomElement, int)), m_trackview, SLOT(slotAddTrackEffect(const QDomElement, int)));
+ connect(header, SIGNAL(showTrackEffects(int)), this, SLOT(slotShowTrackEffects(int)));
headers_container->layout()->addWidget(header);
}
frame = new QFrame(this);
m_ruler->update();
}
+void TrackView::slotShowTrackEffects(int ix)
+{
+ emit showTrackEffects(m_doc->tracksCount() - ix, m_doc->getTrackEffects(ix));
+}
+
#include "trackview.moc"