X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmonitormanager.h;h=8ce0e3f3ff4d8f4eaee822263ed141ac64148b26;hb=464c319bc0c7916060fe5f1d425136e257e70ecd;hp=9369c5ace6bceeede8cc26929a24b8c8cab1853d;hpb=a54db1d1e6a90edadbbb58d46870937130c692e7;p=kdenlive diff --git a/src/monitormanager.h b/src/monitormanager.h index 9369c5ac..8ce0e3f3 100644 --- a/src/monitormanager.h +++ b/src/monitormanager.h @@ -39,6 +39,10 @@ public: void resetProfiles(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); void updateScopeSource(); void clearScopeSource(); @@ -46,8 +50,8 @@ public slots: /** @brief Activates a monitor. * @param name name of the monitor to activate */ - void activateMonitor(QString name = QString()); - bool isActive(const QString &name) const; + bool activateMonitor(Kdenlive::MONITORID, bool forceRefresh = false); + bool isActive(Kdenlive::MONITORID id) const; void slotPlay(); void slotPause(); void slotPlayZone(); @@ -61,6 +65,9 @@ public slots: void slotStart(); void slotEnd(); void slotResetProfiles(); + + /** @brief Switch current monitor to fullscreen. */ + void slotSwitchFullscreen(); /** @brief Switches between project and clip monitor. * @ref activateMonitor @@ -69,7 +76,7 @@ public slots: void slotUpdateAudioMonitoring(); private slots: - void slotRefreshCurrentMonitor(); + void slotRefreshCurrentMonitor(const QString &id); private: Monitor *m_clipMonitor;