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
21 #include "definitions.h"
26 #include <QDomElement>
27 #include <QVBoxLayout>
30 #include <QScrollArea>
32 enum WIPE_DIRECTON { UP = 0, DOWN = 1, LEFT = 2, RIGHT = 3, CENTER = 4 };
37 int startTransparency;
43 class EffectStackEdit : public QScrollArea
47 EffectStackEdit(QWidget *parent);
49 void updateProjectFormat(MltVideoProfile profile, Timecode t);
50 static QMap<QString, QImage> iconCache;
51 void updateParameter(const QString &name, const QString &value);
52 void setFrameSize(QPoint p);
57 QList<QWidget*> m_uiItems;
58 QWidget *m_baseWidget;
60 QMap<QString, QWidget*> m_valueItems;
61 void createSliderItem(const QString& name, int val , int min, int max, const QString);
62 wipeInfo getWipeInfo(QString value);
63 QString getWipeString(wipeInfo info);
64 MltVideoProfile m_profile;
71 void transferParamDesc(const QDomElement, int , int);
72 void slotSliderMoved(int);
73 /** \brief Called whenever(?) some parameter is changed in the gui.
75 * Transfers all Dynamic gui parameter settings into m_params(??) */
76 void collectAllParameters();
79 void slotSeekToPos(int);
82 void parameterChanged(const QDomElement, const QDomElement);
83 void seekTimeline(int);