1 /***************************************************************************
2 effecstackedit.h - description
5 copyright : (C) 2008 by Marco Gittler
6 email : g.marco@freenet.de
7 ***************************************************************************/
9 /***************************************************************************
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. *
16 ***************************************************************************/
18 #ifndef EFFECTSTACKEDIT_H
19 #define EFFECTSTACKEDIT_H
22 #include <QDomElement>
23 #include <QVBoxLayout>
27 enum WIPE_DIRECTON { UP = 0, DOWN = 1, LEFT = 2, RIGHT = 3, CENTER = 4 };
32 int startTransparency;
38 class EffectStackEdit : public QObject {
41 EffectStackEdit(QFrame* frame, QWidget *parent);
43 static QMap<QString, QImage> iconCache;
48 QList<QWidget*> items;
51 QMap<QString, void*> valueItems;
52 void createSliderItem(const QString& name, int val , int min, int max);
53 wipeInfo getWipeInfo(QString value);
54 QString getWipeString(wipeInfo info);
57 void transferParamDesc(const QDomElement&, int , int);
58 void slotSliderMoved(int);
59 void collectAllParameters();
62 void parameterChanged(const QDomElement&, const QDomElement&);