+void Monitor::resetSize()
+{
+ m_ui.video_frame->setMinimumSize(0, 0);
+}
+
+DocClipBase *Monitor::activeClip()
+{
+ return m_currentClip;
+}
+
+void Monitor::updateMarkers(DocClipBase *source)
+{
+ if (source == m_currentClip && source != NULL) {
+ m_markerMenu->clear();
+ QList <CommentedTime> markers = m_currentClip->commentedSnapMarkers();
+ if (!markers.isEmpty()) {
+ QList <int> marks;
+ for (int i = 0; i < markers.count(); i++) {
+ int pos = (int) markers.at(i).time().frames(m_monitorManager->timecode().fps());
+ marks.append(pos);
+ QString position = m_monitorManager->timecode().getTimecode(markers.at(i).time()) + ' ' + markers.at(i).comment();
+ QAction *go = m_markerMenu->addAction(position);
+ go->setData(pos);
+ }
+ m_ruler->setMarkers(marks);
+ } else m_ruler->setMarkers(QList <int>());
+ m_markerMenu->setEnabled(!m_markerMenu->isEmpty());
+ }
+}
+
+void Monitor::slotSeekToPreviousSnap()
+{
+ if (m_currentClip) slotSeek(getSnapForPos(true).frames(m_monitorManager->timecode().fps()));
+}
+
+void Monitor::slotSeekToNextSnap()
+{
+ if (m_currentClip) slotSeek(getSnapForPos(false).frames(m_monitorManager->timecode().fps()));
+}
+
+GenTime Monitor::position()
+{
+ return render->seekPosition();