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* movepoint;
43 bool m_moveX, m_moveY, m_moveTimeline, m_newPoints;
46 QStringList parameterNameList;
47 void createParametersNew();
48 QList<KPlotObject*> plotobjects;
49 QMap<int, double> stretchFactors;
51 QDomElement itemParameter;
55 void mouseMoveEvent(QMouseEvent * event);
56 void mousePressEvent(QMouseEvent * event);
58 void setPointLists(const QDomElement&, const QString& paramName, int , int);
60 void parameterChanged(QDomElement);
61 void updateFrame(int);
62 void parameterList(QStringList);