]> git.sesse.net Git - kdenlive/blobdiff - src/keyframeedit.h
Do not switch monitor when not necessary, make sure we refresh monitor when adding...
[kdenlive] / src / keyframeedit.h
index 8dc1d5dea7cd9242c109e1e03fc92c505d1dff2e..210192e48a8c653b125bbd7548d8c5ff843d5c23 100644 (file)
@@ -83,7 +83,7 @@ class KeyframeEdit : public QWidget, public Ui::KeyframeEditor_UI
 public:
     explicit KeyframeEdit(QDomElement e, int minFrame, int maxFrame, Timecode tc, int activeKeyframe, QWidget* parent = 0);
     virtual ~KeyframeEdit();
-    void addParameter(QDomElement e, int activeKeyframe = -1);
+    virtual void addParameter(QDomElement e, int activeKeyframe = -1);
     const QString getValue(const QString &name);
     /** @brief Updates the timecode display according to settings (frame number or hh:mm:ss:ff) */
     void updateTimecodeFormat();
@@ -94,30 +94,34 @@ public:
     /** @brief Makes the first parameter visible in timeline if no parameter is selected. */
     void checkVisibleParam();
 
-private:
-    QList <QDomElement> m_params;
+protected:
+    /** @brief Gets the position of a keyframe from the table.
+     * @param row Row of the keyframe in the table */
+    int getPos(int row);
+    /** @brief Converts a frame value to timecode considering the frames vs. HH:MM:SS:FF setting.
+     * @return timecode */
+    QString getPosString(int pos);
+
+    void generateAllParams();
+
     int m_min;
     int m_max;
+
+protected slots:
+    void slotAdjustKeyframeInfo(bool seek = true);
+
+private:
+    QList <QDomElement> m_params;
     Timecode m_timecode;
     QGridLayout *m_slidersLayout;
-    QButtonGroup *m_showButtons;
     PositionEdit *m_position;
 
-    void generateAllParams();
-    /** @brief Gets the position of a keyframe from the table.
-    * @param row Row of the keyframe in the table */
-    int getPos(int row);
-    /** @brief Converts a frame value to timecode considering the frames vs. HH:MM:SS:FF setting.
-    * @return timecode */
-    QString getPosString(int pos);
-
 private slots:
     void slotDeleteKeyframe();
     void slotAddKeyframe();
     void slotGenerateParams(int row, int column);
-    void slotAdjustKeyframeInfo(bool seek = true);
     void slotAdjustKeyframePos(int value);
-    void slotAdjustKeyframeValue(int value);
+    void slotAdjustKeyframeValue(double value);
     /** @brief Turns the seek to keyframe position setting on/off.
     * @param seek true = seeking on */
     void slotSetSeeking(bool seek);
@@ -134,7 +138,7 @@ private slots:
 signals:
     void parameterChanged();
     void seekToPos(int);
-    void showComments();
+    void showComments(bool show);
 };
 
 #endif