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