|  | OpenMS
    2.6.0
    | 
Convenience tab bar implementation. More...
#include <OpenMS/VISUAL/EnhancedTabBar.h>
| 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 idis 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=nullptr) | |
| Constructor.  More... | |
| ~EnhancedTabBar () override | |
| Destructor.  More... | |
| int | addTab (const String &text, int id) | 
| Adds a new tab with the name textand the identifierid.  More... | |
| void | setCurrentId (int id) | 
| Selects the tab with identifier id.  More... | |
| Reimplemented Qt events | |
| void | mouseDoubleClickEvent (QMouseEvent *e) override | 
| void | contextMenuEvent (QContextMenuEvent *e) override | 
| void | dragEnterEvent (QDragEnterEvent *e) override | 
| void | dropEvent (QDropEvent *e) override | 
| 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... | |
| void | currentChanged_ (int id) | 
| Slot that translates the currentChanged(int) signal to currentIdChanged(int)  More... | |
Convenience tab bar implementation.
This tab bar differs in several ways form the QTabBar:
| EnhancedTabBar | ( | QWidget * | parent = nullptr | ) | 
Constructor.
| 
 | override | 
Destructor.
| 
 | signal | 
Signal that indicates that the tab with identifier id is about to be removed (double click or context menu) 
Referenced by TOPPViewBase::TOPPViewBase().
Adds a new tab with the name text and the identifier id. 
Referenced by TOPPViewBase::showSpectrumWidgetInWindow(), and TOPPViewBase::TOPPViewBase().
| 
 | overrideprotected | 
| 
 | protectedslot | 
Slot that translates the currentChanged(int) signal to currentIdChanged(int)
| 
 | signal | 
Signal that indicates that the current tab changed.
Referenced by TOPPViewBase::TOPPViewBase().
| 
 | overrideprotected | 
| 
 | overrideprotected | 
Signal that is emitted, when a drag-and-drop action ends on a tab.
Referenced by TOPPViewBase::TOPPViewBase().
| 
 | signal | 
Signal that is emitted, when a drag-and-drop action ends on the unused space on the right side of the tabs.
Referenced by TOPPViewBase::TOPPViewBase().
| 
 | overrideprotected | 
| 
 | slot | 
Remove the tab with identifier id. 
Referenced by TOPPViewBase::showSpectrumWidgetInWindow(), and TOPPViewBase::TOPPViewBase().
| void setCurrentId | ( | int | id | ) | 
Selects the tab with identifier id. 
Referenced by TOPPViewBase::showSpectrumWidgetInWindow(), and TOPPViewBase::updateTabBar().
 1.8.16
 1.8.16