2012-05-29 13:32:23 +00:00
|
|
|
#ifndef _PAYSAGES_QT_INPUTCURVE_H_
|
|
|
|
#define _PAYSAGES_QT_INPUTCURVE_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "baseinput.h"
|
|
|
|
|
2013-01-19 22:42:50 +00:00
|
|
|
#include "../lib_paysages/tools/curve.h"
|
2012-05-29 13:32:23 +00:00
|
|
|
|
|
|
|
class InputCurve:public BaseInput
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2012-06-27 12:49:51 +00:00
|
|
|
InputCurve(QWidget* form, QString label, Curve* value, double xmin, double xmax, double ymin, double ymax, QString xlabel, QString ylabel);
|
2012-05-29 13:32:23 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
virtual void updatePreview();
|
|
|
|
virtual void applyValue();
|
|
|
|
virtual void revert();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void editCurve();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Curve* _value;
|
2012-06-17 09:40:40 +00:00
|
|
|
double _xmin;
|
|
|
|
double _xmax;
|
|
|
|
double _ymin;
|
|
|
|
double _ymax;
|
2012-06-27 12:49:51 +00:00
|
|
|
QString _xlabel;
|
|
|
|
QString _ylabel;
|
2012-05-29 13:32:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|