]> git.sesse.net Git - kdenlive/blob - src/parameterplotter.h
effectstack can setup the parameter now
[kdenlive] / src / parameterplotter.h
1 /***************************************************************************
2                           parameterplotter.h  -  description
3                              -------------------
4     begin                : Feb 15 2008
5     copyright            : (C) 2008 by Marco Gittler
6     email                : g.marco@freenet.de
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
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.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18 #include <KPlotWidget>
19 #include <QDomElement>
20
21 class ParameterPlotter : public KPlotWidget {
22         Q_OBJECT
23         public:
24                 ParameterPlotter (QWidget *parent=0);
25                 virtual ~ParameterPlotter(){}
26                 void setMoveX(bool);
27                 void setMoveY(bool);
28                 void setMoveTimeLine(bool);
29                 void setNewPoints(bool);
30                 bool isMoveX();
31                 bool isMoveY();
32                 bool isMoveTimeline();
33                 bool isNewPoints();
34                 void replot(const QString& name="");
35         private:
36                 KPlotPoint* movepoint;
37                 int activeIndexPlot;
38                 bool m_moveX,m_moveY,m_moveTimeline,m_newPoints;
39                 QPoint oldmousepoint;
40                 int maxx,maxy;
41                 QStringList parameterNameList;
42                 void createParametersNew();
43                 QList<KPlotObject*> plotobjects;
44                 QList<QColor> colors;
45                 QDomElement itemParameter;
46         protected:
47                 void mouseMoveEvent ( QMouseEvent * event );
48                 void mousePressEvent ( QMouseEvent * event );
49         public slots:
50                 void setPointLists(const QDomElement&,int ,int);
51         signals:
52                 void parameterChanged(QDomElement );
53                 void updateFrame(int);
54         
55 };