X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fstopmotion%2Fstopmotion.h;h=f102f41ffcd5b818fd4ffffd7c524e94872a0e4e;hb=de6cce1e1b13fc1da0e02fb549c5ebad4e932075;hp=0f3f27bbca4bfbe1d6361cd0304a849eee1c7ddf;hpb=e02ce4625f1ea04e0213e6fadb65f22bd010a69e;p=kdenlive diff --git a/src/stopmotion/stopmotion.h b/src/stopmotion/stopmotion.h index 0f3f27bb..f102f41f 100644 --- a/src/stopmotion/stopmotion.h +++ b/src/stopmotion/stopmotion.h @@ -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