OpenMS  2.6.0
Public Types | Public Member Functions | List of all members
SpectraSelectionTabs Class Reference

A tabbed view, to browse lists of spectra or identifications. More...

#include <OpenMS/VISUAL/SpectraSelectionTabs.h>

Inheritance diagram for SpectraSelectionTabs:
[legend]
Collaboration diagram for SpectraSelectionTabs:
[legend]

Public Types

enum  TAB_INDEX { SPECTRA_IDX = 0, IDENT_IDX = 1, AUTO_IDX }
 

Public Member Functions

 SpectraSelectionTabs (QWidget *parent, TOPPViewBase *tv)
 Default constructor. More...
 
void update ()
 update items in the two tabs according to the currently selected layer More...
 
void currentTabChanged (int tab_index)
 invoked when user changes the active tab to tab_index More...
 
void showSpectrumAs1D (int index)
 forwards to the TOPPView*Behaviour classes, to show a certain spectrum in 1D More...
 
void showSpectrumAs1D (std::vector< int > indices)
 forwards to the TOPPView*Behaviour classes, to show a certain set of chromatograms in 1D More...
 
void tabBarDoubleClicked (int tab_index)
 
void show (TAB_INDEX which)
 enable and show the which tab More...
 
SpectraIdentificationViewWidgetgetSpectraIdentificationViewWidget ()
 

Private Attributes

Spectrum selection widgets
SpectraViewWidgetspectra_view_widget_
 
SpectraIdentificationViewWidgetid_view_widget_
 
TOPPViewSpectraViewBehaviorspectraview_behavior_
 TOPPView behavior for the spectra view. More...
 
TOPPViewIdentificationViewBehavioridview_behaviour_
 TOPPView behavior for the identification view. More...
 
TOPPViewBasetv_
 pointer to base class to access some members (going signal/slot would be cleaner) More...
 

Detailed Description

A tabbed view, to browse lists of spectra or identifications.

Member Enumeration Documentation

◆ TAB_INDEX

enum TAB_INDEX
Enumerator
SPECTRA_IDX 

first tab

IDENT_IDX 

second tab

AUTO_IDX 

automatically decide which tab to show (i.e. prefer IDENT_IDX if it has data)

Constructor & Destructor Documentation

◆ SpectraSelectionTabs()

SpectraSelectionTabs ( QWidget parent,
TOPPViewBase tv 
)

Default constructor.

Member Function Documentation

◆ currentTabChanged()

void currentTabChanged ( int  tab_index)

invoked when user changes the active tab to tab_index

◆ getSpectraIdentificationViewWidget()

SpectraIdentificationViewWidget* getSpectraIdentificationViewWidget ( )

◆ show()

void show ( TAB_INDEX  which)

enable and show the which tab

Referenced by TOPPViewBase::annotateWithAMS(), and TOPPViewBase::annotateWithID().

◆ showSpectrumAs1D() [1/2]

void showSpectrumAs1D ( int  index)

forwards to the TOPPView*Behaviour classes, to show a certain spectrum in 1D

◆ showSpectrumAs1D() [2/2]

void showSpectrumAs1D ( std::vector< int indices)

forwards to the TOPPView*Behaviour classes, to show a certain set of chromatograms in 1D

◆ tabBarDoubleClicked()

void tabBarDoubleClicked ( int  tab_index)

double-click on disabled identification view –> enables it and creates an empty identification structure

◆ update()

void update ( )

update items in the two tabs according to the currently selected layer

Referenced by TOPPViewBase::updateViewBar().

Member Data Documentation

◆ id_view_widget_

SpectraIdentificationViewWidget* id_view_widget_
private

◆ idview_behaviour_

TOPPViewIdentificationViewBehavior* idview_behaviour_
private

TOPPView behavior for the identification view.

◆ spectra_view_widget_

SpectraViewWidget* spectra_view_widget_
private

◆ spectraview_behavior_

TOPPViewSpectraViewBehavior* spectraview_behavior_
private

TOPPView behavior for the spectra view.

◆ tv_

TOPPViewBase* tv_
private

pointer to base class to access some members (going signal/slot would be cleaner)