MonitorManager::MonitorManager(QWidget *parent)
: QObject(parent) {
-
-
}
void MonitorManager::setTimecode(Timecode tc) {
m_projectMonitor = projectMonitor;
}
+bool MonitorManager::projectMonitorFocused() {
+ if (m_activeMonitor != "clip") return true;
+ return false;
+}
void MonitorManager::activateMonitor(QString name) {
if (m_activeMonitor == name) return;
else m_projectMonitor->slotPlay();
}
-void MonitorManager::resetProfiles(QString prof) {
- m_clipMonitor->resetProfile(prof);
- m_projectMonitor->resetProfile(prof);
+void MonitorManager::slotRewind(double speed) {
+ if (m_activeMonitor == "clip") m_clipMonitor->slotRewind(speed);
+ else m_projectMonitor->slotRewind(speed);
+}
+
+void MonitorManager::slotForward(double speed) {
+ if (m_activeMonitor == "clip") m_clipMonitor->slotForward(speed);
+ else m_projectMonitor->slotForward(speed);
+}
+
+void MonitorManager::slotRewindOneFrame() {
+ if (m_activeMonitor == "clip") m_clipMonitor->slotRewindOneFrame();
+ else m_projectMonitor->slotRewindOneFrame();
+}
+
+void MonitorManager::slotForwardOneFrame() {
+ if (m_activeMonitor == "clip") m_clipMonitor->slotForwardOneFrame();
+ else m_projectMonitor->slotForwardOneFrame();
+}
+
+void MonitorManager::slotStart() {
+ if (m_activeMonitor == "clip") m_clipMonitor->slotStart();
+ else m_projectMonitor->slotStart();
+}
+
+void MonitorManager::slotEnd() {
+ if (m_activeMonitor == "clip") m_clipMonitor->slotEnd();
+ else m_projectMonitor->slotEnd();
+}
+
+void MonitorManager::resetProfiles() {
+ activateMonitor("clip");
+ m_clipMonitor->resetProfile();
+ activateMonitor("project");
+ m_projectMonitor->resetProfile();
+ //m_projectMonitor->refreshMonitor(true);
}
#include "monitormanager.moc"