]> git.sesse.net Git - kdenlive/blob - src/effectstackview.h
raise effect/transition dockwidgets when specific item is selected
[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 private:
33     Ui::EffectStack_UI ui;
34     ClipItem* clipref;
35     QMap<QString, EffectsList*> effectLists;
36     EffectStackEdit* effectedit;
37     void setupListView();
38     void updateButtonStatus();
39
40 public slots:
41     void slotClipItemSelected(ClipItem*);
42     void slotUpdateEffectParams(const QDomElement&, const QDomElement&);
43
44 private slots:
45     void slotItemSelectionChanged();
46     void slotItemUp();
47     void slotItemDown();
48     void slotItemDel();
49     void slotNewEffect();
50     void slotResetEffect();
51     void slotItemChanged(QListWidgetItem *item);
52
53 signals:
54     void transferParamDesc(const QDomElement&, int , int);
55     void removeEffect(ClipItem*, QDomElement);
56     /**  Parameters for an effect changed, update the filter in playlist */
57     void updateClipEffect(ClipItem*, QDomElement, QDomElement);
58     /** An effect in stack was moved, we need to regenerate
59         all effects for this clip in the playlist */
60     void refreshEffectStack(ClipItem *);
61     /** Enable or disable an effect */
62     void changeEffectState(ClipItem*, QDomElement, bool);
63
64 };
65
66 #endif