Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
EnhancedTabBar Class Reference

Convenience tab bar implementation. More...

#include <OpenMS/VISUAL/EnhancedTabBar.h>

Inheritance diagram for EnhancedTabBar:
QTabBar

Public Slots

void removeId (int id)
 Remove the tab with identifier id. More...
 

Signals

void currentIdChanged (int id)
 Signal that indicates that the current tab changed. More...
 
void aboutToCloseId (int id)
 Signal that indicates that the tab with identifier id is about to be removed (double click or context menu) More...
 
void dropOnTab (const QMimeData *data, QWidget *source, int id)
 Signal that is emitted, when a drag-and-drop action ends on a tab. More...
 
void dropOnWidget (const QMimeData *data, QWidget *source)
 Signal that is emitted, when a drag-and-drop action ends on the unused space on the right side of the tabs. More...
 

Public Member Functions

 EnhancedTabBar (QWidget *parent=0)
 Constructor. More...
 
 ~EnhancedTabBar ()
 Destructor. More...
 
int addTab (const String &text, int id)
 Adds a new tab with the name text and the identifier id. More...
 
void setCurrentId (int id)
 Selects the tab with identifier id. More...
 

Protected Slots

void currentChanged_ (int id)
 Slot that translates the currentChanged(int) signal to currentIdChanged(int) More...
 

Protected Member Functions

int tabAt_ (const QPoint &pos)
 Returns the QTabBar index of the tab at position pos. If there is no tab at that position -1 is returned. More...
 
Reimplemented Qt events
void mouseDoubleClickEvent (QMouseEvent *e)
 
void contextMenuEvent (QContextMenuEvent *e)
 
void dragEnterEvent (QDragEnterEvent *e)
 
void dropEvent (QDropEvent *e)
 

Detailed Description

Convenience tab bar implementation.

This tab bar differs in several ways form the QTabBar:

Constructor & Destructor Documentation

◆ EnhancedTabBar()

EnhancedTabBar ( QWidget parent = 0)

Constructor.

◆ ~EnhancedTabBar()

Destructor.

Member Function Documentation

◆ aboutToCloseId

void aboutToCloseId ( int  id)
signal

Signal that indicates that the tab with identifier id is about to be removed (double click or context menu)

◆ addTab()

int addTab ( const String text,
int  id 
)

Adds a new tab with the name text and the identifier id.

Referenced by TOPPViewBase::showSpectrumWidgetInWindow(), and TOPPViewBase::TOPPViewBase().

◆ contextMenuEvent()

void contextMenuEvent ( QContextMenuEvent *  e)
protected

◆ currentChanged_

void currentChanged_ ( int  id)
protectedslot

Slot that translates the currentChanged(int) signal to currentIdChanged(int)

◆ currentIdChanged

void currentIdChanged ( int  id)
signal

Signal that indicates that the current tab changed.

◆ dragEnterEvent()

void dragEnterEvent ( QDragEnterEvent *  e)
protected

◆ dropEvent()

void dropEvent ( QDropEvent *  e)
protected

◆ dropOnTab

void dropOnTab ( const QMimeData *  data,
QWidget source,
int  id 
)
signal

Signal that is emitted, when a drag-and-drop action ends on a tab.

◆ dropOnWidget

void dropOnWidget ( const QMimeData *  data,
QWidget source 
)
signal

Signal that is emitted, when a drag-and-drop action ends on the unused space on the right side of the tabs.

◆ mouseDoubleClickEvent()

void mouseDoubleClickEvent ( QMouseEvent *  e)
protected

◆ removeId

void removeId ( int  id)
slot

Remove the tab with identifier id.

Referenced by TOPPViewBase::TOPPViewBase().

◆ setCurrentId()

void setCurrentId ( int  id)

Selects the tab with identifier id.

Referenced by TOPPViewBase::showSpectrumWidgetInWindow(), and TOPPViewBase::updateTabBar().

◆ tabAt_()

int tabAt_ ( const QPoint &  pos)
protected

Returns the QTabBar index of the tab at position pos. If there is no tab at that position -1 is returned.


OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:08 using doxygen 1.8.13