2013-05-05 16:42:55 +00:00
|
|
|
#ifndef MAINTERRAINFORM_H
|
|
|
|
#define MAINTERRAINFORM_H
|
|
|
|
|
2013-11-14 20:46:47 +00:00
|
|
|
#include "desktop_global.h"
|
2013-11-12 22:15:35 +00:00
|
|
|
|
2013-05-05 16:42:55 +00:00
|
|
|
#include <QWidget>
|
2013-11-12 22:15:35 +00:00
|
|
|
|
|
|
|
class FreeFormHelper;
|
2013-05-05 16:42:55 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainTerrainForm;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainTerrainForm : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MainTerrainForm(QWidget *parent = 0);
|
|
|
|
~MainTerrainForm();
|
2013-05-09 17:13:04 +00:00
|
|
|
|
|
|
|
inline TerrainDefinition* getTerrainDefinition() {return _terrain;}
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void refreshFromLocalData();
|
|
|
|
void refreshFromFellowData();
|
|
|
|
void updateLocalDataFromScenery();
|
|
|
|
void commitLocalDataToScenery();
|
2013-12-09 10:59:57 +00:00
|
|
|
void alterRenderer(SoftwareRenderer* renderer);
|
2013-05-09 17:13:04 +00:00
|
|
|
|
2013-06-09 17:36:30 +00:00
|
|
|
void buttonBaseNoisePressed();
|
2013-05-09 17:13:04 +00:00
|
|
|
void buttonPaintingPressed();
|
|
|
|
void buttonTexturesPressed();
|
|
|
|
|
2013-05-05 16:42:55 +00:00
|
|
|
private:
|
|
|
|
Ui::MainTerrainForm *ui;
|
2013-05-09 17:13:04 +00:00
|
|
|
FreeFormHelper* _form_helper;
|
|
|
|
|
|
|
|
TerrainDefinition* _terrain;
|
2013-05-10 08:10:07 +00:00
|
|
|
|
2013-11-12 22:15:35 +00:00
|
|
|
Base2dPreviewRenderer* _renderer_shape;
|
2013-05-05 16:42:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINTERRAINFORM_H
|