OpenMS
|
A tabbed view, to browse lists of spectra or identifications. More...
#include <OpenMS/VISUAL/DataSelectionTabs.h>
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) |
SpectraIDViewTab * | getSpectraIDViewTab () |
Private Attributes | |
Spectrum selection widgets | |
SpectraTreeTab * | spectra_view_widget_ |
SpectraIDViewTab * | id_view_widget_ |
DIATreeTab * | dia_widget_ |
std::vector< DataTabBase * > | tab_ptrs_ |
holds pointers to all of the above tabs, for iteration purposes More... | |
TVSpectraViewController * | spectraview_controller_ |
TOPPView behavior for the spectra view. More... | |
TVIdentificationViewController * | idview_controller_ |
TOPPView behavior for the identification view. More... | |
TVDIATreeTabController * | diatab_controller_ |
TOPPView behavior for the DIA view. More... | |
TOPPViewBase * | tv_ |
pointer to base class to access some members (going signal/slot would be cleaner) More... | |
A tabbed view, to browse lists of spectra or identifications.
enum TAB_INDEX |
DataSelectionTabs | ( | QWidget * | parent, |
TOPPViewBase * | tv | ||
) |
Default constructor.
~DataSelectionTabs | ( | ) |
Destructor.
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().
void currentTabChanged | ( | int | tab_index | ) |
invoked when user changes the active tab to tab_index
Referenced by TOPPViewBase::annotateWithID(), and TOPPViewBase::annotateWithOSW().
SpectraIDViewTab* getSpectraIDViewTab | ( | ) |
void showChromatogramsAsNew1D | ( | const std::vector< int > & | indices | ) |
forwards to the TOPPView*Behaviour classes, to show a certain set of chromatograms in 1D
void showSpectrumAsNew1D | ( | int | index | ) |
forwards to the TOPPView*Behaviour classes, to show a certain spectrum in 1D
Referenced by TOPPViewBase::showPlotWidgetInWindow().
void tabBarDoubleClicked | ( | int | tab_index | ) |
double-click on disabled identification view --> enables it and creates an empty identification structure
|
private |
|
private |
TOPPView behavior for the DIA view.
|
private |
|
private |
TOPPView behavior for the identification view.
|
private |
|
private |
TOPPView behavior for the spectra view.
|
private |
holds pointers to all of the above tabs, for iteration purposes
|
private |
pointer to base class to access some members (going signal/slot would be cleaner)