X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectstackview.h;h=18f453fa0e2c006954d23a6aba7ea855ecf72d9d;hb=ef1cdedcc9367dc0f8caad2a025071489f68fe77;hp=fff14d8025d3f6e5040272882a9bf690bd120eaf;hpb=71d019f80aa62482b11f41705cf7991eec364e75;p=kdenlive diff --git a/src/effectstackview.h b/src/effectstackview.h index fff14d80..18f453fa 100644 --- a/src/effectstackview.h +++ b/src/effectstackview.h @@ -18,51 +18,58 @@ #ifndef EFFECTSTACKVIEW_H #define EFFECTSTACKVIEW_H -#include "clipitem.h" #include "ui_effectstack_ui.h" #include "effectstackedit.h" + class EffectsList; +class ClipItem; +class MltVideoProfile; + +class EffectStackView : public QWidget { + Q_OBJECT +public: + EffectStackView(QWidget *parent = 0); + void raiseWindow(QWidget*); + void clear(); + void setMenu(QMenu *menu); + void updateProjectFormat(MltVideoProfile profile); -class EffectStackView : public QWidget -{ - Q_OBJECT - - public: - EffectStackView(EffectsList *audioEffectList, EffectsList *videoEffectList, EffectsList *customEffectList, QWidget *parent=0); - private: - Ui::EffectStack_UI ui; - ClipItem* clipref; - QMap effectLists; - EffectStackEdit* effectedit; - void setupListView(); - void updateButtonStatus(); + Ui::EffectStack_UI ui; + ClipItem* clipref; + QMap effectLists; + EffectStackEdit* effectedit; + void setupListView(int ix); + //void updateButtonStatus(); public slots: - void slotClipItemSelected(ClipItem*); - void slotUpdateEffectParams(const QDomElement&, const QDomElement&); + void slotClipItemSelected(ClipItem*, int ix); + void slotUpdateEffectParams(const QDomElement&, const QDomElement&); private slots: - void slotItemSelectionChanged(); - void slotItemUp(); - void slotItemDown(); - void slotItemDel(); - void slotNewEffect(); - void slotResetEffect(); - void itemSelectionChanged(); - void slotItemChanged(QListWidgetItem *item); + void slotItemSelectionChanged(); + void slotItemUp(); + void slotItemDown(); + void slotItemDel(); + void slotResetEffect(); + void slotItemChanged(QListWidgetItem *item); + void slotSaveEffect(); signals: - void transferParamDesc(const QDomElement&,int ,int); - void removeEffect(ClipItem*, QDomElement); - /** Parameters for an effect changed, update the filter in playlist */ - void updateClipEffect(ClipItem*, QDomElement, QDomElement); - /** An effect in stack was moved, we need to regenerate - all effects for this clip in the playlist */ - void refreshEffectStack(ClipItem *); - /** Enable or disable an effect */ - void changeEffectState(ClipItem*, QDomElement, bool); + void transferParamDesc(const QDomElement&, int , int); + void removeEffect(ClipItem*, QDomElement); + /** Parameters for an effect changed, update the filter in playlist */ + void updateClipEffect(ClipItem*, QDomElement, QDomElement, int); + /** An effect in stack was moved, we need to regenerate + all effects for this clip in the playlist */ + void refreshEffectStack(ClipItem *); + /** Enable or disable an effect */ + void changeEffectState(ClipItem*, int, bool); + /** An effect in stack was moved */ + void changeEffectPosition(ClipItem*, int, int); + /** an effect was saved, reload list */ + void reloadEffects(); };