CycloBranch
cChromatogramWindow.h
Go to the documentation of this file.
1
7#ifndef _CCHROMATOGRAMWINDOW_H
8#define _CCHROMATOGRAMWINDOW_H
9
10#include <QMainWindow>
11#include <QDesktopServices>
12#include <QToolBar>
13#include <QMenuBar>
14#include <QMenu>
15#include <QAction>
16#include <QSpinBox>
17#include <QHBoxLayout>
18#include <QFileDialog>
19#include <QLabel>
20#include <QPushButton>
21#include <QComboBox>
22#include "core/utilities.h"
25
26
30class cChromatogramWindow : public QMainWindow
31{
32 Q_OBJECT
33
34public:
35
36
43 cChromatogramWindow(cGlobalPreferences* globalpreferences, cTheoreticalSpectrumList& listoftheoreticalspectra, QWidget* parent = (QWidget *)0);
44
45
50
51
56 void closeEvent(QCloseEvent *event);
57
58
63 void recalculateTICChromatogram(int activefileid);
64
65
70 void setAbsoluteIntensityEnabled(bool enabled);
71
72
77 void setPeakShape(int peakshape);
78
79
84 void applyGlobalPreferences(cGlobalPreferences* globalpreferences);
85
86
87private:
88
89 cGlobalPreferences* globalpreferences;
90 cTheoreticalSpectrumList* listoftheoreticalspectra;
91 QWidget* parent;
92
93 QMenuBar* menuBar;
94 QMenu* menuFile;
95 QMenu* menuView;
96 QMenu* menuHelp;
97
98 QToolBar* toolbarFile;
99 QAction* actionExportImage;
100 QAction* actionCloseWindow;
101
102 QToolBar* toolbarView;
103 QAction* actionZoomIn;
104 QAction* actionZoomOut;
105 QAction* actionZoomReset;
106 QAction* actionMouseSelection;
107 QAction* actionRetentionTime;
108 QAction* actionAbsoluteIntensity;
109 QAction* actionRawData;
110 QAction* actionHideTIC;
111 QAction* actionHideEIC;
112 QAction* actionHideLabels;
113
114 QWidget* peakshapewidget;
115 QHBoxLayout* peakshapehboxlayout;
116 QLabel* peakshapelabel;
117 QComboBox* comboboxpeakshape;
118
119 QToolBar* toolbarTime;
120
121 QWidget* widgetretentiontime;
122 QHBoxLayout* hboxretentiontime;
123 QLabel* labelretentiontime;
124 QDoubleSpinBox* minretentiontime;
125 QLabel* labelseparatorretentiontime;
126 QDoubleSpinBox* maxretentiontime;
127 QPushButton* setretentiontimeinterval;
128 QPushButton* resetretentiontimeinterval;
129
130 QWidget* widgetscanid;
131 QHBoxLayout* hboxscanid;
132 QLabel* labelscanid;
133 QSpinBox* minscanid;
134 QLabel* labelseparatorscanid;
135 QSpinBox* maxscanid;
136 QPushButton* setscanidinterval;
137 QPushButton* resetscanidinterval;
138 QPushButton* sumofspectra;
139
140 QToolBar* toolbarHelp;
141 QAction* actionHTMLDocumentation;
142
143 cChromatogramWindowWidget* chromatogramwindowwidget;
144
145 QString lastdirexportimage;
146
147
148protected:
149
150
155 void keyPressEvent(QKeyEvent *event);
156
157
158signals:
159
160
166 void emitRetentionTimeInterval(double mintime, double maxtime);
167
168
174 void emitScanIDInterval(int minid, int maxid);
175
176
182
183
189 void calculateAvgSpectrum(int minid, int maxid);
190
191
192private slots:
193
194
195 void exportImage();
196
197
198 void closeWindow();
199
200
201 void updateRetentionTimeInterval(double mintime, double maxtime);
202
203
204 void setRetentionTimeInterval();
205
206
207 void updateScanIDInterval(int minid, int maxid);
208
209
210 void setScanIDInterval();
211
212
213 void setFilterOptionsSlot(cPeaksList eic);
214
215
216 void showHTMLDocumentation();
217
218
219 void chromatogramDoubleClickedSlot(int scanid);
220
221
222 void showAvgSpectrum();
223
224};
225
226#endif
Chromatogram window widget.
The representation of a set of peptide sequence candidates.
Chromatogram window.
Definition: cChromatogramWindow.h:31
void doubleClickedScanIDSignal(int scanid)
The signal is emitted a chromatographic peak was double clicked.
cChromatogramWindow(cGlobalPreferences *globalpreferences, cTheoreticalSpectrumList &listoftheoreticalspectra, QWidget *parent=(QWidget *) 0)
The constructor.
Definition: cChromatogramWindow.cpp:5
~cChromatogramWindow()
The destructor.
Definition: cChromatogramWindow.cpp:271
void emitRetentionTimeInterval(double mintime, double maxtime)
The signal is emitted when the range of retention time has been changed.
void recalculateTICChromatogram(int activefileid)
Recalculate TIC chromatogram.
Definition: cChromatogramWindow.cpp:326
void emitScanIDInterval(int minid, int maxid)
The signal is emitted when the range of scan numbers has been changed.
void setPeakShape(int peakshape)
Set chromatographic peak shape value.
Definition: cChromatogramWindow.cpp:336
void setAbsoluteIntensityEnabled(bool enabled)
Enable/disable absolute intensity mode.
Definition: cChromatogramWindow.cpp:331
void closeEvent(QCloseEvent *event)
Handle the window close event.
Definition: cChromatogramWindow.cpp:320
void applyGlobalPreferences(cGlobalPreferences *globalpreferences)
Apply new global preferences.
Definition: cChromatogramWindow.cpp:341
void calculateAvgSpectrum(int minid, int maxid)
The signal is emitted if the average spectrum is calculated.
void keyPressEvent(QKeyEvent *event)
Handle a key press event.
Definition: cChromatogramWindow.cpp:356
Chromatogram window widget.
Definition: cChromatogramWindowWidget.h:192
The class storing global preferences.
Definition: cGlobalPreferences.h:104
The class representing a peak list.
Definition: cPeaksList.h:68
The class representing lists of theoretical spectra.
Definition: cTheoreticalSpectrumList.h:25
Auxiliary funtions and structures.