protected:
virtual void paintEvent(QPaintEvent * event);
virtual void wheelEvent(QWheelEvent * event);
+ virtual void mousePressEvent(QMouseEvent *);
private:
QImage m_img;
/** @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
* @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:
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);
/** @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