]> git.sesse.net Git - kdenlive/blobdiff - src/markerdialog.h
Correctly update monitor when changing a title clip duration
[kdenlive] / src / markerdialog.h
index 10c81fa4e2c3350ca61822484d23a8a3126d4c3c..5c6707c3d807726e7e62d3b3d494ce4ad146392e 100644 (file)
 #ifndef MARKERDIALOG_H
 #define MARKERDIALOG_H
 
-#include <QDialog>
 
 #include "docclipbase.h"
 #include "timecode.h"
 #include "ui_markerdialog_ui.h"
 
-class MarkerDialog : public QDialog {
+namespace Mlt
+{
+class Producer;
+class Profile;
+};
+
+class MarkerDialog : public QDialog, public Ui::MarkerDialog_UI
+{
     Q_OBJECT
 
 public:
-    MarkerDialog(DocClipBase *clip, CommentedTime t, Timecode tc, QWidget * parent = 0);
+    MarkerDialog(DocClipBase *clip, CommentedTime t, Timecode tc, const QString &caption, QWidget * parent = 0);
+    ~MarkerDialog();
     CommentedTime newMarker();
+
 private slots:
     void slotTimeUp();
     void slotTimeDown();
+    void slotUpdateThumb();
+
+protected:
+    void wheelEvent(QWheelEvent * event);
 
 private:
-    Ui::MarkerDialog_UI m_view;
+    Mlt::Producer *m_producer;
+    Mlt::Profile *m_profile;
     DocClipBase *m_clip;
-    CommentedTime m_marker;
     Timecode m_tc;
     double m_fps;
+    double m_dar;
+    QTimer *m_previewTimer;
+
+signals:
+    void updateThumb();
 };