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-2015.
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
44 
45 //QT
46 #include <QtGui/QMainWindow>
47 #include <QtGui/QWorkspace>
48 #include <QtGui/QButtonGroup>
49 #include <QtCore/QProcess>
50 #include <QtGui/QSplashScreen>
51 
52 class QToolBar;
53 class QListWidget;
54 class QTextEdit;
55 class QWorkspace;
56 class QLabel;
57 class QWidget;
58 class QTreeWidget;
59 class QTreeWidgetItem;
60 class QWebView;
61 class QNetworkAccessManager;
62 class QNetworkReply;
63 
64 namespace OpenMS
65 {
66  // OpenMS forward declarations
67  class TOPPASWidget;
68  class TOPPASScene;
69  class TOPPASTabBar;
70  class TOPPASResources;
71 
72  class Spectrum1DWidget;
73 
81  class OPENMS_GUI_DLLAPI IDEvaluationBase :
82  public QMainWindow,
83  public DefaultParamHandler
84  {
85  Q_OBJECT
86 
87 public:
88 
90  IDEvaluationBase(QWidget * parent = 0);
92  virtual ~IDEvaluationBase();
93 
94  QSize sizeHint() const;
95 
96  void setVisibleArea(double low, double high);
97 
98  const MSExperiment<>& getPoints() const;
99 
100  static StringList getSupportedImageFormats();
101 
102 public slots:
103 
104  void resetZoom();
105 
106  void setIntensityMode(int index);
107 
110  bool getPoints(std::vector<PeptideIdentification> & peptides /* cannot be const, to avoid copy */, const std::vector<double> & q_value_thresholds, MSSpectrum<> & points);
111 
113  bool loadCurve(const String& file_name, MSSpectrum<>& points);
116  bool addSearchFile(const String & file_name);
118  void openFileDialog();
120  void saveImageAs();
123  bool exportAsImage(const QString & file_name, String & error_message, const QString & format = "");
125  //void updateCurrentPath();
127  void showAboutDialog();
134  void showStatusMessage(std::string msg, OpenMS::UInt time);
136  //void showCursorStatus(double x, double y);
138  //void closeFile();
140  //void updateToolBar();
141 
144  bool loadFiles(const StringList & list);
145 
146  void showURL();
147 
148 protected slots:
149 
151  //void updateMenu();
153  //void showAsWindow_(TOPPASWidget* sw, const String& caption, const int special_id = -1);
154 
155 
156 
157 
158 protected:
159 
164 
167 
169 
171  QLabel * message_label_;
172 
174  TOPPASWidget * window_(int id) const;
175 
176 
181 
182  void closeEvent(QCloseEvent * event);
183  void keyPressEvent(QKeyEvent * e);
185 
187  enum LogState
188  {
191  LS_ERROR
192  };
194  void showLogMessage_(LogState state, const String & heading, const String & body);
195 
196  std::vector<double> q_value_thresholds_;
197 
198  // holds the computed curves for easy export to outside
200 
204  QToolBar * tool_bar_;
205  //common intensity modes
206 
207  QButtonGroup * intensity_button_group_;
208  //1D specific stuff
210 
211  }; //class
212 
213 } //namespace
214 
215 #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:161
std::vector< double > q_value_thresholds_
Definition: IDEvaluationBase.h:196
String current_path_
Definition: IDEvaluationBase.h:179
QLabel * message_label_
Label for messages in the status bar.
Definition: IDEvaluationBase.h:171
QTextEdit * desc_
Workflow Description window.
Definition: IDEvaluationBase.h:163
Spectrum1DWidget * spec_1d_
Definition: IDEvaluationBase.h:168
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
QToolBar * tool_bar_
Definition: IDEvaluationBase.h:204
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
Main window of the IDEvaluation tool.
Definition: IDEvaluationBase.h:81
Widget visualizing and allowing to edit TOPP pipelines.
Definition: TOPPASWidget.h:61
QButtonGroup * intensity_button_group_
Definition: IDEvaluationBase.h:207
LogState
Log message states.
Definition: IDEvaluationBase.h:187
Widget for visualization of several spectra.
Definition: Spectrum1DWidget.h:66
MSExperiment data_
Definition: IDEvaluationBase.h:199
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
QWorkspace * ws_
Main workspace.
Definition: IDEvaluationBase.h:166
Notice.
Definition: IDEvaluationBase.h:189
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
Warning.
Definition: IDEvaluationBase.h:190

OpenMS / TOPP release 2.0.0 Documentation generated on Wed Mar 30 2016 12:49:23 using doxygen 1.8.11