00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef EXPDECAYDIALOG_H
00030 #define EXPDECAYDIALOG_H
00031
00032 #include <QDialog>
00033
00034 class QPushButton;
00035 class QLineEdit;
00036 class QComboBox;
00037 class QLabel;
00038 class Graph;
00039 class ColorBox;
00040 class Fit;
00041
00043 class ExpDecayDialog : public QDialog
00044 {
00045 Q_OBJECT
00046
00047 public:
00048 ExpDecayDialog( int type, QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WFlags fl = 0 );
00049 ~ExpDecayDialog(){};
00050
00051 public slots:
00052 void fit();
00053 void setGraph(Graph *g);
00054
00055 private slots:
00056 void activateCurve(const QString& curveName);
00057 void changeDataRange();
00058
00059 signals:
00060 void options(const QString&,double,double,double,double,int);
00061 void options(const QString&, double,double,double,int);
00062 void options3(const QString&,double,double,double,double,double,int);
00063
00064 private:
00065 void closeEvent (QCloseEvent *);
00066
00067 Fit *fitter;
00068 Graph *graph;
00069 int slopes;
00070
00071 QPushButton* buttonFit;
00072 QPushButton* buttonCancel;
00073 QComboBox* boxName;
00074 QLineEdit* boxAmplitude;
00075 QLineEdit* boxFirst;
00076 QLineEdit* boxSecond;
00077 QLineEdit* boxThird;
00078 QLineEdit* boxStart;
00079 QLineEdit* boxYOffset;
00080 QLabel* thirdLabel, *dampingLabel;
00081 ColorBox* boxColor;
00082 };
00083
00084 #endif
00085
00086