X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmonitormanager.h;h=aa243afef619b473dec9452b8c5d4281948f93e1;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=8ce0e3f3ff4d8f4eaee822263ed141ac64148b26;hpb=cdf2b2a097309ddfa428cc6b0650b907fbfe3dde;p=kdenlive diff --git a/src/monitormanager.h b/src/monitormanager.h index 8ce0e3f3..aa243afe 100644 --- a/src/monitormanager.h +++ b/src/monitormanager.h @@ -25,33 +25,40 @@ #include "recmonitor.h" #include "timecode.h" +class KdenliveDoc; class MonitorManager : public QObject { Q_OBJECT public: - MonitorManager(QWidget *parent = 0); + explicit MonitorManager(QWidget *parent = 0); void initMonitors(Monitor *clipMonitor, Monitor *projectMonitor, RecMonitor *recMonitor); void appendMonitor(AbstractMonitor *monitor); void removeMonitor(AbstractMonitor *monitor); - Timecode timecode(); - void resetProfiles(Timecode tc); + Timecode timecode() const; + void resetProfiles(const Timecode &tc); void stopActiveMonitor(); AbstractRender *activeRenderer(); /** Searches for a monitor with the given name. @return NULL, if no monitor could be found, or the monitor otherwise. */ - AbstractMonitor *monitor(Kdenlive::MONITORID monitorName); + 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); + /** @brief Change an MLT consumer property for both monitors. */ + void setConsumerProperty(const QString &name, const QString &value); public slots: /** @brief Activates a monitor. * @param name name of the monitor to activate */ - bool activateMonitor(Kdenlive::MONITORID, bool forceRefresh = false); - bool isActive(Kdenlive::MONITORID id) const; + bool activateMonitor(Kdenlive::MonitorId, bool forceRefresh = false); + bool isActive(Kdenlive::MonitorId id) const; void slotPlay(); void slotPause(); void slotPlayZone(); @@ -79,6 +86,7 @@ private slots: void slotRefreshCurrentMonitor(const QString &id); private: + KdenliveDoc *m_document; Monitor *m_clipMonitor; Monitor *m_projectMonitor; Timecode m_timecode;