]> git.sesse.net Git - kdenlive/blobdiff - src/keyframeedit.h
- Avoid adding an undo command when no clips are actually added. [1]
[kdenlive] / src / keyframeedit.h
index 1efbfcf20091934810387216ea850ee0be4e7e97..3df18eb7ecfe6c745e83c26bfd7e6c9c3406f6c0 100644 (file)
@@ -75,10 +75,11 @@ class KeyframeEdit : public QWidget, public Ui::KeyframeEditor_UI
 {
     Q_OBJECT
 public:
-    explicit KeyframeEdit(QDomElement e, int minFrame, int maxFrame, int minVal, int maxVal, Timecode tc, const QString paramName = QString(), QWidget* parent = 0);
+    explicit KeyframeEdit(QDomElement e, int minFrame, int maxFrame, int minVal, int maxVal, Timecode tc, int active_keyframe, QWidget* parent = 0);
     virtual ~KeyframeEdit();
     void setupParam();
     void addParameter(QDomElement e);
+    const QString getValue(const QString &name);
 
 private:
     QList <QDomElement> m_params;
@@ -88,7 +89,10 @@ private:
     int m_maxVal;
     Timecode m_timecode;
     int m_previousPos;
-    KeyItemDelegate *m_delegate;
+    //KeyItemDelegate *m_delegate;
+    void generateAllParams();
+    QGridLayout *m_slidersLayout;
+    int m_active_keyframe;
 
 public slots:
 
@@ -97,9 +101,10 @@ private slots:
     void slotDeleteKeyframe();
     void slotAddKeyframe();
     void slotGenerateParams(int row, int column);
-    void slotAdjustKeyframeInfo();
+    void slotAdjustKeyframeInfo(bool seek = true);
     void slotAdjustKeyframePos(int value);
     void slotAdjustKeyframeValue(int value);
+    void slotSetSeeking(int state);
     //void slotSaveCurrentParam(QTreeWidgetItem *item, int column);
 
 signals: