OpenMS
DataTabBase Class Referenceabstract

all tabs need to implement this interface More...

#include <OpenMS/VISUAL/DataSelectionTabs.h>

Inheritance diagram for DataTabBase:
[legend]

Public Member Functions

virtual bool hasData (const LayerDataBase *layer)=0
 
virtual void updateEntries (LayerDataBase *layer)=0
 
virtual void clear ()=0
 explicitly show no data at all More...
 

Detailed Description

all tabs need to implement this interface

Member Function Documentation

◆ clear()

virtual void clear ( )
pure virtual

explicitly show no data at all

Implemented in SpectraTreeTab, SpectraIDViewTab, and DIATreeTab.

◆ hasData()

virtual bool hasData ( const LayerDataBase layer)
pure virtual

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!

Implemented in SpectraTreeTab, SpectraIDViewTab, and DIATreeTab.

◆ updateEntries()

virtual void updateEntries ( LayerDataBase layer)
pure virtual

populate the tab using date from layer Should handle nullptr well (by calling clear())

Implemented in SpectraIDViewTab, SpectraTreeTab, and DIATreeTab.