2012-06-02 09:46:24 +00:00
|
|
|
#ifndef _PAYSAGES_QT_INPUTMATERIAL_H_
|
|
|
|
#define _PAYSAGES_QT_INPUTMATERIAL_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "baseinput.h"
|
|
|
|
|
|
|
|
#include "../lib_paysages/shared/types.h"
|
2013-01-19 22:42:50 +00:00
|
|
|
#include "../lib_paysages/tools/lighting.h"
|
2012-06-02 09:46:24 +00:00
|
|
|
|
|
|
|
class InputMaterial:public BaseInput
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
InputMaterial(QWidget* form, QString label, SurfaceMaterial* value);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
virtual void updatePreview();
|
|
|
|
virtual void applyValue();
|
|
|
|
virtual void revert();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void editMaterial();
|
|
|
|
|
|
|
|
private:
|
|
|
|
SurfaceMaterial* _value;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|