]> git.sesse.net Git - kdenlive/blob - src/effectstackview.h
Update effect stak stuff
[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 <KIcon>
22 #include "clipitem.h"
23 #include "ui_effectstack_ui.h"
24 #include "effectstackedit.h"
25 class EffectsList;
26
27
28 class EffectStackView : public QWidget
29 {
30         Q_OBJECT
31                 
32         public:
33                 EffectStackView(EffectsList *audioEffectList, EffectsList *videoEffectList, EffectsList *customEffectList, QWidget *parent=0);
34         
35 private:
36         Ui::EffectStack_UI ui;
37         ClipItem* clipref;
38         void setupListView();
39         void updateButtonStatus();
40         QMap<QString,EffectsList*> effectLists;
41         EffectStackEdit* effectedit;
42         void renumberEffects();
43 public slots:
44         void slotClipItemSelected(ClipItem*);
45         void slotItemSelectionChanged();
46         void slotItemUp();
47         void slotItemDown();
48         void slotItemDel();
49         void slotNewEffect();
50         void itemSelectionChanged();
51         void slotUpdateEffectParams(const QDomElement&);
52 signals:
53         void transferParamDesc(const QDomElement&,int ,int);
54         void removeEffect(ClipItem*, QDomElement);
55         /**  Parameters for an effect changed, update the filter in playlist */
56         void updateClipEffect(ClipItem*, QDomElement);
57         /** An effect in stack was moved, we need to regenerate 
58             all effects for this clip in the playlist */
59         void refreshEffectStack(ClipItem *);
60
61 };
62
63 #endif