OpenMS  2.6.0
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
SpectraViewWidget Class Reference

Hierarchical visualization and selection of spectra. More...

#include <OpenMS/VISUAL/SpectraViewWidget.h>

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

Signals

void spectrumSelected (int)
 
void spectrumSelected (std::vector< int > indices)
 
void spectrumDoubleClicked (int)
 
void spectrumDoubleClicked (std::vector< int > indices)
 
void showSpectrumAs1D (int)
 
void showSpectrumAs1D (std::vector< int > indices)
 
void showSpectrumMetaData (int)
 

Public Member Functions

 SpectraViewWidget (QWidget *parent=nullptr)
 Constructor. More...
 
 ~SpectraViewWidget () override
 Destructor. More...
 
QTreeWidgetgetTreeWidget ()
 
QComboBox * getComboBox ()
 
void updateEntries (const LayerData &cl)
 

Private Slots

void spectrumSearchText_ ()
 searches for rows containing a search text (from spectra_search_box_); called when text search box is used More...
 
void spectrumBrowserHeaderContextMenu_ (const QPoint &)
 
void spectrumSelectionChange_ (QTreeWidgetItem *, QTreeWidgetItem *)
 
void searchAndShow_ ()
 searches using text box and plots the spectrum More...
 
void spectrumDoubleClicked_ (QTreeWidgetItem *)
 called upon double click; emits spectrumDoubleClicked() after some checking (opens a new Tab) More...
 
void spectrumContextMenu_ (const QPoint &)
 

Private Attributes

QLineEditspectra_search_box_
 
QComboBox * spectra_combo_box_
 
QTreeWidgetspectra_treewidget_
 
std::map< size_t, std::map< Precursor, std::vector< Size >, Precursor::MZLess > > map_precursor_to_chrom_idx_cache_
 cache to store mapping of chromatogram precursors to chromatogram indices More...
 

Detailed Description

Hierarchical visualization and selection of spectra.

Constructor & Destructor Documentation

◆ SpectraViewWidget()

SpectraViewWidget ( QWidget parent = nullptr)

Constructor.

◆ ~SpectraViewWidget()

~SpectraViewWidget ( )
override

Destructor.

Member Function Documentation

◆ getComboBox()

QComboBox* getComboBox ( )

◆ getTreeWidget()

QTreeWidget* getTreeWidget ( )

◆ searchAndShow_

void searchAndShow_ ( )
privateslot

searches using text box and plots the spectrum

◆ showSpectrumAs1D [1/2]

void showSpectrumAs1D ( int  )
signal

◆ showSpectrumAs1D [2/2]

void showSpectrumAs1D ( std::vector< int indices)
signal

◆ showSpectrumMetaData

void showSpectrumMetaData ( int  )
signal

◆ spectrumBrowserHeaderContextMenu_

void spectrumBrowserHeaderContextMenu_ ( const QPoint &  )
privateslot

◆ spectrumContextMenu_

void spectrumContextMenu_ ( const QPoint &  )
privateslot

◆ spectrumDoubleClicked [1/2]

void spectrumDoubleClicked ( int  )
signal

◆ spectrumDoubleClicked [2/2]

void spectrumDoubleClicked ( std::vector< int indices)
signal

◆ spectrumDoubleClicked_

void spectrumDoubleClicked_ ( QTreeWidgetItem *  )
privateslot

called upon double click; emits spectrumDoubleClicked() after some checking (opens a new Tab)

◆ spectrumSearchText_

void spectrumSearchText_ ( )
privateslot

searches for rows containing a search text (from spectra_search_box_); called when text search box is used

◆ spectrumSelected [1/2]

void spectrumSelected ( int  )
signal

◆ spectrumSelected [2/2]

void spectrumSelected ( std::vector< int indices)
signal

◆ spectrumSelectionChange_

void spectrumSelectionChange_ ( QTreeWidgetItem *  ,
QTreeWidgetItem *   
)
privateslot

◆ updateEntries()

void updateEntries ( const LayerData cl)

Member Data Documentation

◆ map_precursor_to_chrom_idx_cache_

std::map<size_t, std::map<Precursor, std::vector<Size>, Precursor::MZLess> > map_precursor_to_chrom_idx_cache_
private

cache to store mapping of chromatogram precursors to chromatogram indices

◆ spectra_combo_box_

QComboBox* spectra_combo_box_
private

◆ spectra_search_box_

QLineEdit* spectra_search_box_
private

◆ spectra_treewidget_

QTreeWidget* spectra_treewidget_
private