CycloBranch
cPatternSimulatorWidget.h
Go to the documentation of this file.
1
7#ifndef _CPATTERNSIMULATORWIDGET_H
8#define _CPATTERNSIMULATORWIDGET_H
9
10#include <QWidget>
11#include <QDesktopServices>
12#include <QToolBar>
13#include <QMenuBar>
14#include <QMenu>
15#include <QUrl>
16#include <QFileInfo>
17#include <QMainWindow>
18#include <QTextDocument>
19#include <QTableView>
20#include <QStandardItemModel>
21#include <QStandardItem>
22#include <QHeaderView>
23#include <QProgressDialog>
24#include <QTextStream>
28#include "gui/cExportDialog.h"
29#include "gui/cEventFilter.h"
30#include "gui/cHTMLDelegate.h"
31
32
33// forward declaration
34class QTextBrowser;
35class QHBoxLayout;
36class QVBoxLayout;
37class QFormLayout;
38class QCheckBox;
39class QPushButton;
40class QSplitter;
41class QComboBox;
42class QDoubleSpinBox;
43class QSpinBox;
44class QAction;
45class QLabel;
46
47
51class cPatternSimulatorWidget : public QMainWindow
52{
53 Q_OBJECT
54
55public:
56
57
63 cPatternSimulatorWidget(cGlobalPreferences* globalpreferences, QWidget *parent);
64
65
70
71
76 void closeEvent(QCloseEvent *event);
77
78
83 void applyGlobalPreferences(cGlobalPreferences* globalpreferences);
84
85
86protected:
87
88
93 void keyPressEvent(QKeyEvent *event);
94
95
96private:
97
98 cGlobalPreferences* globalpreferences;
99 QWidget* parent;
100
101 QMenuBar* menuBar;
102 QMenu* menuFile;
103 QMenu* menuView;
104 QMenu* menuHelp;
105
106 QToolBar* toolbarFile;
107 QToolBar* toolbarView;
108 QToolBar* toolbarHelp;
109 QToolBar* toolbarMz;
110 QToolBar* toolbarInput;
111
112 QAction* actionExportTable;
113 QAction* actionExportSpectrum;
114 QAction* actionCloseWindow;
115 QAction* actionZoomIn;
116 QAction* actionZoomOut;
117 QAction* actionZoomReset;
118 QAction* actionAbsoluteIntensity;
119 QAction* actionRawData;
120 QAction* actionHideLabels;
121 QAction* actionMouseMzSelection;
122 QAction* actionHTMLDocumentation;
123 QSplitter* hsplitter1;
124 QSplitter* hsplitter2;
125 QSplitter* vsplitter;
126
127 QWidget* widgetmz;
128 QHBoxLayout* hboxmz;
129 QLabel* labelmz;
130 QDoubleSpinBox* minmz;
131 QLabel* labelseparator;
132 QDoubleSpinBox* maxmz;
133 QPushButton* setmzinterval;
134 QPushButton* resetmzinterval;
135
136 QWidget* widgetiontype;
137 QHBoxLayout* hboxiontype;
138 QLabel* labeliontype;
139 QComboBox* comboboxiontype;
140
141 QWidget* widgetformula;
142 QHBoxLayout* hboxformula;
143 QLabel* labelformula;
144 QLineEdit* lineeditformula;
145
146 QWidget* widgetfwhm;
147 QHBoxLayout* hboxfwhm;
148 QLabel* labelfwhm;
149 QDoubleSpinBox* doublespinboxfwhm;
150
151 QWidget* widgetcharge;
152 QHBoxLayout* hboxcharge;
153 QLabel* labelcharge;
154 QSpinBox* spinboxcharge;
155
156 QWidget* widgetabsoluteintensity;
157 QHBoxLayout* hboxabsoluteintensity;
158 QLabel* labelabsoluteintensity;
159 QDoubleSpinBox* doublespinboxabsoluteintensity;
160
161 QPushButton* simulatebutton;
162
163 QTableView* peakstable;
164 QStandardItemModel* peakstablemodel;
165 cSpectrumDetailProxyModel* proxymodel;
166
167 cPatternSimulatorSceneWidget* spectrumscene;
168
169 cExportDialog* exportdialog;
170
171
172 void preparePeaksTable(cPeaksList& isotopepattern);
173
174
175 void deleteTable();
176
177
178signals:
179
180
186 void emitMZInterval(double minmz, double maxmz);
187
188
194
195
196private slots:
197
198
199 void simulateButtonReleased();
200
201
202 void updateMZInterval(double minmz, double maxmz);
203
204
205 void setMZInterval();
206
207
208 void exportSpectrum();
209
210
211 void exportTableToCSV();
212
213
214 void rawDataStateChanged(bool state);
215
216
217 void hidePeakLabels(bool hide);
218
219
220 void showHTMLDocumentation();
221
222
223 void closeWindow();
224
225};
226
227#endif
228
An event filter.
The implementation of a dialog to export spectrum/peptide image.
The representation of a set of peptide sequence candidates.
A delegate to display rich text.
The implementation of an isotopic pattern simulator (graphics).
A table proxy model.
The implementation of a dialog to export spectrum/peptide image.
Definition: cExportDialog.h:22
The class storing global preferences.
Definition: cGlobalPreferences.h:104
The implementation of an isotopic pattern simulator (graphics).
Definition: cPatternSimulatorSceneWidget.h:55
The implementation of an isotopic pattern simulator (window).
Definition: cPatternSimulatorWidget.h:52
~cPatternSimulatorWidget()
The destructor.
Definition: cPatternSimulatorWidget.cpp:301
cPatternSimulatorWidget(cGlobalPreferences *globalpreferences, QWidget *parent)
The constructor.
Definition: cPatternSimulatorWidget.cpp:26
void applyGlobalPreferences(cGlobalPreferences *globalpreferences)
Apply new global preferences.
Definition: cPatternSimulatorWidget.cpp:379
void emitMZInterval(double minmz, double maxmz)
The signal is emitted when the range of m/z ratios is changed.
void rawDataStateChangedSignal(bool state)
The signal is emitted when raw data state was changed.
void closeEvent(QCloseEvent *event)
Handle the window close event.
Definition: cPatternSimulatorWidget.cpp:373
void keyPressEvent(QKeyEvent *event)
Handle a key press event.
Definition: cPatternSimulatorWidget.cpp:389
The class representing a peak list.
Definition: cPeaksList.h:68
A table proxy model.
Definition: cSpectrumDetailProxyModel.h:19