]> git.sesse.net Git - kdenlive/blob - src/parameterplotter.h
Reindent the codebase using 'linux' bracket placement.
[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 #ifndef _PARAMETERPLOTTER_H_
19 #define _PARAMETERPLOTTER_H_
20
21 #include <KPlotWidget>
22 #include <QDomElement>
23 #include <QMap>
24
25 class ParameterPlotter : public KPlotWidget
26 {
27     Q_OBJECT
28 public:
29     ParameterPlotter(QWidget *parent = 0);
30     virtual ~ParameterPlotter() {}
31     void setMoveX(bool);
32     void setMoveY(bool);
33     void setMoveTimeLine(bool);
34     void setNewPoints(bool);
35     bool isMoveX();
36     bool isMoveY();
37     bool isMoveTimeline();
38     bool isNewPoints();
39     void replot(const QString& name = "");
40 private:
41     KPlotPoint* movepoint;
42     int activeIndexPlot;
43     bool m_moveX, m_moveY, m_moveTimeline, m_newPoints;
44     QPoint oldmousepoint;
45     int maxx, maxy;
46     QStringList parameterNameList;
47     void createParametersNew();
48     QList<KPlotObject*> plotobjects;
49     QMap<int, double> stretchFactors;
50     QList<QColor> colors;
51     QDomElement itemParameter;
52     int max_y, min_y;
53     QString m_paramName;
54 protected:
55     void mouseMoveEvent(QMouseEvent * event);
56     void mousePressEvent(QMouseEvent * event);
57 public slots:
58     void setPointLists(const QDomElement&, const QString& paramName, int , int);
59 signals:
60     void parameterChanged(QDomElement);
61     void updateFrame(int);
62     void parameterList(QStringList);
63
64 };
65
66 #endif