]> git.sesse.net Git - kdenlive/blobdiff - src/parameterplotter.h
Integrate with the required MLT hooks for getting Movit to work.
[kdenlive] / src / parameterplotter.h
index cce220cc5419c3d9dbd081b505bf1e4b71ed9f32..917bd6a2b77ed54ff38e0583088677613131db90 100644 (file)
  *                                                                         *
  ***************************************************************************/
 
+#ifndef _PARAMETERPLOTTER_H_
+#define _PARAMETERPLOTTER_H_
+
 #include <KPlotWidget>
+#include <QDomElement>
+#include <QMap>
 
-class ParameterPlotter : public KPlotWidget {
-       Q_OBJECT
-       public:
-               ParameterPlotter (QWidget *parent=0);
-               virtual ~ParameterPlotter(){}
+class ParameterPlotter : public KPlotWidget
+{
+    Q_OBJECT
+public:
+    explicit ParameterPlotter(QWidget *parent = 0);
+    ~ParameterPlotter() {}
+    void setMoveX(bool);
+    void setMoveY(bool);
+    void setMoveTimeLine(bool);
+    void setNewPoints(bool);
+    bool isMoveX() const;
+    bool isMoveY() const;
+    bool isMoveTimeline() const;
+    bool isNewPoints() const;
+    void replot(const QString& name = QString());
+private:
+    KPlotPoint* m_movepoint;
+    int m_activeIndexPlot;
+    bool m_moveX, m_moveY, m_moveTimeline, m_newPoints;
+    QPoint m_oldmousepoint;
+    QStringList m_parameterNameList;
+    void createParametersNew();
+    QList<KPlotObject*> m_plotobjects;
+    QMap<int, double> m_stretchFactors;
+    QList<QColor> m_colors;
+    QDomElement m_itemParameter;
+    int m_max_y, m_min_y;
+    QString m_paramName;
+protected:
+    void mouseMoveEvent(QMouseEvent * event);
+    void mousePressEvent(QMouseEvent * event);
+public slots:
+    void setPointLists(const QDomElement&, const QString& paramName, int , int);
+signals:
+    void parameterChanged(const QDomElement&);
+    void updateFrame(int);
+    void parameterList(const QStringList&);
 
-       private:
-               KPlotPoint* movepoint;
-               QPoint oldmousepoint;
-               int maxx,maxy;
-               QStringList parameterNameList;
-               void createParametersNew();
-               QList<KPlotObject*> plotobjects;
-               QList<QColor> colors;
-       protected:
-               void mouseMoveEvent ( QMouseEvent * event );
-               void mousePressEvent ( QMouseEvent * event );
-       public slots:
-               void setPointLists(const QList< QPair<QString, QMap<int,QVariant> > >&,int,int);
-       signals:
-               void parameterChanged(QList< QPair<QString, QMap<int,QVariant> > > );
-       
 };
+
+#endif