2012-02-20 21:17:13 +00:00
|
|
|
#ifndef _PAYSAGES_QT_DIALOGCOLORGRADATION_H_
|
|
|
|
#define _PAYSAGES_QT_DIALOGCOLORGRADATION_H_
|
|
|
|
|
|
|
|
#include <QDialog>
|
2012-02-21 13:41:02 +00:00
|
|
|
#include "baseform.h"
|
2012-02-20 21:17:13 +00:00
|
|
|
|
|
|
|
#include "../lib_paysages/color.h"
|
|
|
|
|
|
|
|
class DialogColorGradation : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit DialogColorGradation(QWidget* parent, ColorGradation* gradation);
|
|
|
|
~DialogColorGradation();
|
|
|
|
|
|
|
|
static bool getGradation(QWidget* parent, ColorGradation* gradation);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
virtual void accept();
|
|
|
|
void revert();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void closeEvent(QCloseEvent* e);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void revertToCurrent();
|
|
|
|
|
|
|
|
private:
|
|
|
|
ColorGradation* _base;
|
|
|
|
ColorGradation _current;
|
2012-02-21 13:41:02 +00:00
|
|
|
BaseForm* _form;
|
2012-02-20 21:17:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|