1 /***************************************************************************
2 parameterplotter.h - description
5 copyright : (C) 2008 by Marco Gittler
6 email : g.marco@freenet.de
7 ***************************************************************************/
9 /***************************************************************************
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. *
16 ***************************************************************************/
18 #ifndef _PARAMETERPLOTTER_H_
19 #define _PARAMETERPLOTTER_H_
21 #include <KPlotWidget>
22 #include <QDomElement>
25 class ParameterPlotter : public KPlotWidget
29 ParameterPlotter(QWidget *parent = 0);
30 virtual ~ParameterPlotter() {}
33 void setMoveTimeLine(bool);
34 void setNewPoints(bool);
37 bool isMoveTimeline();
39 void replot(const QString& name = "");
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;
54 void mouseMoveEvent(QMouseEvent * event);
55 void mousePressEvent(QMouseEvent * event);
57 void setPointLists(const QDomElement&, const QString& paramName, int , int);
59 void parameterChanged(QDomElement);
60 void updateFrame(int);
61 void parameterList(QStringList);