11#include <QDesktopServices>
16#include <QStandardItemModel>
17#include <QStandardItem>
18#include <QItemDelegate>
90 QToolBar* toolbarFile;
91 QToolBar* toolbarSearch;
92 QToolBar* toolbarTools;
93 QToolBar* toolbarBookmarks;
94 QToolBar* toolbarView;
95 QToolBar* toolbarHelp;
96 QToolBar* toolbarInputFilter;
97 QToolBar* toolbarRowsFilter;
99 QAction* actionOpenResults;
100 QAction* actionSaveResults;
101 QAction* actionExportToCsv;
102 QAction* actionExportToHTML;
103 QAction* actionPreferences;
107 QAction* actionProperties;
108 QAction* actionBricksDatabase;
109 QAction* actionSequenceDatabase;
110 QAction* actionModifications;
111 QAction *actionDrawPeptide;
112 QAction *actionBookMark1;
113 QAction *actionBookMark2;
114 QAction *actionBookMark3;
115 QAction *actionBookMark4;
116 QAction *actionBookMark5;
117 QAction *actionBookMark6;
118 QAction *actionBookMark7;
119 QAction *actionBookMark8;
120 QAction *actionBookMark9;
121 QAction *actionBookMark10;
122 QAction* actionShowIsomers;
123 QAction* actionGraph;
124 QAction* actionSummaryTableOfMatchedPeaks;
125 QAction* actionMultipleDatasets;
126 QAction* actionChromatogramWindow;
127 QAction* actionImageWindow;
128 QAction* actionPatternSimulatorWindow;
129 QAction* actionFormulaPredictor;
131 QAction* actionHTMLDocumentation;
132 QAction* actionPDFManual;
133 QAction* actionAbout;
135 QWidget* inputfilterwidget;
136 QHBoxLayout* inputfilterhbox;
137 QComboBox* inputfiltercombobox;
138 QPushButton* inputfilterbutton;
140 QWidget* rowsfilterwidget;
141 QHBoxLayout* rowsfilterhbox;
142 QComboBox* rowsfilteroperator;
143 QComboBox* rowsfiltercombobox1;
144 QComboBox* rowsfiltercomparatorcombobox1;
145 QLineEdit* rowsfilterline1;
146 QComboBox* rowsfiltercombobox2;
147 QComboBox* rowsfiltercomparatorcombobox2;
148 QLineEdit* rowsfilterline2;
149 QCheckBox* rowsfiltercasesensitive;
150 QCheckBox* rowsfilterwholeword;
151 QPushButton* rowsfilterbutton;
152 QPushButton* rowsfilterclearbutton;
155 QStandardItemModel* resultsmodel;
160 vector<cSpectrumDetailWidget> spectradetails;
161 vector<cSpectrumDetailWidget> avgspectra;
167 vector<cImzMLItem> imzmlprofilemetadata;
168 bool profilemz64precision;
169 bool profileintensity64precision;
171 QTextEdit* logWindow;
190 int resultsbasecolumncount;
191 int resultsspecificcolumncount;
192 int searchspecificcolumncount;
194 QString lastdirexporttocsv;
195 QString lastdirexporttohtml;
197 QString lastdirsaveresults;
198 QString lastdiropenresults;
200 bool summarytableisprepared;
201 bool multipledatasetsisprepared;
203 int lastactivedetail;
205 QRect othernormalgeometry;
206 bool otherismaximized;
207 bool otherprofilespectrum;
208 bool otherabsoluteintensity;
209 bool othermatchedpeaks;
210 bool otherunmatchedpeaks;
211 bool otherscrambledpeaks;
212 bool otherlabelspeaks;
213 bool othermzselection;
218 bool avgspectrumabsoluteintensityenabled;
219 QRect avgspectrumgeometry;
220 bool avgspectrummaximized;
224 void closeEvent(QCloseEvent *event);
226 void preparePeptideSequence(
int row,
string& peptidesequence,
bool reportisomers);
230 void deleteResults();
232 void applyGlobalPreferences();
234 void openDetail(
int rowid);
236 void calculateAvgSpectrum(
int minscan,
int maxscan);
245 void showBricksDatabase();
247 void showSequenceDatabase();
249 void showModifications();
251 void showDrawPeptideWidget();
253 void setAndShowDrawPeptideWidget(
int peptidetypeindex, QString sequence);
255 bool prepareSummaryTableOfMatchedPeaks();
257 void showSummaryTableOfMatchedPeaks();
259 void showImageWindow();
261 void showChromatogramWindow();
265 void showProperties();
267 void showMultipleDatasetsOverview();
269 void showPatternSimulatorWindow();
271 void showFormulaPredictor();
277 void updateLog(QString qstr);
279 void enableRunButtonAndSettings(
bool enable);
281 void enableStopButton(
bool enable);
283 void enableButtonsHandlingResults(
bool enable);
287 void reportSpectra();
289 void showIsomersStateChanged();
291 void rowDoubleClicked(
const QModelIndex& item);
293 void setGraph(
string s);
299 void showPreferences();
301 void showHTMLDocumentation();
303 void showPDFManual();
305 void saveResultsFile();
307 void openResultsFile();
309 void setSequence(
int peptidetypeindex, QString sequence);
311 void setTag(
int peptidetypeindex, QString tag);
313 void insertSequence(
int peptidetypeindex, QString tag);
315 void quitApplication();
317 void filterResults();
321 void lastActiveDetailSlot(
int rowid);
323 void gotoBookMark1();
325 void gotoBookMark2();
327 void gotoBookMark3();
329 void gotoBookMark4();
331 void gotoBookMark5();
333 void gotoBookMark6();
335 void gotoBookMark7();
337 void gotoBookMark8();
339 void gotoBookMark9();
341 void gotoBookMark10();
343 void summaryPeaksTableCancelled();
345 void multipleDatasetsTableCancelled();
347 void summaryPeaksTableRowDoubleClicked(
int rowid,
double experimentalmz);
349 void multipleDatasetsTableRowClicked(
int datasetid,
int spectrumid,
int peakid,
int datatypeview,
int peakshape,
string name,
string iontype,
string mzstr);
351 void updateSummaryPeaksTableFilterSlot(
int xmin,
int xmax,
int ymin,
int ymax);
353 void chromatogramDoubleClicked(
int scanid);
355 void imageWindowDoubleClicked(
int spectrumid);
357 void inputFilterButtonReleased();
359 void filterSummaryTableIfPrepared();
361 void showAvgSpectrum(
int minscan,
int maxscan);
363 void avgSpectrumAbsoluteIntensityStateChanged(
bool state);
The implementation of HTML export dialog.
The thread launched by the command 'Search->Run'.
Q_DECLARE_METATYPE(string)
Register string by Qt.
The implementation of preferences dialog.
The representation of a theoretical mass spectrum.
Chromatogram window.
Definition: cChromatogramWindow.h:31
The class storing global preferences.
Definition: cGlobalPreferences.h:104
The implementation of HTML export dialog.
Definition: cHTMLExportDialog.h:23
Image window.
Definition: cImageWindow.h:240
The class representing the main window of the application.
Definition: cMainWindow.h:52
void keyPressEvent(QKeyEvent *event)
Handle a key press event.
Definition: cMainWindow.cpp:624
cMainWindow()
The constructor.
Definition: cMainWindow.cpp:22
~cMainWindow()
The destructor.
Definition: cMainWindow.cpp:533
void stopComputation()
The option 'Search->Stop' has been selected.
A table proxy model.
Definition: cMainWindowProxyModel.h:21
The class storing parameters of the application.
Definition: cParameters.h:82
The class representing a series of peaklists.
Definition: cPeakListSeries.h:21
Preferences dialog.
Definition: cPreferencesDialog.h:31
The class representing a theoretical mass spectrum.
Definition: cTheoreticalSpectrum.h:106
The class representing lists of theoretical spectra.
Definition: cTheoreticalSpectrumList.h:25
Auxiliary funtions and structures.