]> git.sesse.net Git - kdenlive/blob - src/parameterplotter.h
effectstack can insert new points (button)
[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
20 class ParameterPlotter : public KPlotWidget {
21         Q_OBJECT
22         public:
23                 ParameterPlotter (QWidget *parent=0);
24                 virtual ~ParameterPlotter(){}
25                 void setMoveX(bool);
26                 void setMoveY(bool);
27                 void setMoveTimeLine(bool);
28                 void setNewPoints(bool);
29                 bool isMoveX();
30                 bool isMoveY();
31                 bool isMoveTimeline();
32                 bool isNewPoints();
33         private:
34                 KPlotPoint* movepoint;
35                 bool m_moveX,m_moveY,m_moveTimeline,m_newPoints;
36                 QPoint oldmousepoint;
37                 int maxx,maxy;
38                 QStringList parameterNameList;
39                 void createParametersNew();
40                 QList<KPlotObject*> plotobjects;
41                 QList<QColor> colors;
42         protected:
43                 void mouseMoveEvent ( QMouseEvent * event );
44                 void mousePressEvent ( QMouseEvent * event );
45         public slots:
46                 void setPointLists(const QList< QPair<QString, QMap<int,QVariant> > >&,int,int);
47         signals:
48                 void parameterChanged(QList< QPair<QString, QMap<int,QVariant> > > );
49         
50 };