]> git.sesse.net Git - kdenlive/blob - src/effectstackedit.h
fix fault on exit kdenlive
[kdenlive] / src / effectstackedit.h
1 /***************************************************************************
2                           effecstackedit.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 EFFECTSTACKEDIT_H
19 #define EFFECTSTACKEDIT_H
20
21 #include <QWidget>
22 #include <QDomElement>
23 #include <QVBoxLayout>
24 #include <QList>
25 #include <QMap>
26
27 class QFrame;
28
29 class EffectStackEdit : public QObject {
30     Q_OBJECT
31 public:
32     EffectStackEdit(QFrame* frame, QWidget *parent);
33     ~EffectStackEdit();
34     static QMap<QString, QImage> iconCache;
35 private:
36     void clearAllItems();
37     QVBoxLayout *vbox;
38     QList<QWidget*> items;
39     QList<void*> uiItems;
40     QDomElement params;
41     QMap<QString, void*> valueItems;
42     void createSliderItem(const QString& name, int val , int min, int max);
43 public slots:
44     void transferParamDesc(const QDomElement&, int , int);
45     void slotSliderMoved(int);
46     void collectAllParameters();
47 signals:
48     void parameterChanged(const QDomElement&, const QDomElement&);
49 };
50
51 #endif