35 lines
696 B
C
35 lines
696 B
C
|
#ifndef DIALOGTERRAINPAINTING_H
|
||
|
#define DIALOGTERRAINPAINTING_H
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include "paintingbrush.h"
|
||
|
#include "rendering/terrain/public.h"
|
||
|
|
||
|
namespace Ui {
|
||
|
class DialogTerrainPainting;
|
||
|
}
|
||
|
|
||
|
class DialogTerrainPainting : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit DialogTerrainPainting(QWidget *parent, TerrainDefinition* terrain);
|
||
|
~DialogTerrainPainting();
|
||
|
|
||
|
public slots:
|
||
|
void brushConfigChanged();
|
||
|
void heightmapChanged();
|
||
|
virtual void accept();
|
||
|
void revert();
|
||
|
|
||
|
private:
|
||
|
Ui::DialogTerrainPainting *ui;
|
||
|
|
||
|
TerrainDefinition* _terrain_modified;
|
||
|
TerrainDefinition* _terrain_original;
|
||
|
PaintingBrush _brush;
|
||
|
};
|
||
|
|
||
|
#endif // DIALOGTERRAINPAINTING_H
|