]> git.sesse.net Git - kdenlive/blob - src/effectstackview.h
Fix various effects related crashes (don't store effects in QList, but use QDomDocume...
[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     virtual ~EffectStackView();
35     void raiseWindow(QWidget*);
36     void clear();
37     void setMenu(QMenu *menu);
38     void updateProjectFormat(MltVideoProfile profile, Timecode t);
39
40 private:
41     Ui::EffectStack_UI m_ui;
42     ClipItem* m_clipref;
43     QMap<QString, EffectsList*> m_effectLists;
44     EffectStackEdit* m_effectedit;
45     void setupListView(int ix);
46     //void updateButtonStatus();
47
48 public slots:
49     void slotClipItemSelected(ClipItem*, int ix);
50     void slotUpdateEffectParams(const QDomElement, const QDomElement);
51
52 private slots:
53     void slotItemSelectionChanged(bool update = true);
54     void slotItemUp();
55     void slotItemDown();
56     void slotItemDel();
57     void slotResetEffect();
58     void slotItemChanged(QListWidgetItem *item);
59     void slotSaveEffect();
60
61 signals:
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