X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fparameterplotter.h;h=917bd6a2b77ed54ff38e0583088677613131db90;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=e2f64f053dd6b2c9658d3bb4b17fd3e00c7a3a3d;hpb=2a223cff6e45c560c28857b72c0cb7e584f9a4ef;p=kdenlive diff --git a/src/parameterplotter.h b/src/parameterplotter.h index e2f64f05..917bd6a2 100644 --- a/src/parameterplotter.h +++ b/src/parameterplotter.h @@ -15,45 +15,51 @@ * * ***************************************************************************/ +#ifndef _PARAMETERPLOTTER_H_ +#define _PARAMETERPLOTTER_H_ + #include #include #include -class ParameterPlotter : public KPlotWidget { +class ParameterPlotter : public KPlotWidget +{ Q_OBJECT public: - ParameterPlotter(QWidget *parent = 0); - virtual ~ParameterPlotter() {} + explicit ParameterPlotter(QWidget *parent = 0); + ~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 = ""); + bool isMoveX() const; + bool isMoveY() const; + bool isMoveTimeline() const; + bool isNewPoints() const; + void replot(const QString& name = QString()); private: - KPlotPoint* movepoint; - int activeIndexPlot; + KPlotPoint* m_movepoint; + int m_activeIndexPlot; bool m_moveX, m_moveY, m_moveTimeline, m_newPoints; - QPoint oldmousepoint; - int maxx, maxy; - QStringList parameterNameList; + QPoint m_oldmousepoint; + QStringList m_parameterNameList; void createParametersNew(); - QList plotobjects; - QMap stretchFactors; - QList colors; - QDomElement itemParameter; - int max_y, min_y; + 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&, int , int); + void setPointLists(const QDomElement&, const QString& paramName, int , int); signals: - void parameterChanged(QDomElement); + void parameterChanged(const QDomElement&); void updateFrame(int); - void parameterList(QStringList); + void parameterList(const QStringList&); }; + +#endif