45 lines
879 B
C++
45 lines
879 B
C++
#ifndef MAINTERRAINFORM_H
|
|
#define MAINTERRAINFORM_H
|
|
|
|
#include "desktop_global.h"
|
|
|
|
#include <QWidget>
|
|
|
|
class FreeFormHelper;
|
|
|
|
namespace Ui {
|
|
class MainTerrainForm;
|
|
}
|
|
|
|
class MainTerrainForm : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainTerrainForm(QWidget *parent = 0);
|
|
~MainTerrainForm();
|
|
|
|
inline TerrainDefinition* getTerrainDefinition() {return _terrain;}
|
|
|
|
public slots:
|
|
void refreshFromLocalData();
|
|
void refreshFromFellowData();
|
|
void updateLocalDataFromScenery();
|
|
void commitLocalDataToScenery();
|
|
void alterRenderer(SoftwareRenderer* renderer);
|
|
|
|
void buttonBaseNoisePressed();
|
|
void buttonPaintingPressed();
|
|
void buttonTexturesPressed();
|
|
|
|
private:
|
|
Ui::MainTerrainForm *ui;
|
|
FreeFormHelper* _form_helper;
|
|
|
|
TerrainDefinition* _terrain;
|
|
|
|
Base2dPreviewRenderer* _renderer_shape;
|
|
};
|
|
|
|
#endif // MAINTERRAINFORM_H
|