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