Michaël Lemaire
aa62e46702
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@386 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
37 lines
811 B
C++
37 lines
811 B
C++
#ifndef _PAYSAGES_QT_DIALOGLAYERS_H_
|
|
#define _PAYSAGES_QT_DIALOGLAYERS_H_
|
|
|
|
/* Dialog for generic layers control */
|
|
|
|
#include <QListWidget>
|
|
#include "tools.h"
|
|
|
|
#include "../lib_paysages/layers.h"
|
|
|
|
class DialogLayers;
|
|
class BaseFormLayer;
|
|
|
|
typedef BaseFormLayer* (*FormLayerBuilder)(DialogLayers* parent, Layers* layers);
|
|
|
|
class DialogLayers : public DialogWithPreview
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit DialogLayers(QWidget* parent, Layers* layers, QString title, FormLayerBuilder form_builder);
|
|
~DialogLayers();
|
|
|
|
static bool editLayers(QWidget* parent, Layers* layers, QString title, FormLayerBuilder form_builder);
|
|
|
|
public slots:
|
|
virtual void accept();
|
|
void revert();
|
|
|
|
protected:
|
|
virtual void closeEvent(QCloseEvent* e);
|
|
|
|
private:
|
|
BaseFormLayer* _form;
|
|
Layers* _layers;
|
|
};
|
|
|
|
#endif
|