2012-06-02 09:46:24 +00:00
|
|
|
#ifndef _PAYSAGES_QT_DIALOGMATERIAL_H_
|
|
|
|
#define _PAYSAGES_QT_DIALOGMATERIAL_H_
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QListWidget>
|
|
|
|
#include "basepreview.h"
|
|
|
|
#include "formmaterial.h"
|
2012-06-02 14:17:01 +00:00
|
|
|
#include "tools.h"
|
2012-06-02 09:46:24 +00:00
|
|
|
|
|
|
|
#include "../lib_paysages/shared/types.h"
|
|
|
|
|
2012-06-02 14:17:01 +00:00
|
|
|
class DialogMaterial : public DialogWithPreview
|
2012-06-02 09:46:24 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit DialogMaterial(QWidget* parent, SurfaceMaterial* material);
|
|
|
|
static bool getMaterial(QWidget* parent, SurfaceMaterial* material);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
virtual void accept();
|
|
|
|
void revert();
|
|
|
|
|
|
|
|
private:
|
|
|
|
FormMaterial* _form;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|