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