1 /***************************************************************************
2 effecstackview.h - description
5 copyright : (C) 2008 by Marco Gittler
6 email : g.marco@freenet.de
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
18 #ifndef EFFECTSTACKVIEW_H
19 #define EFFECTSTACKVIEW_H
21 #include "ui_effectstack_ui.h"
22 #include "effectstackedit.h"
26 class MltVideoProfile;
28 class EffectStackView : public QWidget
33 EffectStackView(QWidget *parent = 0);
34 void raiseWindow(QWidget*);
36 void setMenu(QMenu *menu);
37 void updateProjectFormat(MltVideoProfile profile, Timecode t);
40 Ui::EffectStack_UI m_ui;
42 QMap<QString, EffectsList*> m_effectLists;
43 EffectStackEdit* m_effectedit;
44 void setupListView(int ix);
45 //void updateButtonStatus();
48 void slotClipItemSelected(ClipItem*, int ix);
49 void slotUpdateEffectParams(const QDomElement&, const QDomElement&);
52 void slotItemSelectionChanged();
56 void slotResetEffect();
57 void slotItemChanged(QListWidgetItem *item);
58 void slotSaveEffect();
61 void transferParamDesc(const QDomElement&, int , int);
62 void removeEffect(ClipItem*, QDomElement);
63 /** Parameters for an effect changed, update the filter in playlist */
64 void updateClipEffect(ClipItem*, QDomElement, QDomElement, int);
65 /** An effect in stack was moved, we need to regenerate
66 all effects for this clip in the playlist */
67 void refreshEffectStack(ClipItem *);
68 /** Enable or disable an effect */
69 void changeEffectState(ClipItem*, int, bool);
70 /** An effect in stack was moved */
71 void changeEffectPosition(ClipItem*, int, int);
72 /** an effect was saved, reload list */