ExpDecayDialog.h
Go to the documentation of this file.
/***************************************************************************
File : ExpDecayDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 - 2011 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Fit exponential decay dialog
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef EXPDECAYDIALOG_H
#define EXPDECAYDIALOG_H
#include <QDialog>
class QPushButton;
class QComboBox;
class QLabel;
class Graph;
class ColorButton;
class Fit;
class DoubleSpinBox;
class ExpDecayDialog : public QDialog
{
Q_OBJECT
public:
ExpDecayDialog( int type, QWidget* parent = 0, Qt::WFlags fl = 0 );
public slots:
void fit();
void setGraph(Graph *g);
private slots:
void activateCurve(const QString&);
void changeDataRange();
private:
void closeEvent (QCloseEvent *);
Fit *fitter;
Graph *graph;
int slopes;
QPushButton* buttonFit;
QPushButton* buttonCancel;
QComboBox* boxName;
DoubleSpinBox* boxAmplitude;
DoubleSpinBox* boxFirst;
DoubleSpinBox* boxSecond;
DoubleSpinBox* boxThird;
DoubleSpinBox* boxStart;
DoubleSpinBox* boxYOffset;
QLabel* thirdLabel, *dampingLabel;
ColorButton* boxColor;
};
#endif
ExpDecayDialog::boxYOffset
DoubleSpinBox * boxYOffset
Definition: ExpDecayDialog.h:73
ExpDecayDialog::boxThird
DoubleSpinBox * boxThird
Definition: ExpDecayDialog.h:71
ExpDecayDialog::boxStart
DoubleSpinBox * boxStart
Definition: ExpDecayDialog.h:72
ExpDecayDialog::boxSecond
DoubleSpinBox * boxSecond
Definition: ExpDecayDialog.h:70
ExpDecayDialog::thirdLabel
QLabel * thirdLabel
Definition: ExpDecayDialog.h:74
Graph
A 2D-plotting widget.
Definition: Graph.h:123
ExpDecayDialog::buttonFit
QPushButton * buttonFit
Definition: ExpDecayDialog.h:65
ColorButton
A customized QtColorPicker used for color selection.
Definition: ColorButton.h:39
ExpDecayDialog::fit
void fit()
Definition: ExpDecayDialog.cpp:202
ExpDecayDialog::boxColor
ColorButton * boxColor
Definition: ExpDecayDialog.h:75
ExpDecayDialog::activateCurve
void activateCurve(const QString &)
Definition: ExpDecayDialog.cpp:176
ExpDecayDialog::dampingLabel
QLabel * dampingLabel
Definition: ExpDecayDialog.h:74
ExpDecayDialog::graph
Graph * graph
Definition: ExpDecayDialog.h:62
ExpDecayDialog::fitter
Fit * fitter
Definition: ExpDecayDialog.h:61
DoubleSpinBox
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
ExpDecayDialog::setGraph
void setGraph(Graph *g)
Definition: ExpDecayDialog.cpp:157
ExpDecayDialog::ExpDecayDialog
ExpDecayDialog(int type, QWidget *parent=0, Qt::WFlags fl=0)
Definition: ExpDecayDialog.cpp:46
Fit
Fit base class.
Definition: Fit.h:44
ExpDecayDialog::slopes
int slopes
Definition: ExpDecayDialog.h:63
ExpDecayDialog::boxAmplitude
DoubleSpinBox * boxAmplitude
Definition: ExpDecayDialog.h:68
ExpDecayDialog::boxFirst
DoubleSpinBox * boxFirst
Definition: ExpDecayDialog.h:69
ExpDecayDialog::changeDataRange
void changeDataRange()
Definition: ExpDecayDialog.cpp:195
ExpDecayDialog::boxName
QComboBox * boxName
Definition: ExpDecayDialog.h:67
ExpDecayDialog::buttonCancel
QPushButton * buttonCancel
Definition: ExpDecayDialog.h:66
ExpDecayDialog::closeEvent
void closeEvent(QCloseEvent *)
Definition: ExpDecayDialog.cpp:259
ExpDecayDialog
Fit exponential decay dialog.
Definition: ExpDecayDialog.h:43