2012-07-13 12:23:58 +00:00
|
|
|
#ifndef _PAYSAGES_QT_INPUTHEIGHTMAP_H_
|
|
|
|
#define _PAYSAGES_QT_INPUTHEIGHTMAP_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "baseinput.h"
|
|
|
|
|
|
|
|
#include "../lib_paysages/heightmap.h"
|
2012-08-08 13:30:40 +00:00
|
|
|
#include "../lib_paysages/terraincanvas.h"
|
2012-07-13 12:23:58 +00:00
|
|
|
|
|
|
|
class InputHeightMap:public BaseInput
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2012-08-08 13:30:40 +00:00
|
|
|
InputHeightMap(QWidget* form, QString label, HeightMap* value, TerrainCanvas* canvas);
|
2012-07-13 12:23:58 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
virtual void updatePreview();
|
|
|
|
virtual void applyValue();
|
|
|
|
virtual void revert();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void editHeightMap();
|
|
|
|
|
|
|
|
private:
|
|
|
|
HeightMap* _value;
|
2012-08-08 13:30:40 +00:00
|
|
|
TerrainCanvas* _canvas;
|
2012-07-13 12:23:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|