KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper Class Reference

#include <TabBar_c.h>

Inheritance diagram for KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper:
Inheritance graph
[legend]
Collaboration diagram for KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper:
Collaboration graph
[legend]

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::DockWidgetcurrentDockWidget () const
 
int currentIndex () const
 
KDDockWidgets::Core::DockWidgetdockWidgetAt (int index) const
 
KDDockWidgets::Core::DockWidgetdockWidgetAt (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::Groupgroup () 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::Stackstack () 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
 
DockWidgetcurrentDockWidget () const
 Returns the current dock widget.
 
int currentIndex () const
 Returns the index of the current tab.
 
DockWidgetdockWidgetAt (int index) const
 returns the dock widgets at tab number index
 
DockWidgetdockWidgetAt (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
 
Groupgroup () 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)
 
DockWidgetsingleDockWidget () const override final
 
Stackstack () 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.
 
Viewview () const
 Returns the view associated with this controller, if any.
 
int width () const
 
std::shared_ptr< Viewwindow () 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
 

Detailed Description

Definition at line 22 of file KDDWBindingsCore/TabBar_c.h.

Member Typedef Documentation

◆ Callback_dragCanStart

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.

◆ Callback_isMDI

typedef bool(* KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::Callback_isMDI) (void *)

Definition at line 57 of file KDDWBindingsCore/TabBar_c.h.

◆ Callback_isWindow

typedef bool(* KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::Callback_isWindow) (void *)

Definition at line 59 of file KDDWBindingsCore/TabBar_c.h.

◆ Callback_setParentView_impl

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.

◆ Callback_singleDockWidget

typedef KDDockWidgets::Core::DockWidget *(* KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::Callback_singleDockWidget) (void *)

Definition at line 63 of file KDDWBindingsCore/TabBar_c.h.

Constructor & Destructor Documentation

◆ ~TabBar_wrapper()

KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::~TabBar_wrapper ( )

Definition at line 169 of file KDDWBindingsCore/TabBar_c.cpp.

◆ TabBar_wrapper()

KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::TabBar_wrapper ( KDDockWidgets::Core::Stack tabWidget = nullptr)

Definition at line 33 of file KDDWBindingsCore/TabBar_c.cpp.

Member Function Documentation

◆ currentDockWidget()

KDDockWidgets::Core::DockWidget * KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::currentDockWidget ( ) const

Definition at line 37 of file KDDWBindingsCore/TabBar_c.cpp.

◆ currentIndex()

int KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::currentIndex ( ) const

Definition at line 41 of file KDDWBindingsCore/TabBar_c.cpp.

◆ dockWidgetAt() [1/2]

KDDockWidgets::Core::DockWidget * KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::dockWidgetAt ( int  index) const

Definition at line 49 of file KDDWBindingsCore/TabBar_c.cpp.

◆ dockWidgetAt() [2/2]

KDDockWidgets::Core::DockWidget * KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::dockWidgetAt ( KDDockWidgets::Point  localPos) const

Definition at line 45 of file KDDWBindingsCore/TabBar_c.cpp.

◆ dragCanStart()

bool KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::dragCanStart ( KDDockWidgets::Point  pressPos,
KDDockWidgets::Point  pos 
) const
virtual

◆ dragCanStart_nocallback()

bool KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::dragCanStart_nocallback ( KDDockWidgets::Point  pressPos,
KDDockWidgets::Point  pos 
) const
virtual

◆ group()

KDDockWidgets::Core::Group * KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::group ( ) const

Definition at line 66 of file KDDWBindingsCore/TabBar_c.cpp.

◆ hasSingleDockWidget()

bool KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::hasSingleDockWidget ( ) const

Definition at line 70 of file KDDWBindingsCore/TabBar_c.cpp.

◆ indexOfDockWidget()

int KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::indexOfDockWidget ( const KDDockWidgets::Core::DockWidget dw) const

Definition at line 74 of file KDDWBindingsCore/TabBar_c.cpp.

◆ isMDI()

bool KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::isMDI ( ) const
virtual

Definition at line 78 of file KDDWBindingsCore/TabBar_c.cpp.

References m_isMDICallback.

◆ isMDI_nocallback()

bool KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::isMDI_nocallback ( ) const
virtual

Definition at line 87 of file KDDWBindingsCore/TabBar_c.cpp.

Referenced by c_KDDockWidgets__Core__TabBar__isMDI().

◆ isMovingTab()

bool KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::isMovingTab ( ) const

Definition at line 91 of file KDDWBindingsCore/TabBar_c.cpp.

◆ isWindow()

bool KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::isWindow ( ) const
virtual

Definition at line 95 of file KDDWBindingsCore/TabBar_c.cpp.

References m_isWindowCallback.

◆ isWindow_nocallback()

bool KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::isWindow_nocallback ( ) const
virtual

◆ moveTabTo()

void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::moveTabTo ( int  from,
int  to 
)

◆ numDockWidgets()

int KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::numDockWidgets ( ) const

Definition at line 112 of file KDDWBindingsCore/TabBar_c.cpp.

◆ onMouseDoubleClick()

void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::onMouseDoubleClick ( KDDockWidgets::Point  localPos)

◆ onMousePress()

void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::onMousePress ( KDDockWidgets::Point  localPos)

◆ rectForTab()

KDDockWidgets::Rect KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::rectForTab ( int  index) const

Definition at line 124 of file KDDWBindingsCore/TabBar_c.cpp.

◆ removeDockWidget()

void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::removeDockWidget ( KDDockWidgets::Core::DockWidget dw)

◆ renameTab()

void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::renameTab ( int  index,
const QString arg__2 
)

◆ setCurrentDockWidget()

void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::setCurrentDockWidget ( KDDockWidgets::Core::DockWidget dw)

◆ setCurrentIndex()

void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::setCurrentIndex ( int  index)

◆ setParentView_impl()

void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::setParentView_impl ( KDDockWidgets::Core::View parent)
virtual

◆ setParentView_impl_nocallback()

void KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::setParentView_impl_nocallback ( KDDockWidgets::Core::View parent)
virtual

◆ stack()

KDDockWidgets::Core::Stack * KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::stack ( ) const

Definition at line 157 of file KDDWBindingsCore/TabBar_c.cpp.

◆ tabsAreMovable()

bool KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::tabsAreMovable ( ) const

Definition at line 161 of file KDDWBindingsCore/TabBar_c.cpp.

◆ text()

QString KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::text ( int  index) const

Definition at line 165 of file KDDWBindingsCore/TabBar_c.cpp.

Member Data Documentation

◆ m_dragCanStartCallback

Callback_dragCanStart KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::m_dragCanStartCallback = nullptr

Definition at line 56 of file KDDWBindingsCore/TabBar_c.h.

Referenced by dragCanStart().

◆ m_isMDICallback

Callback_isMDI KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::m_isMDICallback = nullptr

Definition at line 58 of file KDDWBindingsCore/TabBar_c.h.

Referenced by isMDI().

◆ m_isWindowCallback

Callback_isWindow KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::m_isWindowCallback = nullptr

Definition at line 60 of file KDDWBindingsCore/TabBar_c.h.

Referenced by isWindow().

◆ m_setParentView_implCallback

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().

◆ m_singleDockWidgetCallback

Callback_singleDockWidget KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::m_singleDockWidgetCallback = nullptr

Definition at line 64 of file KDDWBindingsCore/TabBar_c.h.


The documentation for this class was generated from the following files:

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8