Logo Search packages:      
Sourcecode: kdenlive version File versions

parameterplotter.h

/***************************************************************************
                          parameterplotter.h  -  description
                             -------------------
    begin                : Feb 15 2008
    copyright            : (C) 2008 by Marco Gittler
    email                : g.marco@freenet.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include <KPlotWidget>
#include <QDomElement>
#include <QMap>

class ParameterPlotter : public KPlotWidget {
    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<KPlotObject*> plotobjects;
    QMap<int, double> stretchFactors;
    QList<QColor> colors;
    QDomElement itemParameter;
    int max_y, 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(QDomElement);
    void updateFrame(int);
    void parameterList(QStringList);

};

Generated by  Doxygen 1.6.0   Back to index