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 {
32 EffectStackView(QWidget *parent = 0);
33 void raiseWindow(QWidget*);
35 void setMenu(QMenu *menu);
36 void updateProjectFormat(MltVideoProfile profile, Timecode t);
39 Ui::EffectStack_UI ui;
41 QMap<QString, EffectsList*> effectLists;
42 EffectStackEdit* effectedit;
43 void setupListView(int ix);
44 //void updateButtonStatus();
47 void slotClipItemSelected(ClipItem*, int ix);
48 void slotUpdateEffectParams(const QDomElement&, const QDomElement&);
51 void slotItemSelectionChanged();
55 void slotResetEffect();
56 void slotItemChanged(QListWidgetItem *item);
57 void slotSaveEffect();
60 void transferParamDesc(const QDomElement&, int , int);
61 void removeEffect(ClipItem*, QDomElement);
62 /** Parameters for an effect changed, update the filter in playlist */
63 void updateClipEffect(ClipItem*, QDomElement, QDomElement, int);
64 /** An effect in stack was moved, we need to regenerate
65 all effects for this clip in the playlist */
66 void refreshEffectStack(ClipItem *);
67 /** Enable or disable an effect */
68 void changeEffectState(ClipItem*, int, bool);
69 /** An effect in stack was moved */
70 void changeEffectPosition(ClipItem*, int, int);
71 /** an effect was saved, reload list */