-void MonitorManager::slotResetProfiles() {
- activateMonitor("clip");
- m_clipMonitor->resetProfile();
- activateMonitor("project");
- m_projectMonitor->resetProfile();
- //m_projectMonitor->refreshMonitor(true);
+void MonitorManager::slotResetProfiles()
+{
+ if (m_projectMonitor == NULL || m_clipMonitor == NULL) return;
+ blockSignals(true);
+ QString active = m_activeMonitor ? m_activeMonitor->name() : QString();
+ m_clipMonitor->resetProfile(KdenliveSettings::current_profile());
+ m_projectMonitor->resetProfile(KdenliveSettings::current_profile());
+ if (!active.isEmpty()) activateMonitor(active);
+ blockSignals(false);
+ if (m_activeMonitor) m_activeMonitor->parentWidget()->raise();
+ emit checkColorScopes();
+}
+
+void MonitorManager::slotRefreshCurrentMonitor()
+{
+ if (m_activeMonitor == m_clipMonitor) m_clipMonitor->refreshMonitor();
+ else m_projectMonitor->refreshMonitor();
+}
+
+void MonitorManager::slotUpdateAudioMonitoring()
+{
+ // if(...) added since they are 0x0 when the config wizard is running! --Granjow
+ if (m_clipMonitor) {
+ m_clipMonitor->render->analyseAudio = KdenliveSettings::monitor_audio();
+ }
+ if (m_projectMonitor) {
+ m_projectMonitor->render->analyseAudio = KdenliveSettings::monitor_audio();
+ }
+}
+
+void MonitorManager::clearScopeSource()
+{
+ emit clearScopes();
+}
+
+void MonitorManager::updateScopeSource()
+{
+ emit checkColorScopes();
+}
+
+AbstractRender *MonitorManager::activeRenderer()
+{
+ if (m_activeMonitor) {
+ return m_activeMonitor->abstractRender();
+ }
+ return NULL;