2012-01-26 23:08:09 +00:00
|
|
|
#ifndef _PAYSAGES_QT_FORMTEXTURES_H_
|
|
|
|
#define _PAYSAGES_QT_FORMTEXTURES_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
2012-02-21 13:41:02 +00:00
|
|
|
#include "basepreview.h"
|
2012-08-26 13:06:42 +00:00
|
|
|
#include "baseformlayer.h"
|
|
|
|
#include "../lib_paysages/textures.h"
|
2012-01-26 23:08:09 +00:00
|
|
|
|
2012-08-26 13:06:42 +00:00
|
|
|
class FormTextures : public BaseFormLayer
|
2012-01-26 23:08:09 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit FormTextures(QWidget *parent = 0);
|
2012-07-02 15:35:10 +00:00
|
|
|
~FormTextures();
|
2012-01-26 23:08:09 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
virtual void revertConfig();
|
|
|
|
virtual void applyConfig();
|
|
|
|
|
2012-08-26 13:06:42 +00:00
|
|
|
protected:
|
2012-12-06 14:04:04 +00:00
|
|
|
virtual void layerReadCurrentFrom(void* layer_definition);
|
|
|
|
virtual void layerWriteCurrentTo(void* layer_definition);
|
2012-01-26 23:08:09 +00:00
|
|
|
|
|
|
|
private:
|
2012-08-26 13:06:42 +00:00
|
|
|
TexturesDefinition _definition;
|
|
|
|
TextureLayerDefinition* _layer;
|
2012-08-26 13:36:46 +00:00
|
|
|
BasePreview* _previewCoverage;
|
|
|
|
BasePreview* _previewColor;
|
2012-01-26 23:08:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|