X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fabstractmonitor.h;h=537f5d74d470ccedc3db9158b0de880698f424f4;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=5eea22735cad20db9623f2f896f17929975e5ba1;hpb=89b6a842077844b0a68c3cc5ac471f57487f9ff2;p=kdenlive diff --git a/src/abstractmonitor.h b/src/abstractmonitor.h index 5eea2273..537f5d74 100644 --- a/src/abstractmonitor.h +++ b/src/abstractmonitor.h @@ -26,9 +26,7 @@ #include #include #include -#include #include -#include #include @@ -43,10 +41,16 @@ Q_OBJECT public: * @param name A unique identifier for this renderer * @param winid The parent widget identifier (required for SDL display). Set to 0 for OpenGL rendering * @param profile The MLT profile used for the renderer (default one will be used if empty). */ - explicit AbstractRender(Kdenlive::MONITORID name, QWidget *parent = 0):QObject(parent), sendFrameForAnalysis(false), m_name(name) {}; + explicit AbstractRender(Kdenlive::MONITORID name, QWidget *parent = 0) + : QObject(parent), + sendFrameForAnalysis(false), + analyseAudio(false), + m_name(name) + { + } /** @brief Destroy the MLT Renderer. */ - virtual ~AbstractRender() {}; + virtual ~AbstractRender() {} /** @brief This property is used to decide if the renderer should convert it's frames to QImage for use in other Kdenlive widgets. */ bool sendFrameForAnalysis; @@ -54,7 +58,7 @@ Q_OBJECT public: /** @brief This property is used to decide if the renderer should send audio data for monitoring. */ bool analyseAudio; - const QString &name() const {return m_name;}; + const QString &name() const {return m_name;} /** @brief Someone needs us to send again a frame. */ virtual void sendFrameUpdate() = 0; @@ -64,10 +68,10 @@ private: signals: /** @brief The renderer refreshed the current frame. */ - void frameUpdated(QImage); + void frameUpdated(const QImage &); /** @brief This signal contains the audio of the current frame. */ - void audioSamplesSignal(QVector,int,int,int); + void audioSamplesSignal(const QVector&,int,int,int); }; @@ -91,7 +95,7 @@ class AbstractMonitor : public QWidget Q_OBJECT public: AbstractMonitor(Kdenlive::MONITORID id, MonitorManager *manager, QWidget *parent = 0); - Kdenlive::MONITORID id() {return m_id;}; + Kdenlive::MONITORID id() {return m_id;} virtual ~AbstractMonitor(); virtual AbstractRender *abstractRender() = 0; bool isActive() const; @@ -105,7 +109,7 @@ public slots: virtual void start() = 0; virtual void slotPlay() = 0; virtual void slotMouseSeek(int eventDelta, bool fast) = 0; - bool slotActivateMonitor(); + bool slotActivateMonitor(bool forceRefresh = false); virtual void slotSwitchFullScreen() = 0; protected: