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 #include <KPlotWidget>
19 #include <QDomElement>
20 #include "ui_keyframewidget_ui.h"
22 class PlotWrapper : public KPlotWidget {
25 PlotWrapper (QWidget *parent=0):KPlotWidget(parent){}
26 QList<KPlotPoint*> pointsUnderPoint(const QPoint& p){
27 return KPlotWidget::pointsUnderPoint( p );
32 class ParameterPlotter : public QWidget , public Ui::KeyframeWidget_UI {
35 ParameterPlotter (QWidget *parent=0);
36 virtual ~ParameterPlotter(){}
37 void replot(const QString& name="");
39 KPlotPoint* movepoint;
40 PlotWrapper* kplotwidget;
42 bool m_moveX,m_moveY,m_moveTimeline,m_newPoints;
45 QStringList parameterNameList;
46 void createParametersNew();
47 QList<KPlotObject*> plotobjects;
49 QDomElement itemParameter;
50 void updateButtonStatus();
52 void mouseMoveEvent ( QMouseEvent * event );
53 void mousePressEvent ( QMouseEvent * event );
55 void setPointLists(const QDomElement&,int ,int);
60 void slotShowInTimeline();
61 void slotParameterChanged(const QString&);
63 void parameterChanged(QDomElement );
64 void updateFrame(int);