]> git.sesse.net Git - kdenlive/blobdiff - src/simplekeyframes/simplekeyframewidget.h
Integrate with the required MLT hooks for getting Movit to work.
[kdenlive] / src / simplekeyframes / simplekeyframewidget.h
index fb1d500d395e790ebb064b727aa2b4d2e055ffc7..edf6b3aa71edde17f1b9ebb4e082caefe518d012 100644 (file)
@@ -34,27 +34,32 @@ class SimpleKeyframeWidget : public QWidget
     Q_OBJECT
 
 public:
-    SimpleKeyframeWidget(Timecode t, int duration, QWidget* parent = 0);
-    virtual ~SimpleKeyframeWidget();
+    explicit SimpleKeyframeWidget(const Timecode &t, int duration, QWidget* parent = 0);
+    ~SimpleKeyframeWidget();
 
-    int getPosition();
+    int getPosition() const;
     void setKeyframes(const QList <int> &keyframes);
     void addKeyframe(int pos = -1);
 
+    void updateTimecodeFormat();
+
 public slots:
     void slotSetPosition(int pos = -1, bool update = true);
 
+private slots:
+    void slotAtKeyframe(bool atKeyframe);
+
 signals:
     void positionChanged(int pos);
     void keyframeAdded(int pos);
     void keyframeRemoved(int pos);
+    void keyframeMoved(int oldPos, int newPos);
 
 private:
     SimpleTimelineWidget *m_timeline;
     QToolButton *m_buttonAddDelete;
     QToolButton *m_buttonPrevious;
     QToolButton *m_buttonNext;
-    //QToolButton *m_buttonSync;
     TimecodeDisplay *m_time;
 };