OpenMS  2.6.0
SpectraSelectionTabs.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-2020.
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 #pragma once
36 
37 // OpenMS_GUI config
38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
39 
41 
42 #include <QTabWidget>
43 
44 namespace OpenMS
45 {
46  class SpectraViewWidget;
47  class SpectraIdentificationViewWidget;
48  class TOPPViewIdentificationViewBehavior;
49  class TOPPViewSpectraViewBehavior;
50  class TOPPViewBase;
55  class OPENMS_GUI_DLLAPI SpectraSelectionTabs
56  : public QTabWidget
57  {
58  Q_OBJECT
59 
60  public:
61  enum TAB_INDEX
62  {
63  SPECTRA_IDX = 0,
64  IDENT_IDX = 1,
65  AUTO_IDX
66  };
67 
70 
72  void update();
73 
75  void currentTabChanged(int tab_index);
76 
78  void showSpectrumAs1D(int index);
79 
81  void showSpectrumAs1D(std::vector<int> indices);
82 
85  void tabBarDoubleClicked(int tab_index);
86 
88  void show(TAB_INDEX which);
89 
90  SpectraIdentificationViewWidget* getSpectraIdentificationViewWidget();
91  signals:
92 
93  private:
95 
99 
106  };
107 
108 } //namespace
109 
OpenMS::SpectraIdentificationViewWidget
Tabular visualization / selection of identified spectra.
Definition: SpectraIdentificationViewWidget.h:53
OpenMS::SpectraSelectionTabs::tv_
TOPPViewBase * tv_
pointer to base class to access some members (going signal/slot would be cleaner)
Definition: SpectraSelectionTabs.h:105
OpenMS::TOPPViewBase
Main window of TOPPView tool.
Definition: TOPPViewBase.h:123
QWidget
QTabWidget
OpenMS
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
OpenMS::TOPPViewSpectraViewBehavior
Behavior of TOPPView in spectra view mode.
Definition: TOPPViewSpectraViewBehavior.h:48
OpenMS::SpectraSelectionTabs::TAB_INDEX
TAB_INDEX
Definition: SpectraSelectionTabs.h:61
OpenMS::SpectraSelectionTabs::idview_behaviour_
TOPPViewIdentificationViewBehavior * idview_behaviour_
TOPPView behavior for the identification view.
Definition: SpectraSelectionTabs.h:103
OpenMS::SpectraSelectionTabs::spectra_view_widget_
SpectraViewWidget * spectra_view_widget_
Definition: SpectraSelectionTabs.h:96
OpenMS::TOPPViewIdentificationViewBehavior
Behavior of TOPPView in identification mode.
Definition: TOPPViewIdentificationViewBehavior.h:50
OpenMS::SpectraSelectionTabs::id_view_widget_
SpectraIdentificationViewWidget * id_view_widget_
Definition: SpectraSelectionTabs.h:97
OpenMS::SpectraSelectionTabs::spectraview_behavior_
TOPPViewSpectraViewBehavior * spectraview_behavior_
TOPPView behavior for the spectra view.
Definition: SpectraSelectionTabs.h:101
OpenMS::SpectraViewWidget
Hierarchical visualization and selection of spectra.
Definition: SpectraViewWidget.h:51
StandardTypes.h
OpenMS::SpectraSelectionTabs
A tabbed view, to browse lists of spectra or identifications.
Definition: SpectraSelectionTabs.h:55