QtiPlot  0.9.8.2
SubtractDataDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : SubtractDataDialog.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2010 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : Subtract reference data 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 SUBTRACT_DATA_DIALOG_H
30 #define SUBTRACT_DATA_DIALOG_H
31 
32 #include <QDialog>
33 
34 class QPushButton;
35 class QRadioButton;
36 class QComboBox;
37 class QCheckBox;
38 class Graph;
39 class DoubleSpinBox;
40 
42 class SubtractDataDialog : public QDialog
43 {
44  Q_OBJECT
45 
46 public:
47  SubtractDataDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
48  void setGraph(Graph *g);
49 
50 private slots:
51  void interpolate();
52  void updateTableColumns(int tabnr);
53  void setCurrentFolder(bool);
54 
55 private:
56  double combineValues(double v1, double v2);
57 
59  QPushButton* buttonApply;
60  QPushButton* buttonCancel;
61  QComboBox* boxInputName;
62  QComboBox* boxReferenceName;
63  QComboBox* boxColumnName;
64  QComboBox* boxOperation;
65  QRadioButton *btnDataset;
66  QRadioButton *btnValue;
67  QCheckBox *boxCurrentFolder;
69 };
70 
71 #endif
QCheckBox * boxCurrentFolder
Definition: SubtractDataDialog.h:67
double combineValues(double v1, double v2)
Definition: SubtractDataDialog.cpp:175
QPushButton * buttonApply
Definition: SubtractDataDialog.h:59
QComboBox * boxInputName
Definition: SubtractDataDialog.h:61
void setGraph(Graph *g)
Definition: SubtractDataDialog.cpp:327
A 2D-plotting widget.
Definition: Graph.h:123
QRadioButton * btnValue
Definition: SubtractDataDialog.h:66
void setCurrentFolder(bool)
Definition: SubtractDataDialog.cpp:132
QComboBox * boxOperation
Definition: SubtractDataDialog.h:64
QRadioButton * btnDataset
Definition: SubtractDataDialog.h:65
QComboBox * boxReferenceName
Definition: SubtractDataDialog.h:62
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
SubtractDataDialog(QWidget *parent=0, Qt::WFlags fl=0)
Definition: SubtractDataDialog.cpp:50
void interpolate()
Definition: SubtractDataDialog.cpp:195
Graph * graph
Definition: SubtractDataDialog.h:58
Subtract reference data dialog.
Definition: SubtractDataDialog.h:42
void updateTableColumns(int tabnr)
Definition: SubtractDataDialog.cpp:155
QComboBox * boxColumnName
Definition: SubtractDataDialog.h:63
DoubleSpinBox * boxOffset
Definition: SubtractDataDialog.h:68
QPushButton * buttonCancel
Definition: SubtractDataDialog.h:60