X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fparameterplotter.h;h=917bd6a2b77ed54ff38e0583088677613131db90;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=60b71d7aba4e9583c1b13cc64049970e2f68e4b8;hpb=8390845cf30d683074f55cc4dc69b64ace640798;p=kdenlive diff --git a/src/parameterplotter.h b/src/parameterplotter.h index 60b71d7a..917bd6a2 100644 --- a/src/parameterplotter.h +++ b/src/parameterplotter.h @@ -14,51 +14,52 @@ * (at your option) any later version. * * * ***************************************************************************/ -#if 0 + +#ifndef _PARAMETERPLOTTER_H_ +#define _PARAMETERPLOTTER_H_ + #include #include -#include "ui_keyframewidget_ui.h" +#include + +class ParameterPlotter : public KPlotWidget +{ + Q_OBJECT +public: + explicit ParameterPlotter(QWidget *parent = 0); + ~ParameterPlotter() {} + void setMoveX(bool); + void setMoveY(bool); + void setMoveTimeLine(bool); + void setNewPoints(bool); + bool isMoveX() const; + bool isMoveY() const; + bool isMoveTimeline() const; + bool isNewPoints() const; + void replot(const QString& name = QString()); +private: + KPlotPoint* m_movepoint; + int m_activeIndexPlot; + bool m_moveX, m_moveY, m_moveTimeline, m_newPoints; + QPoint m_oldmousepoint; + QStringList m_parameterNameList; + void createParametersNew(); + QList m_plotobjects; + QMap m_stretchFactors; + QList m_colors; + QDomElement m_itemParameter; + int m_max_y, m_min_y; + QString m_paramName; +protected: + void mouseMoveEvent(QMouseEvent * event); + void mousePressEvent(QMouseEvent * event); +public slots: + void setPointLists(const QDomElement&, const QString& paramName, int , int); +signals: + void parameterChanged(const QDomElement&); + void updateFrame(int); + void parameterList(const QStringList&); -class ParameterPlotter : public QWidget , private Ui::KeyframeWidget_UI { - Q_OBJECT - public: - ParameterPlotter (QWidget *parent=0); - virtual ~ParameterPlotter(){} - void setMoveX(bool); - void setMoveY(bool); - void setMoveTimeLine(bool); - void setNewPoints(bool); - bool isMoveX(); - bool isMoveY(); - bool isMoveTimeline(); - bool isNewPoints(); - void replot(const QString& name=""); - private: - KPlotPoint* movepoint; - int activeIndexPlot; - bool m_moveX,m_moveY,m_moveTimeline,m_newPoints; - QPoint oldmousepoint; - int maxx,maxy; - QStringList parameterNameList; - void createParametersNew(); - QList plotobjects; - QList colors; - QDomElement itemParameter; - protected: - void mouseMoveEvent ( QMouseEvent * event ); - void mousePressEvent ( QMouseEvent * event ); - public slots: - void setPointLists(const QDomElement&,int ,int); - void slotSetMoveX(); - void slotSetMoveY(); - void slotSetNew(); - void slotSetHelp(); - void slotShowInTimeline(); - void slotParameterChanged(const QString&); - signals: - void parameterChanged(QDomElement ); - void updateFrame(int); - }; -#endif +#endif