OpenMS  2.7.0
Public Member Functions | List of all members
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 LayerData *layer)=0
 
virtual void updateEntries (LayerData *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 LayerData 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 ( LayerData layer)
pure virtual

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

Implemented in SpectraIDViewTab, SpectraTreeTab, and DIATreeTab.