X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectstackedit.h;h=6ca2015966304cd4b0437918b940ef8858d60132;hb=e6d13a7cb662112cf19781dfca8777c8286fbf2c;hp=51211b2e5e1d1231dcace06ff9d75713eb5d4878;hpb=fcff73250b89a2cae226f10dc4266b337e7db284;p=kdenlive diff --git a/src/effectstackedit.h b/src/effectstackedit.h index 51211b2e..6ca20159 100644 --- a/src/effectstackedit.h +++ b/src/effectstackedit.h @@ -18,14 +18,16 @@ #ifndef EFFECTSTACKEDIT_H #define EFFECTSTACKEDIT_H +#include "definitions.h" +#include "timecode.h" +#include "keyframeedit.h" + #include #include #include #include #include - -#include "definitions.h" -#include "timecode.h" +#include enum WIPE_DIRECTON { UP = 0, DOWN = 1, LEFT = 2, RIGHT = 3, CENTER = 4 }; @@ -38,7 +40,7 @@ struct wipeInfo { class QFrame; -class EffectStackEdit : public QWidget +class EffectStackEdit : public QScrollArea { Q_OBJECT public: @@ -47,42 +49,37 @@ public: void updateProjectFormat(MltVideoProfile profile, Timecode t); static QMap iconCache; void updateParameter(const QString &name, const QString &value); - - class UiItem - { - public: - UiItem() {}; - ~UiItem() {}; - }; + void setFrameSize(QPoint p); + void updateTimecodeFormat(); private: void clearAllItems(); QVBoxLayout *m_vbox; - QList m_items; - QList m_uiItems; + QList m_uiItems; + QWidget *m_baseWidget; QDomElement m_params; - QMap m_valueItems; - void createSliderItem(const QString& name, int val , int min, int max); + QMap m_valueItems; + void createSliderItem(const QString& name, int val , int min, int max, const QString); wipeInfo getWipeInfo(QString value); QString getWipeString(wipeInfo info); MltVideoProfile m_profile; Timecode m_timecode; int m_in; int m_out; + QPoint m_frameSize; + KeyframeEdit *m_keyframeEditor; public slots: - void transferParamDesc(const QDomElement&, int , int); + /** \brief Called when an effect is selected, builds the UI for this effect */ + void transferParamDesc(const QDomElement, int, int , int); void slotSliderMoved(int); /** \brief Called whenever(?) some parameter is changed in the gui. * * Transfers all Dynamic gui parameter settings into m_params(??) */ void collectAllParameters(); -private slots: - void slotSeekToPos(int); - signals: - void parameterChanged(const QDomElement&, const QDomElement&); + void parameterChanged(const QDomElement, const QDomElement); void seekTimeline(int); };