]> git.sesse.net Git - kdenlive/blobdiff - src/stopmotion/stopmotion.h
New: analyse stopmotion video feed through color scopes
[kdenlive] / src / stopmotion / stopmotion.h
index 0f3f27bbca4bfbe1d6361cd0304a849eee1c7ddf..f102f41ffcd5b818fd4ffffd7c524e94872a0e4e 100644 (file)
@@ -36,6 +36,7 @@ public:
 protected:
     virtual void paintEvent(QPaintEvent * event);
     virtual void wheelEvent(QWheelEvent * event);
+    virtual void mousePressEvent(QMouseEvent *);
 
 private:
     QImage m_img;
@@ -44,6 +45,9 @@ signals:
     /** @brief Seek to next or previous frame.
      *  @param forward set to true to go to next frame, fals to go to previous frame */
     void seek(bool forward);
+
+    /** @brief Switch to live view. */
+    void switchToLive();
 };
 
 class StopmotionWidget : public QDialog , public Ui::Stopmotion_UI
@@ -56,7 +60,7 @@ public:
      * @param projectFolder The current project folder, where captured files will be stored.
      * @param actions The actions for this widget that can have a keyboard shortcut.
      * @param parent (optional) parent widget */
-    StopmotionWidget(KUrl projectFolder, const QList< QAction * > actions, QWidget *parent = 0);
+    StopmotionWidget(KUrl projectFolder, QList< QAction * > actions, QWidget *parent = 0);
     virtual ~StopmotionWidget();
 
 protected:
@@ -116,11 +120,13 @@ private:
     int m_effectIndex;
 #endif
 
-private slots:
+public slots:
     /** @brief Display the live feed from capture device.
      @param isOn enable or disable the feature */
     void slotLive(bool isOn);
 
+private slots:
+
     /** @brief Display the last captured frame over current live feed.
      @param isOn enable or disable the feature */
     void slotShowOverlay(bool isOn);
@@ -185,13 +191,19 @@ private slots:
     /** @brief Set the effect to be applied to overlay frame. */
     void slotUpdateOverlayEffect(QAction *act);
 
-    /** @brief Switch between live view / currently selected fram. */
+    /** @brief Switch between live view / currently selected frame. */
     void slotSwitchLive();
+
+    /** @brief Delete current frame from disk. */
+    void slotRemoveFrame();
+    /** @brief Enable / disable frame analysis (in color scopes). */
+    void slotSwitchAnalyse(bool isOn);
 signals:
     /** @brief Ask to add sequence to current project. */
     void addOrUpdateSequence(const QString);
 
     void doCreateThumbs(QImage, int);
+    void gotFrame(QImage);
 };
 
 #endif