Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef OPENMS_VISUAL_APPLICATIONS_IDEVALUATIONBASE_H
00036 #define OPENMS_VISUAL_APPLICATIONS_IDEVALUATIONBASE_H
00037
00038
00039 #include <OpenMS/DATASTRUCTURES/DefaultParamHandler.h>
00040 #include <OpenMS/FORMAT/IdXMLFile.h>
00041 #include <OpenMS/ANALYSIS/ID/FalseDiscoveryRate.h>
00042 #include <OpenMS/KERNEL/MSSpectrum.h>
00043 #include <OpenMS/VISUAL/Spectrum1DWidget.h>
00044
00045
00046 #include <QtGui/QMainWindow>
00047 #include <QtGui/QWorkspace>
00048 #include <QtGui/QButtonGroup>
00049 #include <QtCore/QProcess>
00050 #include <QtGui/QSplashScreen>
00051
00052 class QToolBar;
00053 class QListWidget;
00054 class QTextEdit;
00055 class QWorkspace;
00056 class QLabel;
00057 class QWidget;
00058 class QTreeWidget;
00059 class QTreeWidgetItem;
00060 class QWebView;
00061 class QNetworkAccessManager;
00062 class QNetworkReply;
00063
00064 namespace OpenMS
00065 {
00066 class TOPPASWidget;
00067 class TOPPASScene;
00068 class TOPPASTabBar;
00069 class TOPPASResources;
00070
00078 class OPENMS_GUI_DLLAPI IDEvaluationBase :
00079 public QMainWindow,
00080 public DefaultParamHandler
00081 {
00082 Q_OBJECT
00083
00084 public:
00085
00087 IDEvaluationBase(QWidget * parent = 0);
00089 virtual ~IDEvaluationBase();
00090
00091 QSize sizeHint() const;
00092
00093 void setVisibleArea(double low, double high);
00094
00095 const MSExperiment<>& getPoints() const;
00096
00097 static StringList getSupportedImageFormats();
00098
00099 public slots:
00100
00101 void resetZoom();
00102
00103 void setIntensityMode(int index);
00104
00107 bool getPoints(std::vector<PeptideIdentification> & peptides , const std::vector<DoubleReal> & q_value_thresholds, MSSpectrum<> & points);
00108
00110 bool loadCurve(const String& file_name, MSSpectrum<>& points);
00113 bool addSearchFile(const String & file_name);
00115 void openFileDialog();
00117 void saveImageAs();
00120 bool exportAsImage(const QString & file_name, String & error_message, const QString & format = "");
00122
00124 void showAboutDialog();
00131 void showStatusMessage(std::string msg, OpenMS::UInt time);
00133
00135
00137
00138
00141 bool loadFiles(const StringList & list);
00142
00143 void showURL();
00144
00145 protected slots:
00146
00148
00150
00151
00152
00153
00154
00155 protected:
00156
00158 QTextEdit * log_;
00160 QTextEdit * desc_;
00161
00163 QWorkspace * ws_;
00164
00165 Spectrum1DWidget * spec_1d_;
00166
00168 QLabel * message_label_;
00169
00171 TOPPASWidget * window_(int id) const;
00172
00173
00176 String current_path_;
00178
00179 void closeEvent(QCloseEvent * event);
00180 void keyPressEvent(QKeyEvent * e);
00182
00184 enum LogState
00185 {
00186 LS_NOTICE,
00187 LS_WARNING,
00188 LS_ERROR
00189 };
00191 void showLogMessage_(LogState state, const String & heading, const String & body);
00192
00193 std::vector<DoubleReal> q_value_thresholds_;
00194
00195
00196 MSExperiment<> data_;
00197
00201 QToolBar * tool_bar_;
00202
00203
00204 QButtonGroup * intensity_button_group_;
00205
00207
00208 };
00209
00210 }
00211
00212 #endif // OPENMS_VISUAL_APPLICATIONS_IDEVALUATIONBASE_H