]> git.sesse.net Git - kdenlive/blobdiff - src/spacerdialog.h
Integrate with the required MLT hooks for getting Movit to work.
[kdenlive] / src / spacerdialog.h
index e474a3b5f7e50f178377d55b84aa050d9cdb07a2..d840565823f5aa2a28e2a557af11e17e82c545a0 100644 (file)
 #ifndef SPACERDIALOG_H
 #define SPACERDIALOG_H
 
-#include <QDialog>
 
-#include "timecode.h"
 #include "ui_spacerdialog_ui.h"
+#include "timecode.h"
+#include "timecodedisplay.h"
+#include "definitions.h"
+
+/**
+ * @class SpacerDialog
+ * @brief A dialog to specify length and track of inserted space.
+ * @author Jean-Baptiste Mardelle
+ */
 
-class SpacerDialog : public QDialog {
+class SpacerDialog : public QDialog, public Ui::SpacerDialog_UI
+{
     Q_OBJECT
 
 public:
-    SpacerDialog(const GenTime duration, Timecode tc, int track, int trackNumber, QWidget * parent = 0);
-    ~SpacerDialog();
-    GenTime selectedDuration();
-    int selectedTrack();
-
-private slots:
-    void slotTimeUp();
-    void slotTimeDown();
-
-protected:
-    void wheelEvent(QWheelEvent * event);
+    SpacerDialog(const GenTime &duration, const Timecode &tc, int track, const QList <TrackInfo>& tracks, QWidget * parent = 0);
+    GenTime selectedDuration() const;
+    int selectedTrack() const;
 
 private:
-    Ui::SpacerDialog_UI m_view;
-    Timecode m_tc;
-    double m_fps;
-
+    TimecodeDisplay m_in;
 };