OpenMS
DataSelectionTabs Class Reference

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

#include <OpenMS/VISUAL/DataSelectionTabs.h>

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

Public Types

enum  TAB_INDEX { SPECTRA_IDX = 0 , IDENT_IDX = 1 , DIAOSW_IDX = 2 , SIZE_OF_TAB_INDEX }
 

Public Member Functions

 DataSelectionTabs (QWidget *parent, TOPPViewBase *tv)
 Default constructor. More...
 
 ~DataSelectionTabs ()
 Destructor. More...
 
void callUpdateEntries ()
 
void currentTabChanged (int tab_index)
 invoked when user changes the active tab to tab_index More...
 
void showSpectrumAsNew1D (int index)
 forwards to the TOPPView*Behaviour classes, to show a certain spectrum in 1D More...
 
void showChromatogramsAsNew1D (const 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)
 
SpectraIDViewTabgetSpectraIDViewTab ()
 

Private Attributes

Spectrum selection widgets
SpectraTreeTabspectra_view_widget_
 
SpectraIDViewTabid_view_widget_
 
DIATreeTabdia_widget_
 
std::vector< DataTabBase * > tab_ptrs_
 holds pointers to all of the above tabs, for iteration purposes More...
 
TVSpectraViewControllerspectraview_controller_
 TOPPView behavior for the spectra view. More...
 
TVIdentificationViewControlleridview_controller_
 TOPPView behavior for the identification view. More...
 
TVDIATreeTabControllerdiatab_controller_
 TOPPView behavior for the DIA 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

DIAOSW_IDX 

third tab

SIZE_OF_TAB_INDEX 

Constructor & Destructor Documentation

◆ DataSelectionTabs()

DataSelectionTabs ( QWidget parent,
TOPPViewBase tv 
)

Default constructor.

◆ ~DataSelectionTabs()

Destructor.

Member Function Documentation

◆ callUpdateEntries()

void callUpdateEntries ( )

Update items in the tabs according to the currently selected layer. Tabs which have data to show are automatically enabled. Others are disabled. If the currently visible tab would have to data to show, we pick the highest (rightmost) tab which has data and show that instead

Referenced by TOPPViewBase::updateViewBar().

◆ currentTabChanged()

void currentTabChanged ( int  tab_index)

invoked when user changes the active tab to tab_index

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

◆ getSpectraIDViewTab()

SpectraIDViewTab* getSpectraIDViewTab ( )

◆ showChromatogramsAsNew1D()

void showChromatogramsAsNew1D ( const std::vector< int > &  indices)

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

◆ showSpectrumAsNew1D()

void showSpectrumAsNew1D ( int  index)

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

Referenced by TOPPViewBase::showPlotWidgetInWindow().

◆ tabBarDoubleClicked()

void tabBarDoubleClicked ( int  tab_index)

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

Member Data Documentation

◆ dia_widget_

DIATreeTab* dia_widget_
private

◆ diatab_controller_

TVDIATreeTabController* diatab_controller_
private

TOPPView behavior for the DIA view.

◆ id_view_widget_

SpectraIDViewTab* id_view_widget_
private

◆ idview_controller_

TVIdentificationViewController* idview_controller_
private

TOPPView behavior for the identification view.

◆ spectra_view_widget_

SpectraTreeTab* spectra_view_widget_
private

◆ spectraview_controller_

TVSpectraViewController* spectraview_controller_
private

TOPPView behavior for the spectra view.

◆ tab_ptrs_

std::vector< DataTabBase* > tab_ptrs_
private

holds pointers to all of the above tabs, for iteration purposes

◆ tv_

TOPPViewBase* tv_
private

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