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-2013.
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
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  class TOPPASWidget;
67  class TOPPASScene;
68  class TOPPASTabBar;
69  class TOPPASResources;
70 
78  class OPENMS_GUI_DLLAPI IDEvaluationBase :
79  public QMainWindow,
80  public DefaultParamHandler
81  {
82  Q_OBJECT
83 
84 public:
85 
87  IDEvaluationBase(QWidget * parent = 0);
89  virtual ~IDEvaluationBase();
90 
91  QSize sizeHint() const;
92 
93  void setVisibleArea(double low, double high);
94 
95  const MSExperiment<>& getPoints() const;
96 
97  static StringList getSupportedImageFormats();
98 
99 public slots:
100 
101  void resetZoom();
102 
103  void setIntensityMode(int index);
104 
107  bool getPoints(std::vector<PeptideIdentification> & peptides /* cannot be const, to avoid copy */, const std::vector<DoubleReal> & q_value_thresholds, MSSpectrum<> & points);
108 
110  bool loadCurve(const String& file_name, MSSpectrum<>& points);
113  bool addSearchFile(const String & file_name);
115  void openFileDialog();
117  void saveImageAs();
120  bool exportAsImage(const QString & file_name, String & error_message, const QString & format = "");
122  //void updateCurrentPath();
124  void showAboutDialog();
131  void showStatusMessage(std::string msg, OpenMS::UInt time);
133  //void showCursorStatus(double x, double y);
135  //void closeFile();
137  //void updateToolBar();
138 
141  bool loadFiles(const StringList & list);
142 
143  void showURL();
144 
145 protected slots:
146 
148  //void updateMenu();
150  //void showAsWindow_(TOPPASWidget* sw, const String& caption, const int special_id = -1);
151 
152 
153 
154 
155 protected:
156 
161 
164 
166 
168  QLabel * message_label_;
169 
171  TOPPASWidget * window_(int id) const;
172 
173 
178 
179  void closeEvent(QCloseEvent * event);
180  void keyPressEvent(QKeyEvent * e);
182 
184  enum LogState
185  {
188  LS_ERROR
189  };
191  void showLogMessage_(LogState state, const String & heading, const String & body);
192 
193  std::vector<DoubleReal> q_value_thresholds_;
194 
195  // holds the computed curves for easy export to outside
197 
201  QToolBar * tool_bar_;
202  //common intensity modes
203 
204  QButtonGroup * intensity_button_group_;
205  //1D specific stuff
207 
208  }; //class
209 
210 } //namespace
211 
212 #endif // OPENMS_VISUAL_APPLICATIONS_IDEVALUATIONBASE_H
A more convenient string class.
Definition: String.h:56
QTextEdit * log_
enable/disable menu entries depending on the current state
Definition: IDEvaluationBase.h:158
String current_path_
Definition: IDEvaluationBase.h:176
QLabel * message_label_
Label for messages in the status bar.
Definition: IDEvaluationBase.h:168
QTextEdit * desc_
Workflow Description window.
Definition: IDEvaluationBase.h:160
Spectrum1DWidget * spec_1d_
Definition: IDEvaluationBase.h:165
QToolBar * tool_bar_
Definition: IDEvaluationBase.h:201
Main window of the IDEvaluation tool.
Definition: IDEvaluationBase.h:78
Widget visualizing and allowing to edit TOPP pipelines.
Definition: TOPPASWidget.h:59
QButtonGroup * intensity_button_group_
Definition: IDEvaluationBase.h:204
LogState
Log message states.
Definition: IDEvaluationBase.h:184
Widget for visualization of several spectra.
Definition: Spectrum1DWidget.h:63
MSExperiment data_
Definition: IDEvaluationBase.h:196
Representation of a mass spectrometry experiment.
Definition: MSExperiment.h:68
String list.
Definition: StringList.h:56
QWorkspace * ws_
Main workspace.
Definition: IDEvaluationBase.h:163
Notice.
Definition: IDEvaluationBase.h:186
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:90
std::vector< DoubleReal > q_value_thresholds_
Definition: IDEvaluationBase.h:193
Warning.
Definition: IDEvaluationBase.h:187

OpenMS / TOPP release 1.11.1 Documentation generated on Thu Nov 14 2013 11:19:15 using doxygen 1.8.5