KDDockWidgets API Documentation 2.1
|
#include <TabBar_c.h>
Public Types | |
typedef bool(* | Callback_dragCanStart) (void *, KDDockWidgets::Point *pressPos, KDDockWidgets::Point *pos) |
typedef bool(* | Callback_isMDI) (void *) |
typedef bool(* | Callback_isWindow) (void *) |
typedef void(* | Callback_setParentView_impl) (void *, KDDockWidgets::Core::View *parent) |
typedef KDDockWidgets::Core::DockWidget *(* | Callback_singleDockWidget) (void *) |
Public Member Functions | |
TabBar_wrapper (KDDockWidgets::Core::Stack *tabWidget=nullptr) | |
~TabBar_wrapper () | |
KDDockWidgets::Core::DockWidget * | currentDockWidget () const |
int | currentIndex () const |
KDDockWidgets::Core::DockWidget * | dockWidgetAt (int index) const |
KDDockWidgets::Core::DockWidget * | dockWidgetAt (KDDockWidgets::Point localPos) const |
virtual bool | dragCanStart (KDDockWidgets::Point pressPos, KDDockWidgets::Point pos) const |
virtual bool | dragCanStart_nocallback (KDDockWidgets::Point pressPos, KDDockWidgets::Point pos) const |
KDDockWidgets::Core::Group * | group () const |
bool | hasSingleDockWidget () const |
int | indexOfDockWidget (const KDDockWidgets::Core::DockWidget *dw) const |
virtual bool | isMDI () const |
virtual bool | isMDI_nocallback () const |
bool | isMovingTab () const |
virtual bool | isWindow () const |
virtual bool | isWindow_nocallback () const |
void | moveTabTo (int from, int to) |
int | numDockWidgets () const |
void | onMouseDoubleClick (KDDockWidgets::Point localPos) |
void | onMousePress (KDDockWidgets::Point localPos) |
KDDockWidgets::Rect | rectForTab (int index) const |
void | removeDockWidget (KDDockWidgets::Core::DockWidget *dw) |
void | renameTab (int index, const QString &arg__2) |
void | setCurrentDockWidget (KDDockWidgets::Core::DockWidget *dw) |
void | setCurrentIndex (int index) |
virtual void | setParentView_impl (KDDockWidgets::Core::View *parent) |
virtual void | setParentView_impl_nocallback (KDDockWidgets::Core::View *parent) |
KDDockWidgets::Core::Stack * | stack () const |
bool | tabsAreMovable () const |
QString | text (int index) const |
Public Member Functions inherited from KDDockWidgets::Core::TabBar | |
TabBar (Stack *tabWidget=nullptr) | |
virtual | ~TabBar () override |
void | changeTabIcon (int index, const Icon &) |
change the tab's icon | |
DockWidget * | currentDockWidget () const |
Returns the current dock widget. | |
int | currentIndex () const |
Returns the index of the current tab. | |
DockWidget * | dockWidgetAt (int index) const |
returns the dock widgets at tab number index | |
DockWidget * | dockWidgetAt (Point localPos) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
Private * | dptr () const |
bool | dragCanStart (Point pressPos, Point pos) const override |
Group * | group () const |
bool | hasSingleDockWidget () const |
returns whether there's only 1 tab | |
int | indexOfDockWidget (const Core::DockWidget *dw) const |
Returns the tab index of the specified dock widget. | |
void | insertDockWidget (int index, Core::DockWidget *dw, const Icon &icon, const QString &title) |
bool | isMDI () const override |
Reimplemented for internal purposes. . | |
bool | isMovingTab () const |
Returns whether we're inside Core::TabBar::moveTab() | |
bool | isWindow () const override |
std::unique_ptr< WindowBeingDragged > | makeWindow () override |
void | moveTabTo (int from, int to) |
int | numDockWidgets () const |
void | onMouseDoubleClick (Point localPos) |
void | onMousePress (Point localPos) |
Rect | rectForTab (int index) const |
void | removeDockWidget (Core::DockWidget *dw) |
void | renameTab (int index, const QString &) |
rename's the tab's text | |
void | setCurrentDockWidget (DockWidget *dw) |
void | setCurrentIndex (int index) |
DockWidget * | singleDockWidget () const override final |
Stack * | stack () const |
bool | tabsAreMovable () const |
QString | text (int index) const |
Public Member Functions inherited from KDDockWidgets::Core::Controller | |
Controller (ViewType type, View *) | |
virtual | ~Controller () |
bool | close () |
void | destroyLater () |
Controller::Private * | dptr () const |
Rect | geometry () const |
int | height () const |
bool | inDtor () const |
bool | is (ViewType) const |
Returns whether this controller is of the specified type. | |
bool | isFixedHeight () const |
bool | isFixedWidth () const |
bool | isVisible () const |
Point | mapToGlobal (Point) const |
Point | pos () const |
Rect | rect () const |
void | setParentView (View *parent) |
void | setVisible (bool) |
void | show () const |
Size | size () const |
ViewType | type () const |
Returns the type of this controller. | |
View * | view () const |
Returns the view associated with this controller, if any. | |
int | width () const |
std::shared_ptr< View > | window () const |
int | x () const |
int | y () const |
Public Attributes | |
Callback_dragCanStart | m_dragCanStartCallback = nullptr |
Callback_isMDI | m_isMDICallback = nullptr |
Callback_isWindow | m_isWindowCallback = nullptr |
Callback_setParentView_impl | m_setParentView_implCallback = nullptr |
Callback_singleDockWidget | m_singleDockWidgetCallback = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from KDDockWidgets::Core::Controller | |
bool | m_inDtor = false |
Definition at line 22 of file KDDWBindingsCore/TabBar_c.h.
typedef bool(* KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::Callback_dragCanStart) (void *, KDDockWidgets::Point *pressPos, KDDockWidgets::Point *pos) |
Definition at line 55 of file KDDWBindingsCore/TabBar_c.h.
typedef bool(* KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::Callback_isMDI) (void *) |
Definition at line 57 of file KDDWBindingsCore/TabBar_c.h.
typedef bool(* KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::Callback_isWindow) (void *) |
Definition at line 59 of file KDDWBindingsCore/TabBar_c.h.
typedef void(* KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::Callback_setParentView_impl) (void *, KDDockWidgets::Core::View *parent) |
Definition at line 61 of file KDDWBindingsCore/TabBar_c.h.
typedef KDDockWidgets::Core::DockWidget *(* KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::Callback_singleDockWidget) (void *) |
Definition at line 63 of file KDDWBindingsCore/TabBar_c.h.
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::~TabBar_wrapper | ( | ) |
Definition at line 169 of file KDDWBindingsCore/TabBar_c.cpp.
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::TabBar_wrapper | ( | KDDockWidgets::Core::Stack * | tabWidget = nullptr | ) |
Definition at line 33 of file KDDWBindingsCore/TabBar_c.cpp.
KDDockWidgets::Core::DockWidget * KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::currentDockWidget | ( | ) | const |
Definition at line 37 of file KDDWBindingsCore/TabBar_c.cpp.
int KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::currentIndex | ( | ) | const |
Definition at line 41 of file KDDWBindingsCore/TabBar_c.cpp.
KDDockWidgets::Core::DockWidget * KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::dockWidgetAt | ( | int | index | ) | const |
Definition at line 49 of file KDDWBindingsCore/TabBar_c.cpp.
KDDockWidgets::Core::DockWidget * KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::dockWidgetAt | ( | KDDockWidgets::Point | localPos | ) | const |
Definition at line 45 of file KDDWBindingsCore/TabBar_c.cpp.
|
virtual |
Definition at line 53 of file KDDWBindingsCore/TabBar_c.cpp.
References m_dragCanStartCallback, and KDDockWidgets::Core::Controller::pos().
|
virtual |
Definition at line 62 of file KDDWBindingsCore/TabBar_c.cpp.
References KDDockWidgets::Core::Controller::pos().
Referenced by c_KDDockWidgets__Core__TabBar__dragCanStart_Point_Point().
KDDockWidgets::Core::Group * KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::group | ( | ) | const |
Definition at line 66 of file KDDWBindingsCore/TabBar_c.cpp.
bool KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::hasSingleDockWidget | ( | ) | const |
Definition at line 70 of file KDDWBindingsCore/TabBar_c.cpp.
int KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::indexOfDockWidget | ( | const KDDockWidgets::Core::DockWidget * | dw | ) | const |
Definition at line 74 of file KDDWBindingsCore/TabBar_c.cpp.
|
virtual |
Definition at line 78 of file KDDWBindingsCore/TabBar_c.cpp.
References m_isMDICallback.
|
virtual |
Definition at line 87 of file KDDWBindingsCore/TabBar_c.cpp.
Referenced by c_KDDockWidgets__Core__TabBar__isMDI().
bool KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::isMovingTab | ( | ) | const |
Definition at line 91 of file KDDWBindingsCore/TabBar_c.cpp.
|
virtual |
Definition at line 95 of file KDDWBindingsCore/TabBar_c.cpp.
References m_isWindowCallback.
|
virtual |
Definition at line 104 of file KDDWBindingsCore/TabBar_c.cpp.
Referenced by c_KDDockWidgets__Core__TabBar__isWindow().
void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::moveTabTo | ( | int | from, |
int | to | ||
) |
Definition at line 108 of file KDDWBindingsCore/TabBar_c.cpp.
References KDDockWidgets::Core::TabBar::moveTabTo().
int KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::numDockWidgets | ( | ) | const |
Definition at line 112 of file KDDWBindingsCore/TabBar_c.cpp.
void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::onMouseDoubleClick | ( | KDDockWidgets::Point | localPos | ) |
Definition at line 116 of file KDDWBindingsCore/TabBar_c.cpp.
References KDDockWidgets::Core::TabBar::onMouseDoubleClick().
void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::onMousePress | ( | KDDockWidgets::Point | localPos | ) |
Definition at line 120 of file KDDWBindingsCore/TabBar_c.cpp.
References KDDockWidgets::Core::TabBar::onMousePress().
KDDockWidgets::Rect KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::rectForTab | ( | int | index | ) | const |
Definition at line 124 of file KDDWBindingsCore/TabBar_c.cpp.
void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::removeDockWidget | ( | KDDockWidgets::Core::DockWidget * | dw | ) |
Definition at line 128 of file KDDWBindingsCore/TabBar_c.cpp.
References KDDockWidgets::Core::TabBar::removeDockWidget().
void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::renameTab | ( | int | index, |
const QString & | arg__2 | ||
) |
Definition at line 132 of file KDDWBindingsCore/TabBar_c.cpp.
References KDDockWidgets::Core::TabBar::renameTab().
void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::setCurrentDockWidget | ( | KDDockWidgets::Core::DockWidget * | dw | ) |
Definition at line 136 of file KDDWBindingsCore/TabBar_c.cpp.
References KDDockWidgets::Core::TabBar::setCurrentDockWidget().
void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::setCurrentIndex | ( | int | index | ) |
Definition at line 140 of file KDDWBindingsCore/TabBar_c.cpp.
References KDDockWidgets::Core::TabBar::setCurrentIndex().
|
virtual |
Reimplemented from KDDockWidgets::Core::Controller.
Definition at line 144 of file KDDWBindingsCore/TabBar_c.cpp.
References m_setParentView_implCallback, and KDDockWidgets::Core::Controller::setParentView_impl().
|
virtual |
Definition at line 153 of file KDDWBindingsCore/TabBar_c.cpp.
References KDDockWidgets::Core::Controller::setParentView_impl().
Referenced by c_KDDockWidgets__Core__TabBar__setParentView_impl_View().
KDDockWidgets::Core::Stack * KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::stack | ( | ) | const |
Definition at line 157 of file KDDWBindingsCore/TabBar_c.cpp.
bool KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::tabsAreMovable | ( | ) | const |
Definition at line 161 of file KDDWBindingsCore/TabBar_c.cpp.
QString KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::text | ( | int | index | ) | const |
Definition at line 165 of file KDDWBindingsCore/TabBar_c.cpp.
Callback_dragCanStart KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::m_dragCanStartCallback = nullptr |
Definition at line 56 of file KDDWBindingsCore/TabBar_c.h.
Referenced by dragCanStart().
Callback_isMDI KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::m_isMDICallback = nullptr |
Definition at line 58 of file KDDWBindingsCore/TabBar_c.h.
Referenced by isMDI().
Callback_isWindow KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::m_isWindowCallback = nullptr |
Definition at line 60 of file KDDWBindingsCore/TabBar_c.h.
Referenced by isWindow().
Callback_setParentView_impl KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::m_setParentView_implCallback = nullptr |
Definition at line 62 of file KDDWBindingsCore/TabBar_c.h.
Referenced by setParentView_impl().
Callback_singleDockWidget KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::m_singleDockWidgetCallback = nullptr |
Definition at line 64 of file KDDWBindingsCore/TabBar_c.h.