connect(m_projectMonitorDock, SIGNAL(visibilityChanged(bool)), m_projectMonitor, SLOT(refreshMonitor(bool)));
connect(m_clipMonitorDock, SIGNAL(visibilityChanged(bool)), m_clipMonitor, SLOT(refreshMonitor(bool)));
//connect(m_monitorManager, SIGNAL(connectMonitors()), this, SLOT(slotConnectMonitors()));
- connect(m_monitorManager, SIGNAL(raiseMonitor(AbstractMonitor *)), this, SLOT(slotRaiseMonitor(AbstractMonitor *)));
connect(m_monitorManager, SIGNAL(checkColorScopes()), this, SLOT(slotUpdateColorScopes()));
connect(m_monitorManager, SIGNAL(clearScopes()), this, SLOT(slotClearColorScopes()));
connect(m_effectList, SIGNAL(addEffect(const QDomElement)), this, SLOT(slotAddEffect(const QDomElement)));
else m_activeTimeline->projectView()->slotAddEffect(effectToAdd, GenTime(), -1);
}
-void MainWindow::slotRaiseMonitor(AbstractMonitor *monitor)
-{
- if (monitor == m_clipMonitor) m_clipMonitorDock->raise();
- else if (monitor == m_projectMonitor) m_projectMonitorDock->raise();
-}
-
void MainWindow::slotUpdateClip(const QString &id)
{
if (!m_activeDocument) return;
/** @brief Reflects setting changes to the GUI. */
void updateConfiguration();
void slotConnectMonitors();
- void slotRaiseMonitor(AbstractMonitor *monitor);
void slotUpdateClip(const QString &id);
void slotUpdateMousePosition(int pos);
void slotAddEffect(const QDomElement effect);
for (int i = 0; i < m_monitorsList.count(); i++) {
if (m_monitorsList.at(i)->name() == name) {
m_activeMonitor = m_monitorsList.at(i);
- emit raiseMonitor(m_activeMonitor);
}
else m_monitorsList.at(i)->stop();
}
- if (m_activeMonitor) m_activeMonitor->start();
+ if (m_activeMonitor) {
+ m_activeMonitor->parentWidget()->raise();
+ m_activeMonitor->start();
+ }
emit checkColorScopes();
}
//m_projectMonitor->refreshMonitor(true);
if (!active.isEmpty()) activateMonitor(active);
blockSignals(false);
- emit raiseMonitor(m_activeMonitor);
+ m_activeMonitor->parentWidget()->raise();
emit checkColorScopes();
}
QList <AbstractMonitor *>m_monitorsList;
signals:
- /** @brief Emitted when the active monitor changes */
- void raiseMonitor(AbstractMonitor *);
/** @brief When the monitor changed, update the visible color scopes */
void checkColorScopes();
/** @brief When the active monitor renderer was deleted, reset color scopes */