Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
IDEvaluationBase.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // OpenMS -- Open-Source Mass Spectrometry
3 // --------------------------------------------------------------------------
4 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
5 // ETH Zurich, and Freie Universitaet Berlin 2002-2017.
6 //
7 // This software is released under a three-clause BSD license:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of any author or any participating institution
14 // may be used to endorse or promote products derived from this software
15 // without specific prior written permission.
16 // For a full list of authors, refer to the file AUTHORS.
17 // --------------------------------------------------------------------------
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
22 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // --------------------------------------------------------------------------
31 // $Maintainer: Chris Bielow $
32 // $Authors: Chris Bielow $
33 // --------------------------------------------------------------------------
34 
35 #ifndef OPENMS_VISUAL_APPLICATIONS_IDEVALUATIONBASE_H
36 #define OPENMS_VISUAL_APPLICATIONS_IDEVALUATIONBASE_H
37 
38 // OpenMS_GUI config
39 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
40 
41 //OpenMS
45 
46 //QT
47 #include <QtGui/QMainWindow>
48 #include <QtGui/QWorkspace>
49 #include <QtGui/QButtonGroup>
50 #include <QtCore/QProcess>
51 #include <QtGui/QSplashScreen>
52 
53 class QToolBar;
54 class QListWidget;
55 class QTextEdit;
56 class QWorkspace;
57 class QLabel;
58 class QWidget;
59 class QTreeWidget;
60 class QTreeWidgetItem;
61 class QWebView;
62 class QNetworkAccessManager;
63 class QNetworkReply;
64 
65 namespace OpenMS
66 {
67  // OpenMS forward declarations
68  class TOPPASWidget;
69  class TOPPASScene;
70  class TOPPASTabBar;
71  class TOPPASResources;
72 
73  class Spectrum1DWidget;
74 
82  class OPENMS_GUI_DLLAPI IDEvaluationBase :
83  public QMainWindow,
84  public DefaultParamHandler
85  {
86  Q_OBJECT
87 
88 public:
89 
91  IDEvaluationBase(QWidget * parent = 0);
93  virtual ~IDEvaluationBase();
94 
95  QSize sizeHint() const;
96 
97  void setVisibleArea(double low, double high);
98 
99  const PeakMap& getPoints() const;
100 
101  static StringList getSupportedImageFormats();
102 
103 public slots:
104 
105  void resetZoom();
106 
107  void setIntensityMode(int index);
108 
111  bool getPoints(std::vector<PeptideIdentification> & peptides /* cannot be const, to avoid copy */, const std::vector<double> & q_value_thresholds, MSSpectrum & points);
112 
114  bool loadCurve(const String& file_name, MSSpectrum& points);
117  bool addSearchFile(const String & file_name);
119  void openFileDialog();
121  void saveImageAs();
124  bool exportAsImage(const QString & file_name, String & error_message, const QString & format = "");
126  //void updateCurrentPath();
128  void showAboutDialog();
135  void showStatusMessage(std::string msg, OpenMS::UInt time);
137  //void showCursorStatus(double x, double y);
139  //void closeFile();
141  //void updateToolBar();
142 
145  bool loadFiles(const StringList & list);
146 
147  void showURL();
148 
149 protected slots:
150 
152  //void updateMenu();
154  //void showAsWindow_(TOPPASWidget* sw, const String& caption, const int special_id = -1);
155 
156 
157 
158 
159 protected:
160 
165 
168 
170 
172  QLabel * message_label_;
173 
175  TOPPASWidget * window_(int id) const;
176 
177 
182 
183  void closeEvent(QCloseEvent * event);
184  void keyPressEvent(QKeyEvent * e);
186 
188  enum LogState
189  {
192  LS_ERROR
193  };
195  void showLogMessage_(LogState state, const String & heading, const String & body);
196 
197  std::vector<double> q_value_thresholds_;
198 
199  // holds the computed curves for easy export to outside
201 
205  QToolBar * tool_bar_;
206  //common intensity modes
207 
208  QButtonGroup * intensity_button_group_;
209  //1D specific stuff
211 
212  }; //class
213 
214 } //namespace
215 
216 #endif // OPENMS_VISUAL_APPLICATIONS_IDEVALUATIONBASE_H
A more convenient string class.
Definition: String.h:57
QTextEdit * log_
enable/disable menu entries depending on the current state
Definition: IDEvaluationBase.h:162
std::vector< double > q_value_thresholds_
Definition: IDEvaluationBase.h:197
unsigned int UInt
Unsigned integer type.
Definition: Types.h:95
String current_path_
Definition: IDEvaluationBase.h:180
QLabel * message_label_
Label for messages in the status bar.
Definition: IDEvaluationBase.h:172
QTextEdit * desc_
Workflow Description window.
Definition: IDEvaluationBase.h:164
Spectrum1DWidget * spec_1d_
Definition: IDEvaluationBase.h:169
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
QToolBar * tool_bar_
Definition: IDEvaluationBase.h:205
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
Main window of the IDEvaluation tool.
Definition: IDEvaluationBase.h:82
PeakMap data_
Definition: IDEvaluationBase.h:200
Widget visualizing and allowing to edit TOPP pipelines.
Definition: TOPPASWidget.h:61
QButtonGroup * intensity_button_group_
Definition: IDEvaluationBase.h:208
LogState
Log message states.
Definition: IDEvaluationBase.h:188
Widget for visualization of several spectra.
Definition: Spectrum1DWidget.h:66
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:82
QWorkspace * ws_
Main workspace.
Definition: IDEvaluationBase.h:167
Notice.
Definition: IDEvaluationBase.h:190
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
Warning.
Definition: IDEvaluationBase.h:191

OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:01 using doxygen 1.8.13