2012-01-06 16:09:03 +00:00
|
|
|
#ifndef _PAYSAGES_QT_INPUTINT_H_
|
|
|
|
#define _PAYSAGES_QT_INPUTINT_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QSlider>
|
2012-10-01 15:36:41 +00:00
|
|
|
#include "inputdouble.h"
|
2012-01-06 16:09:03 +00:00
|
|
|
|
2012-10-01 15:36:41 +00:00
|
|
|
class InputInt:public InputDouble
|
2012-01-06 16:09:03 +00:00
|
|
|
{
|
|
|
|
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:
|
2012-07-04 09:50:06 +00:00
|
|
|
int* _value;
|
2012-10-01 15:36:41 +00:00
|
|
|
double _dvalue;
|
2012-01-06 16:09:03 +00:00
|
|
|
};
|
|
|
|
|
2012-06-23 21:47:12 +00:00
|
|
|
#endif
|