* *
***************************************************************************/
-#ifndef EFFECTSTACKVIEW_H
-#define EFFECTSTACKVIEW_H
+#ifndef COMPLEXPARAM_H
+#define COMPLEXPARAM_H
#include <KIcon>
#include "ui_keyframewidget_ui.h"
-#include "clipitem.h"
-class EffectsList;
+class ClipItem;
class ComplexParameter : public QWidget
{
- Q_OBJECT
-
- public:
- ComplexParameter(QWidget *parent=0);
-
-private:
- int activeRow;
- QList<QDomElement> effects;
- Ui::KeyframeWidget_UI ui;
- ClipItem* clipref;
- void setupListView();
- void updateButtonStatus();
- QMap<QString,EffectsList*> effectLists;
+ Q_OBJECT
+public:
+ explicit ComplexParameter(QWidget *parent = 0);
+ QDomElement getParamDesc() const;
public slots:
- void slotSetMoveX();
- void slotSetMoveY();
- void slotSetNew();
- void slotSetHelp();
- void slotShowInTimeline();
- void slotParameterChanged(const QString&);
- void itemSelectionChanged();
- void setupParam(const QDomElement&,int,int);
+ void slotSetMoveX();
+ void slotSetMoveY();
+ void slotSetNew();
+ void slotSetHelp();
+ void slotShowInTimeline();
+ void slotParameterChanged(const QString&);
+ void itemSelectionChanged();
+ void setupParam(const QDomElement &, const QString& paramName, int, int);
+ void slotUpdateEffectParams(const QDomElement &e);
+ void slotUpdateParameterList(const QStringList &);
+
signals:
- void transferParamDesc(const QDomElement&,int ,int);
- void removeEffect(ClipItem*, QDomElement);
- void updateClipEffect(ClipItem*, QDomElement);
+ void removeEffect(ClipItem*, const QDomElement &);
+ void updateClipEffect(ClipItem*, const QDomElement &);
+ void parameterChanged();
+private:
+ Ui::KeyframeWidget_UI m_ui;
+ QDomElement m_param;
+ void setupListView();
+ void updateButtonStatus();
};
#endif