X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feffectstackview.h;h=f4f8bfc0e7ad791566df6b08206d9457fb3e510b;hb=c42a026234a44a2d766e57bc64a6ac7bbd094000;hp=f86048306dba4065ed7267fc22b0049bb3ecc186;hpb=e7044a34a671057c129d3aa20bc7fd5a75e6b2bc;p=kdenlive diff --git a/src/effectstackview.h b/src/effectstackview.h index f8604830..f4f8bfc0 100644 --- a/src/effectstackview.h +++ b/src/effectstackview.h @@ -1,24 +1,77 @@ +/*************************************************************************** + effecstackview.h - description + ------------------- + begin : Feb 15 2008 + copyright : (C) 2008 by Marco Gittler + email : g.marco@freenet.de + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + #ifndef EFFECTSTACKVIEW_H #define EFFECTSTACKVIEW_H -#include - #include "ui_effectstack_ui.h" -#include "clipitem.h" +#include "effectstackedit.h" + +class EffectsList; +class ClipItem; +class MltVideoProfile; + class EffectStackView : public QWidget { - Q_OBJECT - - public: - EffectStackView( QWidget *parent=0); - + Q_OBJECT + +public: + EffectStackView(QWidget *parent = 0); + void raiseWindow(QWidget*); + void clear(); + void setMenu(QMenu *menu); + void updateProjectFormat(MltVideoProfile profile, Timecode t); + private: - Ui::EffectStack_UI ui; + Ui::EffectStack_UI ui; + ClipItem* clipref; + QMap effectLists; + EffectStackEdit* effectedit; + void setupListView(int ix); + //void updateButtonStatus(); public slots: - void slotClipItemSelected(ClipItem*); + void slotClipItemSelected(ClipItem*, int ix); + void slotUpdateEffectParams(const QDomElement&, const QDomElement&); + +private slots: + 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, 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(); - }; #endif