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 ***************************************************************************/
19 * @class EffectStackView
20 * @brief View part of the EffectStack
21 * @author Marco Gittler
24 #ifndef EFFECTSTACKVIEW_H
25 #define EFFECTSTACKVIEW_H
27 #include "ui_effectstack_ui.h"
28 #include "effectstackedit.h"
32 class MltVideoProfile;
34 class EffectStackView : public QWidget
39 EffectStackView(QWidget *parent = 0);
40 virtual ~EffectStackView();
41 void raiseWindow(QWidget*);
43 void setMenu(QMenu *menu);
44 void updateProjectFormat(MltVideoProfile profile, Timecode t);
47 Ui::EffectStack_UI m_ui;
49 QMap<QString, EffectsList*> m_effectLists;
50 EffectStackEdit* m_effectedit;
51 void setupListView(int ix);
52 //void updateButtonStatus();
55 void slotClipItemSelected(ClipItem*, int ix);
56 void slotUpdateEffectParams(const QDomElement, const QDomElement);
57 /** @brief Remove selected effect. */
61 void slotItemSelectionChanged(bool update = true);
64 void slotResetEffect();
65 void slotItemChanged(QListWidgetItem *item);
66 void slotSaveEffect();
67 void slotSeekTimeline(int pos);
70 void removeEffect(ClipItem*, QDomElement);
71 /** Parameters for an effect changed, update the filter in playlist */
72 void updateClipEffect(ClipItem*, QDomElement, QDomElement, int);
73 /** An effect in stack was moved, we need to regenerate
74 all effects for this clip in the playlist */
75 void refreshEffectStack(ClipItem *);
76 /** Enable or disable an effect */
77 void changeEffectState(ClipItem*, int, bool);
78 /** An effect in stack was moved */
79 void changeEffectPosition(ClipItem*, int, int);
80 /** an effect was saved, reload list */
82 /** An effect with position parameter was changed, seek */
83 void seekTimeline(int);