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 #include "definitions.h"
30 enum WIPE_DIRECTON { UP = 0, DOWN = 1, LEFT = 2, RIGHT = 3, CENTER = 4 };
35 int startTransparency;
41 class EffectStackEdit : public QWidget
45 EffectStackEdit(QWidget *parent);
47 void updateProjectFormat(MltVideoProfile profile, Timecode t);
48 static QMap<QString, QImage> iconCache;
49 void updateParameter(const QString &name, const QString &value);
50 void setFrameSize(QPoint p);
62 QList<QWidget*> m_items;
63 QList<UiItem*> m_uiItems;
65 QMap<QString, void*> m_valueItems;
66 void createSliderItem(const QString& name, int val , int min, int max);
67 wipeInfo getWipeInfo(QString value);
68 QString getWipeString(wipeInfo info);
69 MltVideoProfile m_profile;
76 void transferParamDesc(const QDomElement, int , int);
77 void slotSliderMoved(int);
78 /** \brief Called whenever(?) some parameter is changed in the gui.
80 * Transfers all Dynamic gui parameter settings into m_params(??) */
81 void collectAllParameters();
84 void slotSeekToPos(int);
87 void parameterChanged(const QDomElement, const QDomElement);
88 void seekTimeline(int);