OpenMS
EnhancedTabBarWidgetInterface Class Reference

Widgets that are placed into an EnhancedTabBar must implement this interface. More...

#include <OpenMS/VISUAL/EnhancedTabBarWidgetInterface.h>

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

Public Member Functions

 EnhancedTabBarWidgetInterface ()
 C'tor; creates a new ID;. More...
 
virtual ~EnhancedTabBarWidgetInterface ()
 Destructor (emits SignalProvider::aboutToBeDestroyed) More...
 
void addToTabBar (EnhancedTabBar *const parent, const String &caption, const bool make_active_tab=true)
 
Int getWindowId () const
 get the EnhancedTabBar unique window id More...
 

Static Public Member Functions

static Int getFirstWindowID ()
 the first object to be created will get this ID More...
 

Private Attributes

Int window_id_ { -1 }
 
SignalProvider sp_
 emits the signal that the EnhancedTabBarWidgetInterface is about to be destroyed More...
 

Detailed Description

Widgets that are placed into an EnhancedTabBar must implement this interface.

Constructor & Destructor Documentation

◆ EnhancedTabBarWidgetInterface()

C'tor; creates a new ID;.

◆ ~EnhancedTabBarWidgetInterface()

virtual ~EnhancedTabBarWidgetInterface ( )
virtual

Member Function Documentation

◆ addToTabBar()

void addToTabBar ( EnhancedTabBar *const  parent,
const String caption,
const bool  make_active_tab = true 
)

adds itself to this tabbar and upon destruction removes itself again. Make sure the tabbar still exists when you call this function and this object is destroyed

Referenced by TOPPASBase::showAsWindow_(), and TOPPViewBase::showPlotWidgetInWindow().

◆ getFirstWindowID()

static Int getFirstWindowID ( )
static

the first object to be created will get this ID

Referenced by TOPPASBase::addTOPPASFile().

◆ getWindowId()

Member Data Documentation

◆ sp_

SignalProvider sp_
private

emits the signal that the EnhancedTabBarWidgetInterface is about to be destroyed

◆ window_id_

Int window_id_ { -1 }
private