X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fkeyframeedit.h;h=1d323b9d99d5522a58074d25e302ee1c9881708b;hb=f0b79f72db2da2ae5e042bc10b201ef155e7a425;hp=b804da41a1f7b80bd2bab06bc86f28472fc19217;hpb=8bd6cc04a55e118845505516b41bd960629048ab;p=kdenlive diff --git a/src/keyframeedit.h b/src/keyframeedit.h index b804da41..1d323b9d 100644 --- a/src/keyframeedit.h +++ b/src/keyframeedit.h @@ -26,6 +26,7 @@ #include class QButtonGroup; +class PositionEdit; #include "ui_keyframeeditor_ui.h" #include "definitions.h" @@ -82,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(); @@ -93,27 +94,33 @@ public: /** @brief Makes the first parameter visible in timeline if no parameter is selected. */ void checkVisibleParam(); -private: - QList 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 m_params; Timecode m_timecode; QGridLayout *m_slidersLayout; QButtonGroup *m_showButtons; - - 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); + PositionEdit *m_position; 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); /** @brief Turns the seek to keyframe position setting on/off. @@ -132,6 +139,7 @@ private slots: signals: void parameterChanged(); void seekToPos(int); + void showComments(bool show); }; #endif