]> git.sesse.net Git - kdenlive/blobdiff - src/markerdialog.h
Integrate with the required MLT hooks for getting Movit to work.
[kdenlive] / src / markerdialog.h
index 10c81fa4e2c3350ca61822484d23a8a3126d4c3c..a15c70faef6831891ff8a1154d4c596db016e2bd 100644 (file)
@@ -1,4 +1,4 @@
-/***************************************************************************
+ /***************************************************************************
  *   Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
 #ifndef MARKERDIALOG_H
 #define MARKERDIALOG_H
 
-#include <QDialog>
 
+#include "ui_markerdialog_ui.h"
 #include "docclipbase.h"
 #include "timecode.h"
-#include "ui_markerdialog_ui.h"
+#include "timecodedisplay.h"
+
+namespace Mlt
+{
+class Producer;
+class Profile;
+}
+
+/**
+ * @class MarkerDialog
+ * @brief A dialog for editing markers and guides.
+ * @author Jean-Baptiste Mardelle
+ */
 
-class MarkerDialog : public QDialog {
+class MarkerDialog : public QDialog, public Ui::MarkerDialog_UI
+{
     Q_OBJECT
 
 public:
-    MarkerDialog(DocClipBase *clip, CommentedTime t, Timecode tc, QWidget * parent = 0);
+    explicit MarkerDialog(DocClipBase *clip, const CommentedTime &t, const Timecode &tc, const QString &caption, QWidget * parent = 0);
+    ~MarkerDialog();
+
     CommentedTime newMarker();
+    QImage markerImage() const;
+
 private slots:
-    void slotTimeUp();
-    void slotTimeDown();
+    void slotUpdateThumb();
 
 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;
+    QImage m_image;
+    TimecodeDisplay *m_in;
+    double m_dar;
+    QTimer *m_previewTimer;
+
+signals:
+    void updateThumb();
 };