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 {
28 ParameterPlotter(QWidget *parent = 0);
29 virtual ~ParameterPlotter() {}
32 void setMoveTimeLine(bool);
33 void setNewPoints(bool);
36 bool isMoveTimeline();
38 void replot(const QString& name = "");
40 KPlotPoint* movepoint;
42 bool m_moveX, m_moveY, m_moveTimeline, m_newPoints;
45 QStringList parameterNameList;
46 void createParametersNew();
47 QList<KPlotObject*> plotobjects;
48 QMap<int, double> stretchFactors;
50 QDomElement 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);