X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectstackedit.h;h=6ca2015966304cd4b0437918b940ef8858d60132;hb=ccbec8693e89d915500598854c9205c49a7be346;hp=859947d4523baf546c7bb89c7dda39bc1c5423ff;hpb=21236cef17a410e5d0726477ac3b9736e80f56ae;p=kdenlive diff --git a/src/effectstackedit.h b/src/effectstackedit.h index 859947d4..6ca20159 100644 --- a/src/effectstackedit.h +++ b/src/effectstackedit.h @@ -18,33 +18,69 @@ #ifndef EFFECTSTACKEDIT_H #define EFFECTSTACKEDIT_H +#include "definitions.h" +#include "timecode.h" +#include "keyframeedit.h" + #include #include #include #include #include +#include + +enum WIPE_DIRECTON { UP = 0, DOWN = 1, LEFT = 2, RIGHT = 3, CENTER = 4 }; + +struct wipeInfo { + WIPE_DIRECTON start; + WIPE_DIRECTON end; + int startTransparency; + int endTransparency; +}; class QFrame; -class EffectStackEdit : public QObject +class EffectStackEdit : public QScrollArea { - Q_OBJECT + Q_OBJECT public: - EffectStackEdit(QFrame* frame,QWidget *parent ); + EffectStackEdit(QWidget *parent); + ~EffectStackEdit(); + void updateProjectFormat(MltVideoProfile profile, Timecode t); + static QMap iconCache; + void updateParameter(const QString &name, const QString &value); + void setFrameSize(QPoint p); + void updateTimecodeFormat(); + private: - void clearAllItems(); - QVBoxLayout *vbox; - QList items; - QList uiItems; - QDomElement params; - QMap valueItems; - void createSliderItem(const QString& name, int val ,int min, int max); + void clearAllItems(); + QVBoxLayout *m_vbox; + QList m_uiItems; + QWidget *m_baseWidget; + QDomElement m_params; + 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); - void slotSliderMoved(int); - void collectAllParameters(); + /** \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(); + signals: - void parameterChanged(const QDomElement& ); + void parameterChanged(const QDomElement, const QDomElement); + void seekTimeline(int); }; - + #endif