paysages3d/gui_qt/inputdouble.h
2012-01-08 10:31:01 +00:00

29 lines
595 B
C++

#ifndef _PAYSAGES_QT_INPUTDOUBLE_H_
#define _PAYSAGES_QT_INPUTDOUBLE_H_
#include <QWidget>
#include <QSlider>
#include "baseinput.h"
class InputDouble:public BaseInput
{
Q_OBJECT
public:
InputDouble(QWidget* form, QString label, double* value, double min, double max, double small_step, double large_step);
public slots:
virtual void updatePreview();
virtual void applyValue();
virtual void revert();
private:
QSlider* slider;
double* value;
double min;
double max;
double small_step;
double large_step;
};
#endif // _PAYSAGES_QT_INPUTDOUBLE_H_