QtiPlot  0.9.8.2
BaselineDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : BaselineDialog.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2010 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : Subtract baseline 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 BASELINE_DIALOG_H
30 #define BASELINE_DIALOG_H
31 
32 #include <QDialog>
33 
34 class QPushButton;
35 class QRadioButton;
36 class QComboBox;
37 class QLineEdit;
38 class QSpinBox;
39 class Graph;
40 class Table;
41 class PlotCurve;
42 class BaselineTool;
43 class QwtPlotCurve;
44 
46 class BaselineDialog : public QDialog
47 {
48  Q_OBJECT
49 
50 public:
51  BaselineDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
52  void setGraph(Graph *g);
53 
54 private slots:
55  void updateGraphCurves();
56  void updateTableColumns(int tabnr);
57  void createBaseline();
58  void subtractBaseline(bool add = false);
59  void undo();
60  void modifyBaseline();
61  void enableBaselineOptions();
62 
63 private:
64  void disableBaselineTool();
65  double combineValues(double v1, double v2, bool add = false);
66  void closeEvent(QCloseEvent* e);
67 
69  QPushButton* buttonSubtract;
70  QPushButton* buttonUndo;
71  QPushButton* buttonModify;
72  QPushButton* buttonCreate;
73  QPushButton* buttonCancel;
74 
75  QComboBox* boxTableName;
76  QComboBox* boxColumnName;
77  QComboBox* boxInputName;
79 
80  QLineEdit* boxEquation;
81 
82  QRadioButton *btnAutomatic;
83  QRadioButton *btnEquation;
84  QRadioButton *btnDataset;
85 
86  QSpinBox* boxPoints;
87 
91 };
92 
93 #endif
PlotCurve * d_baseline
Definition: BaselineDialog.h:88
Plot tool for selecting and moving individual points of a baseline curve.
Definition: DataPickerTool.h:102
QComboBox * boxInterpolationMethod
Definition: BaselineDialog.h:78
QRadioButton * btnAutomatic
Definition: BaselineDialog.h:82
QPushButton * buttonCreate
Definition: BaselineDialog.h:72
A 2D-plotting widget.
Definition: Graph.h:123
QComboBox * boxTableName
Definition: BaselineDialog.h:75
Subtract baseline dialog.
Definition: BaselineDialog.h:46
QPushButton * buttonCancel
Definition: BaselineDialog.h:73
QPushButton * buttonModify
Definition: BaselineDialog.h:71
void undo()
Definition: BaselineDialog.cpp:269
QSpinBox * boxPoints
Definition: BaselineDialog.h:86
QRadioButton * btnDataset
Definition: BaselineDialog.h:84
void modifyBaseline()
Definition: BaselineDialog.cpp:174
void setGraph(Graph *g)
Definition: BaselineDialog.cpp:398
double combineValues(double v1, double v2, bool add=false)
Definition: BaselineDialog.cpp:368
QComboBox * boxColumnName
Definition: BaselineDialog.h:76
void disableBaselineTool()
Definition: BaselineDialog.cpp:165
QLineEdit * boxEquation
Definition: BaselineDialog.h:80
QComboBox * boxInputName
Definition: BaselineDialog.h:77
void subtractBaseline(bool add=false)
Definition: BaselineDialog.cpp:274
Abstract 2D plot curve class.
Definition: PlotCurve.h:41
void createBaseline()
Definition: BaselineDialog.cpp:207
Graph * graph
Definition: BaselineDialog.h:68
QRadioButton * btnEquation
Definition: BaselineDialog.h:83
void updateTableColumns(int tabnr)
Definition: BaselineDialog.cpp:378
BaselineDialog(QWidget *parent=0, Qt::WFlags fl=0)
Definition: BaselineDialog.cpp:54
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
void closeEvent(QCloseEvent *e)
Definition: BaselineDialog.cpp:431
QPushButton * buttonUndo
Definition: BaselineDialog.h:70
void updateGraphCurves()
Definition: BaselineDialog.cpp:416
BaselineTool * d_picker_tool
Definition: BaselineDialog.h:90
Table * d_table
Definition: BaselineDialog.h:89
void enableBaselineOptions()
Definition: BaselineDialog.cpp:148
QPushButton * buttonSubtract
Definition: BaselineDialog.h:69