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 virtual ~EffectStackView();
35 void raiseWindow(QWidget*);
37 void setMenu(QMenu *menu);
38 void updateProjectFormat(MltVideoProfile profile, Timecode t);
41 Ui::EffectStack_UI m_ui;
43 QMap<QString, EffectsList*> m_effectLists;
44 EffectStackEdit* m_effectedit;
45 void setupListView(int ix);
46 //void updateButtonStatus();
49 void slotClipItemSelected(ClipItem*, int ix);
50 void slotUpdateEffectParams(const QDomElement, const QDomElement);
53 void slotItemSelectionChanged(bool update = true);
57 void slotResetEffect();
58 void slotItemChanged(QListWidgetItem *item);
59 void slotSaveEffect();
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 */