1 /***************************************************************************
2 titlewidget.h - description
5 copyright : (C) 2008 by Marco Gittler
6 email : g.marco@freenet.de
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
21 #include "ui_stopmotion_ui.h"
22 #include "../blackmagic/capture.h"
26 class StopmotionWidget : public QDialog , public Ui::Stopmotion_UI
32 /** @brief Build the stopmotion dialog.
33 * @param projectFolder The current project folder, where captured files will be stored.
34 * @param parent (optional) parent widget */
35 StopmotionWidget(KUrl projectFolder, QWidget *parent = 0);
36 virtual ~StopmotionWidget();
43 /** @brief Current project folder (where the captured frames will be saved). */
46 /** @brief Capture holder that will handle all video operation. */
47 CaptureHandler *m_bmCapture;
49 /** @brief Holds the name of the current sequence.
50 * Files will be saved in project folder with name: sequence001.png */
51 QString m_sequenceName;
53 /** @brief Holds the frame number of the current sequence. */
56 QAction *m_captureAction;
59 /** @brief Display the live feed from capture device.
60 @param isOn enable or disable the feature */
61 void slotLive(bool isOn);
63 /** @brief Display the last captured frame over current live feed.
64 @param isOn enable or disable the feature */
65 void slotShowOverlay(bool isOn);
67 /** @brief Display the last captured frame over current live feed. */
68 void slotUpdateOverlay();
70 /** @brief User changed the capture name. */
71 void sequenceNameChanged(const QString &name);
73 /** @brief Grab a frame from current capture feed. */
74 void slotCaptureFrame();
76 /** @brief Display a previous frame in monitor. */
77 void slotShowFrame(int);
79 /** @brief Get full path for a frame in the sequence.
80 * @param ix the frame number.
81 * @param seqName (optional) the name of the sequence. */
82 QString getPathForFrame(int ix, QString seqName = QString());
84 /** @brief Add sequence to current project. */
85 void slotAddSequence();
88 /** @brief Ask to add sequence to current project. */
89 void addOrUpdateSequence(const QString);