QtiPlot  0.9.8.2
PolynomFitDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : PolynomFitDialog.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2006 - 2011 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : Fit polynomial dialog
8 
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  * This program is distributed in the hope that it will be useful, *
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21  * GNU General Public License for more details. *
22  * *
23  * You should have received a copy of the GNU General Public License *
24  * along with this program; if not, write to the Free Software *
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26  * Boston, MA 02110-1301 USA *
27  * *
28  ***************************************************************************/
29 #ifndef POLINOMFITDIALOG_H
30 #define POLINOMFITDIALOG_H
31 
32 #include <QDialog>
33 
34 class QCheckBox;
35 class QSpinBox;
36 class QPushButton;
37 class QComboBox;
38 class Graph;
39 class ColorButton;
40 class DoubleSpinBox;
41 
43 class PolynomFitDialog : public QDialog
44 {
45  Q_OBJECT
46 
47 public:
48  PolynomFitDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
49 
50 public slots:
51  void fit();
52  void setGraph(Graph *g);
53  void activateCurve(const QString&);
54  void changeDataRange();
55 
56 private:
58 
59  QPushButton* buttonFit;
60  QPushButton* buttonCancel;
61  QCheckBox* boxShowFormula;
62  QComboBox* boxName;
63  QSpinBox* boxOrder;
64  QSpinBox* boxPoints;
68 };
69 
70 #endif
void fit()
Definition: PolynomFitDialog.cpp:118
ColorButton * boxColor
Definition: PolynomFitDialog.h:67
A 2D-plotting widget.
Definition: Graph.h:123
void setGraph(Graph *g)
Definition: PolynomFitDialog.cpp:143
A customized QtColorPicker used for color selection.
Definition: ColorButton.h:39
QPushButton * buttonCancel
Definition: PolynomFitDialog.h:60
DoubleSpinBox * boxStart
Definition: PolynomFitDialog.h:65
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
Fit polynomial dialog.
Definition: PolynomFitDialog.h:43
QCheckBox * boxShowFormula
Definition: PolynomFitDialog.h:61
DoubleSpinBox * boxEnd
Definition: PolynomFitDialog.h:66
void changeDataRange()
Definition: PolynomFitDialog.cpp:170
Graph * graph
Definition: PolynomFitDialog.h:57
void activateCurve(const QString &)
Definition: PolynomFitDialog.cpp:160
QPushButton * buttonFit
Definition: PolynomFitDialog.h:59
QSpinBox * boxOrder
Definition: PolynomFitDialog.h:63
QSpinBox * boxPoints
Definition: PolynomFitDialog.h:64
QComboBox * boxName
Definition: PolynomFitDialog.h:62
PolynomFitDialog(QWidget *parent=0, Qt::WFlags fl=0)
Definition: PolynomFitDialog.cpp:46