Michaël Lemaire
b46060f3c4
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@500 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
34 lines
657 B
C++
34 lines
657 B
C++
#ifndef _PAYSAGES_QT_INPUTCURVE_H_
|
|
#define _PAYSAGES_QT_INPUTCURVE_H_
|
|
|
|
#include <QWidget>
|
|
#include "baseinput.h"
|
|
|
|
#include "../lib_paysages/tools/curve.h"
|
|
|
|
class InputCurve:public BaseInput
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
InputCurve(QWidget* form, QString label, Curve* value, double xmin, double xmax, double ymin, double ymax, QString xlabel, QString ylabel);
|
|
|
|
public slots:
|
|
virtual void updatePreview();
|
|
virtual void applyValue();
|
|
virtual void revert();
|
|
|
|
private slots:
|
|
void editCurve();
|
|
|
|
private:
|
|
Curve* _value;
|
|
double _xmin;
|
|
double _xmax;
|
|
double _ymin;
|
|
double _ymax;
|
|
QString _xlabel;
|
|
QString _ylabel;
|
|
};
|
|
|
|
#endif
|