]> git.sesse.net Git - kdenlive/blob - src/effectstackview.h
* Fix undo of effect editing
[kdenlive] / src / effectstackview.h
1 /***************************************************************************
2                           effecstackview.h  -  description
3                              -------------------
4     begin                : Feb 15 2008
5     copyright            : (C) 2008 by Marco Gittler
6     email                : g.marco@freenet.de
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
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.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18 #ifndef EFFECTSTACKVIEW_H
19 #define EFFECTSTACKVIEW_H
20
21 #include "ui_effectstack_ui.h"
22 #include "effectstackedit.h"
23
24 class EffectsList;
25 class ClipItem;
26 class MltVideoProfile;
27
28 class EffectStackView : public QWidget {
29     Q_OBJECT
30
31 public:
32     EffectStackView(QWidget *parent = 0);
33     void raiseWindow(QWidget*);
34     void clear();
35     void setMenu(QMenu *menu);
36     void updateProjectFormat(MltVideoProfile profile, Timecode t);
37
38 private:
39     Ui::EffectStack_UI ui;
40     ClipItem* clipref;
41     QMap<QString, EffectsList*> effectLists;
42     EffectStackEdit* effectedit;
43     void setupListView(int ix);
44     //void updateButtonStatus();
45
46 public slots:
47     void slotClipItemSelected(ClipItem*, int ix);
48     void slotUpdateEffectParams(const QDomElement&, const QDomElement&);
49
50 private slots:
51     void slotItemSelectionChanged();
52     void slotItemUp();
53     void slotItemDown();
54     void slotItemDel();
55     void slotResetEffect();
56     void slotItemChanged(QListWidgetItem *item);
57     void slotSaveEffect();
58
59 signals:
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 */
72     void reloadEffects();
73
74 };
75
76 #endif