2012-01-07 16:53:23 +00:00
|
|
|
#ifndef _PAYSAGES_QT_INPUTNOISE_H_
|
|
|
|
#define _PAYSAGES_QT_INPUTNOISE_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "baseinput.h"
|
|
|
|
|
|
|
|
#include "../lib_paysages/shared/types.h"
|
|
|
|
|
|
|
|
class InputNoise:public BaseInput
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
InputNoise(QWidget* form, QString label, NoiseGenerator* value);
|
|
|
|
|
|
|
|
public slots:
|
2012-01-08 10:31:01 +00:00
|
|
|
virtual void updatePreview();
|
2012-01-07 16:53:23 +00:00
|
|
|
virtual void applyValue();
|
2012-01-08 10:31:01 +00:00
|
|
|
virtual void revert();
|
2012-01-07 16:53:23 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void editNoise();
|
|
|
|
|
|
|
|
private:
|
|
|
|
NoiseGenerator* _value;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _PAYSAGES_QT_INPUTNOISE_H_
|