]> git.sesse.net Git - kdenlive/blobdiff - src/stopmotion/stopmotion.h
Cleanup: remove duplicate monitor code, allow fullscreen for record monitor
[kdenlive] / src / stopmotion / stopmotion.h
index cf88542efd56a96fe9fe7f3619fa04eca9cb3810..32fe04e784ca29a949f3c9ef0b14af71e2cce79a 100644 (file)
@@ -19,7 +19,7 @@
 #define STOPMOTION_H
 
 #include "ui_stopmotion_ui.h"
-#include "../blackmagic/capture.h"
+#include "definitions.h"
 
 #include <KUrl>
 #include <QLabel>
@@ -62,18 +62,23 @@ class StopmotionMonitor : public AbstractMonitor
 {
     Q_OBJECT
 public:
-    StopmotionMonitor(QWidget *parent);
+    StopmotionMonitor(MonitorManager *manager, QWidget *parent);
     ~StopmotionMonitor();
     AbstractRender *abstractRender();
-    const QString name() const;
+    Kdenlive::MONITORID id() const;
     void setRender(MltDeviceCapture *render);
+    void pause();
+    void unpause();
 
 private:
     MltDeviceCapture *m_captureDevice;
 
 public slots:
-    virtual void stop();
-    virtual void start();
+    void stop();
+    void start();
+    void slotPlay();
+    void slotMouseSeek(int eventDelta, bool fast);
+    void slotSwitchFullScreen();
 
 signals:
     void stopCapture();
@@ -103,7 +108,7 @@ private:
     /** @brief Capture holder that will handle all video operation. */
     MltDeviceCapture *m_captureDevice;
 
-    VideoPreviewContainer *m_videoBox;
+    VideoContainer *m_videoBox;
 
     /** @brief Holds the name of the current sequence.
      * Files will be saved in project folder with name: sequence001.png */
@@ -153,7 +158,7 @@ private:
     StopmotionMonitor *m_monitor;
 
     /** @brief Create the XML playlist. */
-    const QString createProducer(MltVideoProfile profile, const QString service, const QString resource);
+    const QString createProducer(MltVideoProfile profile, const QString &service, const QString &resource);
 
     /** @brief A new frame arrived, reload overlay. */
     void reloadOverlay();
@@ -226,7 +231,7 @@ private slots:
     void slotConfigure();
 
     /** @brief Prepare to crete thumb for newly captured frame. */
-    void slotNewThumb(const QString path);
+    void slotNewThumb(const QString &path);
 
     /** @brief Set the effect to be applied to overlay frame. */
     void slotUpdateOverlayEffect(QAction* act);
@@ -248,7 +253,7 @@ private slots:
 
 signals:
     /** @brief Ask to add sequence to current project. */
-    void addOrUpdateSequence(const QString);
+    void addOrUpdateSequence(const QString &);
 
     void doCreateThumbs(QImage, int);
     void gotFrame(QImage);