QtiPlot
0.9.8.2
Main Page
Related Pages
Classes
Files
File List
File Members
qtiplot
src
analysis
dialogs
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
68
Graph
*
graph
;
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
;
78
QComboBox*
boxInterpolationMethod
;
79
80
QLineEdit*
boxEquation
;
81
82
QRadioButton *
btnAutomatic
;
83
QRadioButton *
btnEquation
;
84
QRadioButton *
btnDataset
;
85
86
QSpinBox*
boxPoints
;
87
88
PlotCurve
*
d_baseline
;
89
Table
*
d_table
;
90
BaselineTool
*
d_picker_tool
;
91
};
92
93
#endif
Generated on Sat Jun 8 2013 16:32:22 for QtiPlot by
1.8.1.2