#include "monitormanager.h"
#include "renderer.h"
#include "kdenlivesettings.h"
+#include "kdenlivedoc.h"
#include <mlt++/Mlt.h>
MonitorManager::MonitorManager(QWidget *parent) :
QObject(parent),
+ m_document(NULL),
m_clipMonitor(NULL),
m_projectMonitor(NULL),
m_activeMonitor(NULL)
return m_timecode;
}
+void MonitorManager::setDocument(KdenliveDoc *doc)
+{
+ m_document = doc;
+}
+
void MonitorManager::initMonitors(Monitor *clipMonitor, Monitor *projectMonitor, RecMonitor *recMonitor)
{
m_clipMonitor = clipMonitor;
void MonitorManager::slotResetProfiles()
{
- if (m_projectMonitor == NULL || m_clipMonitor == NULL) return;
+ if (m_projectMonitor == NULL || m_clipMonitor == NULL) {
+ return;
+ }
blockSignals(true);
Kdenlive::MONITORID active = m_activeMonitor ? m_activeMonitor->id() : Kdenlive::noMonitor;
m_clipMonitor->resetProfile(KdenliveSettings::current_profile());
if (m_activeMonitor) m_activeMonitor->slotSwitchFullScreen();
}
+QString MonitorManager::getProjectFolder() const
+{
+ if (m_document == NULL) {
+ kDebug()<<" + + +NULL DOC!!";
+ return QString();
+ }
+ return m_document->projectFolder().path(KUrl::AddTrailingSlash);
+}
+
+
#include "monitormanager.moc"