2012-05-29 13:32:23 +00:00
|
|
|
#ifndef _PAYSAGES_QT_DIALOGCURVE_H_
|
|
|
|
#define _PAYSAGES_QT_DIALOGCURVE_H_
|
|
|
|
|
2013-11-15 22:26:44 +00:00
|
|
|
#include "desktop_global.h"
|
|
|
|
|
2012-05-29 13:32:23 +00:00
|
|
|
#include <QDialog>
|
|
|
|
|
2013-11-15 22:26:44 +00:00
|
|
|
class QPushButton;
|
|
|
|
class WidgetCurveEditor;
|
2012-05-29 13:32:23 +00:00
|
|
|
|
|
|
|
class DialogCurve : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2012-06-27 12:49:51 +00:00
|
|
|
explicit DialogCurve(QWidget* parent, Curve* curve, double xmin, double xmax, double ymin, double ymax, QString xlabel, QString ylabel);
|
2012-05-29 13:32:23 +00:00
|
|
|
~DialogCurve();
|
|
|
|
|
2012-06-27 12:49:51 +00:00
|
|
|
static bool getCurve(QWidget* parent, Curve* curve, double xmin, double xmax, double ymin, double ymax, QString xlabel, QString ylabel);
|
2012-05-29 13:32:23 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
virtual void accept();
|
|
|
|
void revert();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void closeEvent(QCloseEvent* e);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void revertToCurrent();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Curve* _base;
|
|
|
|
Curve* _current;
|
|
|
|
WidgetCurveEditor* _curve_editor;
|
|
|
|
QPushButton* _button_accept;
|
|
|
|
QPushButton* _button_revert;
|
|
|
|
QPushButton* _button_cancel;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|