2012-01-06 16:09:03 +00:00
|
|
|
#ifndef _PAYSAGES_QT_INPUTDOUBLE_H_
|
|
|
|
#define _PAYSAGES_QT_INPUTDOUBLE_H_
|
2012-01-05 18:39:17 +00:00
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QSlider>
|
|
|
|
#include "baseinput.h"
|
|
|
|
|
|
|
|
class InputDouble:public BaseInput
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2012-06-17 09:40:40 +00:00
|
|
|
InputDouble(QWidget* form, QString label, double* value, double min, double max, double small_step, double large_step);
|
2012-01-05 18:39:17 +00:00
|
|
|
|
|
|
|
public slots:
|
2012-01-08 10:31:01 +00:00
|
|
|
virtual void updatePreview();
|
2012-01-05 18:39:17 +00:00
|
|
|
virtual void applyValue();
|
2012-01-08 10:31:01 +00:00
|
|
|
virtual void revert();
|
2012-01-05 18:39:17 +00:00
|
|
|
|
|
|
|
private:
|
2012-07-04 09:50:06 +00:00
|
|
|
QSlider* _slider;
|
|
|
|
double* _value;
|
|
|
|
double _min;
|
|
|
|
double _max;
|
|
|
|
double _small_step;
|
|
|
|
double _large_step;
|
2012-01-05 18:39:17 +00:00
|
|
|
};
|
|
|
|
|
2012-07-04 09:50:06 +00:00
|
|
|
#endif
|