![]() |
KDDockWidgets API Documentation 2.0
|
The interface that TabBar views should implement. More...
#include <TabBarViewInterface.h>


Public Member Functions | |
| TabBarViewInterface (TabBar *) | |
| virtual | ~TabBarViewInterface () |
| virtual void | changeTabIcon (int index, const Icon &icon)=0 |
| virtual void | insertDockWidget (int index, DockWidget *dw, const Icon &icon, const QString &title)=0 |
| virtual void | moveTabTo (int from, int to)=0 |
| virtual Rect | rectForTab (int index) const =0 |
| virtual void | removeDockWidget (DockWidget *dw)=0 |
| virtual void | renameTab (int index, const QString &)=0 |
| virtual void | setCurrentIndex (int index)=0 |
| virtual void | setTabsAreMovable (bool) |
| Implement if your frontend will support reordering tabs with mouse Currently only the QtWidgets frontend supports it. | |
| virtual int | tabAt (Point localPt) const =0 |
| virtual QString | text (int index) const =0 |
| Returns the tab text for the specified index This is only used by tests, to make sure your tab's text is correct. | |
Protected Member Functions | |
| TabBarViewInterface (const TabBarViewInterface &)=delete | |
| TabBarViewInterface & | operator= (const TabBarViewInterface &)=delete |
Protected Attributes | |
| TabBar *const | m_tabBar |
The interface that TabBar views should implement.
Definition at line 30 of file TabBarViewInterface.h.
|
explicit |
Definition at line 18 of file TabBarViewInterface.cpp.
|
virtualdefault |
|
protecteddelete |
|
pure virtual |
Implemented in KDDockWidgets::flutter::TabBar.
|
pure virtual |
Implemented in KDDockWidgets::flutter::TabBar.
|
pure virtual |
|
protecteddelete |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
virtual |
Implement if your frontend will support reordering tabs with mouse Currently only the QtWidgets frontend supports it.
Reimplemented in KDDockWidgets::QtWidgets::TabBar.
Definition at line 25 of file TabBarViewInterface.cpp.
|
pure virtual |
|
pure virtual |
Returns the tab text for the specified index This is only used by tests, to make sure your tab's text is correct.
Implemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper, KDDockWidgets::flutter::TabBar, KDDockWidgets::QtQuick::TabBar, and KDDockWidgets::QtWidgets::TabBar.
|
protected |
Definition at line 57 of file TabBarViewInterface.h.
Referenced by KDDockWidgets::QtQuick::TabBar::event(), KDDockWidgets::QtQuick::TabBar::init(), KDDockWidgets::QtWidgets::TabBar::init(), KDDockWidgets::QtWidgets::TabBar::insertDockWidget(), KDDockWidgets::QtWidgets::TabBar::removeDockWidget(), KDDockWidgets::QtQuick::TabBar::stackView(), and KDDockWidgets::QtQuick::TabBar::tabBarAutoHide().
KDDockWidgets