2012-01-07 16:53:23 +00:00
|
|
|
#ifndef _PAYSAGES_QT_INPUTNOISE_H_
|
|
|
|
#define _PAYSAGES_QT_INPUTNOISE_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "baseinput.h"
|
|
|
|
|
2012-01-23 23:45:33 +00:00
|
|
|
#include "../lib_paysages/noise.h"
|
2012-01-07 16:53:23 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2012-06-02 09:46:24 +00:00
|
|
|
#endif
|