2012-01-06 16:09:03 +00:00
|
|
|
#ifndef _PAYSAGES_QT_INPUTINT_H_
|
|
|
|
#define _PAYSAGES_QT_INPUTINT_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QSlider>
|
|
|
|
#include "baseinput.h"
|
|
|
|
|
|
|
|
class InputInt:public BaseInput
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
InputInt(QWidget* form, QString label, int* value, int min, int max, int small_step, int large_step);
|
|
|
|
|
|
|
|
public slots:
|
2012-01-08 10:31:01 +00:00
|
|
|
virtual void updatePreview();
|
2012-01-06 16:09:03 +00:00
|
|
|
virtual void applyValue();
|
2012-01-08 10:31:01 +00:00
|
|
|
virtual void revert();
|
2012-01-06 16:09:03 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QSlider* slider;
|
|
|
|
int* value;
|
|
|
|
int min;
|
|
|
|
int max;
|
|
|
|
int small_step;
|
|
|
|
int large_step;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _PAYSAGES_QT_INPUTINT_H_
|