]> git.sesse.net Git - kdenlive/blob - src/parameterplotter.h
Fix label
[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     explicit ParameterPlotter(QWidget *parent = 0);
30     ~ParameterPlotter() {}
31     void setMoveX(bool);
32     void setMoveY(bool);
33     void setMoveTimeLine(bool);
34     void setNewPoints(bool);
35     bool isMoveX() const;
36     bool isMoveY() const;
37     bool isMoveTimeline() const;
38     bool isNewPoints() const;
39     void replot(const QString& name = QString());
40 private:
41     KPlotPoint* m_movepoint;
42     int m_activeIndexPlot;
43     bool m_moveX, m_moveY, m_moveTimeline, m_newPoints;
44     QPoint m_oldmousepoint;
45     QStringList m_parameterNameList;
46     void createParametersNew();
47     QList<KPlotObject*> m_plotobjects;
48     QMap<int, double> m_stretchFactors;
49     QList<QColor> m_colors;
50     QDomElement m_itemParameter;
51     int m_max_y, m_min_y;
52     QString m_paramName;
53 protected:
54     void mouseMoveEvent(QMouseEvent * event);
55     void mousePressEvent(QMouseEvent * event);
56 public slots:
57     void setPointLists(const QDomElement&, const QString& paramName, int , int);
58 signals:
59     void parameterChanged(const QDomElement&);
60     void updateFrame(int);
61     void parameterList(const QStringList&);
62
63 };
64
65 #endif