]> git.sesse.net Git - kdenlive/blobdiff - src/stopmotion/stopmotion.h
Improve stop motion (playback loop, etc)
[kdenlive] / src / stopmotion / stopmotion.h
index f102f41ffcd5b818fd4ffffd7c524e94872a0e4e..c76f634cb98d68ad303897b6a4e10858350c6c43 100644 (file)
@@ -30,13 +30,13 @@ class MyLabel : public QLabel
 {
     Q_OBJECT
 public:
-    MyLabel(QWidget *parent = 0);
+    MyLabel(QWidgetparent = 0);
     void setImage(QImage img);
 
 protected:
-    virtual void paintEvent(QPaintEvent * event);
-    virtual void wheelEvent(QWheelEvent * event);
-    virtual void mousePressEvent(QMouseEvent *);
+    virtual void paintEvent(QPaintEvent* event);
+    virtual void wheelEvent(QWheelEvent* event);
+    virtual void mousePressEvent(QMouseEvent*);
 
 private:
     QImage m_img;
@@ -60,21 +60,21 @@ 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, QList< QAction * > actions, QWidget *parent = 0);
+    StopmotionWidget(KUrl projectFolder, QList< QAction* > actions, QWidget* parent = 0);
     virtual ~StopmotionWidget();
 
 protected:
-    virtual void closeEvent(QCloseEvent *e);
+    virtual void closeEvent(QCloseEvente);
 
 private:
     /** @brief Widget layout holding video and frame preview. */
-    QVBoxLayout *m_layout;
+    QVBoxLayoutm_layout;
 
     /** @brief Current project folder (where the captured frames will be saved). */
     KUrl m_projectFolder;
 
     /** @brief Capture holder that will handle all video operation. */
-    CaptureHandler *m_bmCapture;
+    CaptureHandlerm_bmCapture;
 
     /** @brief Holds the name of the current sequence.
      * Files will be saved in project folder with name: sequence001.png */
@@ -83,7 +83,7 @@ private:
     /** @brief Holds the frame number of the current sequence. */
     int m_sequenceFrame;
 
-    QAction *m_captureAction;
+    QActionm_captureAction;
 
     /** @brief Holds the index of the frame to be displayed in the frame preview mode. */
     int m_animatedIndex;
@@ -95,7 +95,7 @@ private:
     void selectFrame(int ix);
 
     /** @brief This widget will hold the frame preview. */
-    MyLabel *m_frame_preview;
+    MyLabelm_frame_preview;
 
     /** @brief The list of files in the sequence to create thumbnails. */
     QStringList m_filesList;
@@ -104,16 +104,19 @@ private:
     QFuture<void> m_future;
 
     /** @brief Get the frame number ix. */
-    QListWidgetItem *getFrameFromIndex(int ix);
+    QListWidgetItemgetFrameFromIndex(int ix);
 
     /** @brief The action triggering interval capture. */
-    QAction *m_intervalCapture;
+    QActionm_intervalCapture;
 
     /** @brief The action triggering display of last frame over current live video feed. */
-    QAction *m_showOverlay;
+    QActionm_showOverlay;
 
     /** @brief The list of all frames path. */
     QStringList m_animationList;
+    
+    /** @brief Tells if we are in animation (playback) mode. */
+    bool m_animate;
 
 
 #ifdef QIMAGEBLITZ
@@ -123,7 +126,7 @@ private:
 public slots:
     /** @brief Display the live feed from capture device.
      @param isOn enable or disable the feature */
-    void slotLive(bool isOn);
+    void slotLive(bool isOn = true);
 
 private slots:
 
@@ -135,13 +138,13 @@ private slots:
     void slotUpdateOverlay();
 
     /** @brief User changed the capture name. */
-    void sequenceNameChanged(const QString &name);
+    void sequenceNameChanged(const QStringname);
 
     /** @brief Grab a frame from current capture feed. */
     void slotCaptureFrame();
 
     /** @brief Display a previous frame in monitor. */
-    void slotShowFrame(const QString &path);
+    void slotShowFrame(const QStringpath);
 
     /** @brief Get full path for a frame in the sequence.
      *  @param ix the frame number.
@@ -165,7 +168,7 @@ private slots:
     void slotSeekFrame(bool forward);
 
     /** @brief Display warning / error message from capture backend. */
-    void slotGotHDMIMessage(const QString &message);
+    void slotGotHDMIMessage(const QStringmessage);
 
     /** @brief Create thumbnails for existing sequence frames. */
     void slotCreateThumbs(QImage img, int ix);
@@ -182,14 +185,14 @@ private slots:
     /** @brief Capture one frame every interval time. */
     void slotIntervalCapture(bool capture);
 
-    /** @brief Set the interval between each capture (in seconds). */
-    void slotSetCaptureInterval();
+    /** @brief Show the config dialog */
+    void slotConfigure();
 
     /** @brief Prepare to crete thumb for newly captured frame. */
     void slotNewThumb(const QString path);
 
     /** @brief Set the effect to be applied to overlay frame. */
-    void slotUpdateOverlayEffect(QAction *act);
+    void slotUpdateOverlayEffect(QActionact);
 
     /** @brief Switch between live view / currently selected frame. */
     void slotSwitchLive();