X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmonitormanager.h;h=91ba702145abd01d0ca021de748d979d77a73972;hb=fe156af311a975e3a4be1b9a736d0436010cae59;hp=880b6d1279a924390725468115922258b7a12e46;hpb=ddcc903a2d2363bec128c1effd7a4f6c1e820f82;p=kdenlive diff --git a/src/monitormanager.h b/src/monitormanager.h index 880b6d12..91ba7021 100644 --- a/src/monitormanager.h +++ b/src/monitormanager.h @@ -25,6 +25,7 @@ #include "recmonitor.h" #include "timecode.h" +class KdenliveDoc; class MonitorManager : public QObject { @@ -45,12 +46,16 @@ public: AbstractMonitor *monitor(Kdenlive::MONITORID monitorName); void updateScopeSource(); void clearScopeSource(); + /** @brief Returns current project's folder. */ + QString getProjectFolder() const; + /** @brief Sets current document for later reference. */ + void setDocument(KdenliveDoc *doc); public slots: /** @brief Activates a monitor. * @param name name of the monitor to activate */ - bool activateMonitor(Kdenlive::MONITORID); + bool activateMonitor(Kdenlive::MONITORID, bool forceRefresh = false); bool isActive(Kdenlive::MONITORID id) const; void slotPlay(); void slotPause(); @@ -79,6 +84,7 @@ private slots: void slotRefreshCurrentMonitor(const QString &id); private: + KdenliveDoc *m_document; Monitor *m_clipMonitor; Monitor *m_projectMonitor; Timecode m_timecode;