OpenMS
|
Hierarchical visualization and selection of spectra. More...
#include <OpenMS/VISUAL/DIATreeTab.h>
Signals | |
void | entityClicked (const OSWIndexTrace &trace) |
emitted when a protein, peptide, feature or transition was selected More... | |
void | entityDoubleClicked (const OSWIndexTrace &trace) |
emitted when a protein, peptide, feature or transition was double-clicked More... | |
Public Member Functions | |
DIATreeTab (QWidget *parent=nullptr) | |
Constructor. More... | |
~DIATreeTab () override=default | |
Destructor. More... | |
bool | hasData (const LayerDataBase *layer) override |
void | updateEntries (LayerDataBase *cl) override |
void | clear () override |
remove all visible data More... | |
Private Slots | |
void | populateSearchBox_ () |
fill the search-combo-box with current column header names More... | |
void | spectrumSearchText_ () |
searches for rows containing a search text (from spectra_search_box_); called when text search box is used More... | |
void | rowSelectionChange_ (QTreeWidgetItem *, QTreeWidgetItem *) |
emits entityClicked() for all subitems More... | |
void | rowClicked_ (QTreeWidgetItem *, int col) |
emits entityClicked() for all subitems More... | |
void | rowDoubleClicked_ (QTreeWidgetItem *, int col) |
emits entityDoubleClicked() for all subitems More... | |
void | searchAndShow_ () |
searches using text box and plots the spectrum More... | |
Private Member Functions | |
OSWIndexTrace | prepareSignal_ (QTreeWidgetItem *item) |
convert a tree item to a pointer into an OSWData structure More... | |
Private Attributes | |
QLineEdit * | spectra_search_box_ = nullptr |
QComboBox * | spectra_combo_box_ = nullptr |
TreeView * | dia_treewidget_ = nullptr |
OSWData * | current_data_ = nullptr |
Hierarchical visualization and selection of spectra.
DIATreeTab | ( | QWidget * | parent = nullptr | ) |
Constructor.
|
overridedefault |
Destructor.
|
overridevirtual |
remove all visible data
Implements DataTabBase.
|
signal |
emitted when a protein, peptide, feature or transition was selected
|
signal |
emitted when a protein, peptide, feature or transition was double-clicked
|
overridevirtual |
given a layer, determine if the tab could use it to show data (useful to decide if the tab should be enabled/disabled) If a nullptr is given, it HAS to return false!
Implements DataTabBase.
|
privateslot |
fill the search-combo-box with current column header names
|
private |
|
privateslot |
emits entityClicked() for all subitems
|
privateslot |
emits entityDoubleClicked() for all subitems
|
privateslot |
emits entityClicked() for all subitems
|
privateslot |
searches using text box and plots the spectrum
|
privateslot |
searches for rows containing a search text (from spectra_search_box_); called when text search box is used
|
overridevirtual |
refresh the table using data from cl
cl | Layer with OSW data; cannot be const, since we might read missing protein data from source on demand |
Implements DataTabBase.
|
private |
points to the data which is currently shown Useful to avoid useless repaintings, which would loose the open/close state of internal tree nodes and selected items
|
private |
|
private |
|
private |