CycloBranch
cDefineCalibrationWidget.h
Go to the documentation of this file.
1
7#ifndef _CDEFINECALIBRATIONWIDGET_H
8#define _CDEFINECALIBRATIONWIDGET_H
9
10#include <QWidget>
11#include <QDesktopServices>
12#include <QUrl>
13#include <QFileInfo>
14
15#include "core/utilities.h"
16
17
18// forward declaration
19class QScrollArea;
20class QVBoxLayout;
21class QHBoxLayout;
22class QGridLayout;
23class QLabel;
24class QListWidget;
25class QCheckBox;
26class QLineEdit;
27class QSpinBox;
28class QDoubleSpinBox;
29class QPushButton;
30class QComboBox;
31class QFormLayout;
32
33
37class cDefineCalibrationWidget : public QWidget
38{
39 Q_OBJECT
40
41public:
42
43
48
49
54
55
60 void closeEvent(QCloseEvent *event);
61
62
67 void store(ofstream& os);
68
69
77 void load(ifstream& is, int fileversionpart1, int fileversionpart2, int fileversionpart3);
78
79
85 void prepareWidget(vector<string>& filenames, vector<string>& compounds);
86
87
103 void getData(vector<int>& usedvector, vector<int>& datatypesvector, vector<string>& groupsvector, vector<double>& concentrationsvector, vector<int>& timesvector, vector<int>& selectedionsvector, int& equationtype, double& manuala, double& manualb, int& eictype, int& peakshape, int& standard);
104
105
106private:
107
108 QScrollArea* scrollarea;
109 QWidget* scrollwidget;
110 QVBoxLayout* scrolllayout;
111
112 QVBoxLayout* vlayout;
113 QWidget* filelistwidget;
114
115 QGridLayout* gridlayout;
116
117 QLabel* uselabel;
118 QLabel* filelabel;
119 QLabel* grouplabel;
120 QLabel* datatypelabel;
121 QLabel* concentrationlabel;
122 QLabel* timelabel;
123
124 vector<QCheckBox*> checkboxes;
125 vector<QLineEdit*> lineedits;
126 vector<QComboBox*> comboboxes;
127 vector<QLineEdit*> groupnames;
128 vector<QDoubleSpinBox*> doublespinboxes;
129 vector<QSpinBox*> timespinboxes;
130
131 QLabel* compoundslabel;
132 QListWidget* compoundslist;
133 QVBoxLayout* compoundslayout;
134 QWidget* compoundswidget;
135
136 QFormLayout* formlayout;
137 QWidget* formwidget;
138
139 QComboBox* equationcombobox;
140 QDoubleSpinBox* doublespinboxa;
141 QDoubleSpinBox* doublespinboxb;
142 QComboBox* eiccombobox;
143 QComboBox* peakshapecombobox;
144 QComboBox* standardcombobox;
145
146 QPushButton* okbutton;
147 QPushButton* cancelbutton;
148 QHBoxLayout* buttonslayout;
149 QWidget* buttonswidget;
150
151 vector<int> internalusedvector;
152 vector<string> internalfilenames;
153 vector<int> internaldatatypesvector;
154 vector<string> internalgroupsvector;
155 vector<double> internalconcentrationsvector;
156 vector<int> internaltimesvector;
157
158 vector<string> internalcompounds;
159 vector<int> internalselectedionsvector;
160
161 int internalequationtype;
162 double internala;
163 double internalb;
164 int internaleictype;
165 int internalpeakshape;
166 int internalstandard;
167
168protected:
169
170
175 void keyPressEvent(QKeyEvent *event);
176
177
178private slots:
179
180 void okButtonReleased();
181
182
183 void cancelButtonReleased();
184
185
186 void dataTypeChanged(int index);
187
188
189 void equationChanged(int index);
190
191
192signals:
193
194
199
200};
201
202#endif
203
The widget for definition of calibration curve.
Definition: cDefineCalibrationWidget.h:38
void load(ifstream &is, int fileversionpart1, int fileversionpart2, int fileversionpart3)
Load the content from an input stream.
Definition: cDefineCalibrationWidget.cpp:244
void keyPressEvent(QKeyEvent *event)
Handle a key press event.
Definition: cDefineCalibrationWidget.cpp:514
void store(ofstream &os)
Store the content into an output stream.
Definition: cDefineCalibrationWidget.cpp:223
~cDefineCalibrationWidget()
The destructor.
Definition: cDefineCalibrationWidget.cpp:154
void calibrationRedefined()
Parameters of calibration curve were redefined.
void closeEvent(QCloseEvent *event)
Handle the window close event.
Definition: cDefineCalibrationWidget.cpp:217
void getData(vector< int > &usedvector, vector< int > &datatypesvector, vector< string > &groupsvector, vector< double > &concentrationsvector, vector< int > &timesvector, vector< int > &selectedionsvector, int &equationtype, double &manuala, double &manualb, int &eictype, int &peakshape, int &standard)
Get data from dialog.
Definition: cDefineCalibrationWidget.cpp:497
void prepareWidget(vector< string > &filenames, vector< string > &compounds)
Prepare widget for visualization.
Definition: cDefineCalibrationWidget.cpp:313
cDefineCalibrationWidget()
The constructor.
Definition: cDefineCalibrationWidget.cpp:20
Auxiliary funtions and structures.