QtiPlot  0.9.8.2
IntegrationDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : IntegrationDialog.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2011 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : Integration options 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 INTEGRATIONDIALOG_H
30 #define INTEGRATIONDIALOG_H
31 
32 #include <QDialog>
33 
34 class QPushButton;
35 class QComboBox;
36 class QCheckBox;
37 class QSpinBox;
38 class Graph;
39 class Table;
40 class DoubleSpinBox;
41 
43 class IntegrationDialog : public QDialog
44 {
45  Q_OBJECT
46 
47 public:
48  IntegrationDialog(Graph *g, QWidget* parent = 0, Qt::WFlags fl = 0 );
49  IntegrationDialog(Table *t, QWidget* parent = 0, Qt::WFlags fl = 0 );
50 
51 public slots:
52  void activateCurve(const QString&);
53  void integrate();
54  void changeDataRange();
55 
56 private:
57  void closeEvent (QCloseEvent * e );
58 
59  void setGraph(Graph *g);
60  void setTable(Table *t);
61  void integrateCurve();
62  void integrateTable();
63 
66  QPushButton* buttonFit;
67  QPushButton* buttonCancel;
68  QComboBox* boxName;
69  QCheckBox *boxSortData;
70  QCheckBox *boxShowPlot;
71  QCheckBox *boxShowTable;
72  QSpinBox *boxStartRow;
73  QSpinBox *boxEndRow;
76 };
77 
78 #endif
void setGraph(Graph *g)
Definition: IntegrationDialog.cpp:195
QCheckBox * boxShowPlot
Definition: IntegrationDialog.h:70
Table * d_table
Definition: IntegrationDialog.h:65
A 2D-plotting widget.
Definition: Graph.h:123
DoubleSpinBox * boxStart
Definition: IntegrationDialog.h:74
void integrate()
Definition: IntegrationDialog.cpp:157
DoubleSpinBox * boxEnd
Definition: IntegrationDialog.h:75
QPushButton * buttonCancel
Definition: IntegrationDialog.h:67
void setTable(Table *t)
Definition: IntegrationDialog.cpp:246
void integrateTable()
Definition: IntegrationDialog.cpp:268
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
Graph * d_graph
Definition: IntegrationDialog.h:64
QPushButton * buttonFit
Definition: IntegrationDialog.h:66
void activateCurve(const QString &)
Definition: IntegrationDialog.cpp:212
IntegrationDialog(Graph *g, QWidget *parent=0, Qt::WFlags fl=0)
Definition: IntegrationDialog.cpp:43
void closeEvent(QCloseEvent *e)
Definition: IntegrationDialog.cpp:311
QSpinBox * boxEndRow
Definition: IntegrationDialog.h:73
Integration options dialog.
Definition: IntegrationDialog.h:43
QCheckBox * boxShowTable
Definition: IntegrationDialog.h:71
void integrateCurve()
Definition: IntegrationDialog.cpp:165
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
QCheckBox * boxSortData
Definition: IntegrationDialog.h:69
QSpinBox * boxStartRow
Definition: IntegrationDialog.h:72
QComboBox * boxName
Definition: IntegrationDialog.h:68
void changeDataRange()
Definition: IntegrationDialog.cpp:231