connect(render, SIGNAL(playListDuration(int)), this, SLOT(adjustRulerSize(int)));
connect(render, SIGNAL(rendererPosition(int)), this, SLOT(seekCursor(int)));
connect(render, SIGNAL(rendererStopped(int)), this, SLOT(rendererStopped(int)));
- if (name != "clip") connect(render, SIGNAL(rendererPosition(int)), this, SIGNAL(renderPosition(int)));
+ if (name != "clip") {
+ connect(render, SIGNAL(rendererPosition(int)), this, SIGNAL(renderPosition(int)));
+ connect(render, SIGNAL(durationChanged(int)), this, SIGNAL(durationChanged(int)));
+ }
//render->createVideoXWindow(ui.video_frame->winId(), -1);
int width = m_ruler->width();
m_ruler->setLength(width);
else slotRewindOneFrame();
}
+void Monitor::activateMonitor()
+{
+ if (!m_isActive) m_monitorManager->activateMonitor(m_name);
+}
+
void Monitor::slotSeek(int pos)
{
if (!m_isActive) m_monitorManager->activateMonitor(m_name);
int realPos = ((double) pos) / m_scale;
render->seekToFrame(realPos);
m_position = realPos;
+ emit renderPosition(m_position);
ui.monitor_time->setText(m_monitorManager->timecode().getTimecodeFromFrames(m_position));
}