KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
KDDockWidgets::Core::Group Class Reference

#include <Group.h>

Inheritance diagram for KDDockWidgets::Core::Group:
Inheritance graph
[legend]
Collaboration diagram for KDDockWidgets::Core::Group:
Collaboration graph
[legend]

Public Types

typedef Vector< Group * > List
 

Public Member Functions

 Group (View *parent=nullptr, FrameOptions=FrameOption_None, int userType=0)
 
virtual ~Group () override
 
Core::TitleBaractualTitleBar () const
 
void addTab (DockWidget *, const InitialOption &={})
 Adds a widget into the Group's Stack.
 
void addTab (FloatingWindow *floatingWindow, const InitialOption &={})
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void addTab (Group *, const InitialOption &={})
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
Vector< QStringaffinities () const
 
bool allDockWidgetsHave (DockWidgetOption) const
 Returns whether all dock widgets have the specified option set.
 
bool allDockWidgetsHave (LayoutSaverOption) const
 Returns whether all dock widgets have the specified layout saver option set.
 
bool alwaysShowsTabs () const
 whether the tab widget will always show tabs, even if there's only 1 dock widget
 
bool anyDockWidgetsHas (DockWidgetOption) const
 Returns whether at least one dock widget has the specified option set.
 
bool anyDockWidgetsHas (LayoutSaverOption) const
 Returns whether at least one dock widget has the specified layout saver option set.
 
bool anyNonClosable () const
 
bool anyNonDockable () const
 
LayoutingGuest * asLayoutingGuest () const
 
bool beingDeletedLater () const
 Returns whether a deleteLater has already been issued.
 
Size biggestDockWidgetMaxSize () const
 Returns the biggest combined maxSize of all dock widgets.
 
void changeTabIcon (int index, const Icon &)
 
bool containsDockWidget (DockWidget *w) const
 returns whether the dockwidget w is inside this group
 
bool containsMouse (Point globalPos) const
 
DockWidgetcurrentDockWidget () const
 Returns the current dock widget.
 
int currentIndex () const
 returns the index of the current tab
 
int currentTabIndex () const
 
FloatingWindowdetachTab (DockWidget *)
 detaches this dock widget
 
DockWidgetdockWidgetAt (int index) const
 Returns the dock widget at index.
 
int dockWidgetCount () const
 returns the number of dock widgets inside the group
 
Vector< DockWidget * > dockWidgets () const
 
Size dockWidgetsMinSize () const
 Returns the minimum size of the dock widgets. This might be slightly smaller than Frame::minSize() due to the QTabWidget having some margins and tab bar.
 
Private * dptr () const
 
virtual Rect dragRect () const
 
FloatingWindowfloatingWindow () const
 returns the FloatingWindow this group is in, if any
 
bool hasNestedMDIDockWidgets () const
 If this group is a MDI group (isMDI() == true), returns whether it contains nested dock widgets (DockWidgetOption_MDINestable)
 
bool hasSingleDockWidget () const
 returns whether there's only 1 dock widget.
 
bool hasTabsVisible () const
 returns true if tabs are visible
 
Icon icon () const
 
int indexOfDockWidget (const DockWidget *)
 returns the index of the specified dock widget
 
void insertDockWidget (DockWidget *, int index)
 Inserts a dock widget into the specified index.
 
void insertWidget (DockWidget *, int index, const InitialOption &={})
 Inserts a widget into the Group's TabWidget at index.
 
bool isCentralGroup () const
 returns if this widget is the central group MainWindow supports a mode where the middle group is persistent even if no dock widget is there.
 
bool isDockable () const
 Returns whether you can DND dock widgets over this group and tab into it.
 
bool isEmpty () const
 returns whether there's 0 dock widgets. If not persistent then the Frame will delete itself.
 
bool isFloating () const
 Returns whether this group is floating. A floating group isn't attached to any other MainWindow, and if it's attached to a FloatingWindow then it's considered floating if it's the only group in that Window. A floating group can have multiple dock widgets (tabbed), in which case each DockWidget::isFloating() returns false, in which case you can use isInFloatingWindow() which would still return true.
 
bool isInFloatingWindow () const
 Returns whether this group is in a FloatingWindow, as opposed to MainWindow.
 
bool isInMainWindow () const
 Returns whether this group is docked inside a MainWindow.
 
bool isMDI () const
 Returns whether this group is in a MDI layout Usually no, unless you're using an MDI main window.
 
bool isMDIWrapper () const
 Returns whether this group was created automatically just for the purpose of supporting DockWidgetOption_MDINestable.
 
bool isOverlayed () const
 Returns whether this group is overlayed on top of the MainWindow (auto-hide feature);.
 
bool isTheOnlyGroup () const
 
Core::Item * layoutItem () const
 returns the layout item that either contains this Frame in the layout or is a placeholder
 
MainWindowmainWindow () const
 Returns the main window this group is in. nullptr if not inside a main window.
 
DockWidgetmdiDockWidgetWrapper () const
 If this is an MDI wrapper group, return the DockWidget MDI wrapper.
 
DropAreamdiDropAreaWrapper () const
 If this is an MDI wrapper group, return the DropArea MDI wrapper.
 
GroupmdiFrame () const
 If this group is an MDI wrapper, returns the MDI group. That is the group you actually drag inside the MDI area.
 
MDILayoutmdiLayout () const
 Returns the MDI layout. Or nullptr if this group isn't in a MDI layout.
 
int nonContentsHeight () const
 
void onDockWidgetCountChanged ()
 
void onDockWidgetTitleChanged (DockWidget *)
 
FrameOptions options () const
 
void removeWidget (DockWidget *)
 removes a dockwidget from the group
 
void renameTab (int index, const QString &)
 
FloatingWindowFlags requestedFloatingWindowFlags () const
 User requested floating window flags for when this group floats.
 
WidgetResizeHandler * resizeHandler () const
 Returns the resize handler. Used mostly in MDI mode.
 
void restoreToPreviousPosition ()
 Puts the Group back in its previous main window position.
 
LayoutSaver::Group serialize () const
 
void setAllowedResizeSides (CursorPositions sides)
 To allow resizing the overlayed dock widget (auto-hide feature)
 
void setCurrentDockWidget (DockWidget *)
 Sets the specified dock widget to be the current tab.
 
void setCurrentTabIndex (int index)
 sets the current tab index
 
void setLayout (Layout *)
 Sets the Layout which this group is in.
 
void setLayoutItem (Core::Item *item)
 sets the layout item that either contains this Group in the layout or is a placeholder
 
Core::Stackstack () const
 returns the tab widget
 
Core::TabBartabBar () const
 
QString title () const
 
Core::TitleBartitleBar () const
 
void unoverlay ()
 clears the FrameOption_IsOverlayed flag. For example, if you drag a side-bar overlay, then it becomes a normal floating window
 
void updateFloatingActions ()
 
void updateTitleAndIcon ()
 
void updateTitleBarVisibility ()
 
int userType () const
 See Core::DockWidget::userType()
 
- 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 Member Functions inherited from KDDockWidgets::Core::FocusScope
 FocusScope (View *thisView)
 constructor
 
virtual ~FocusScope ()
 
void focus (Qt::FocusReason=Qt::OtherFocusReason)
 Sets focus on this scope.
 
bool isFocused () const
 Returns true if this FocusScope is focused. This is similar to the QWidget::hasFocus(), except that it counts with the children being focused too. i.e: If any child is focused then this FocusScope has focus too.
 

Static Public Member Functions

static int dbg_numFrames ()
 For tests-only. Returns the number of Frame instances in the whole application.
 
static Groupdeserialize (const LayoutSaver::Group &)
 
static Core::GroupfromItem (const Core::Item *)
 Returns the group that's in the specified item.
 

Static Public Attributes

static bool s_inFloatHack = false
 

Protected Member Functions

void focusedWidgetChangedCallback () override
 
void isFocusedChangedCallback () override
 reimplement in the 1st QObject derived class
 
void setParentView_impl (View *parent) override
 

Protected Attributes

bool m_inDtor = false
 
Core::Stack *const m_stack
 
Core::TabBar *const m_tabBar
 
Core::TitleBar *const m_titleBar
 
- Protected Attributes inherited from KDDockWidgets::Core::Controller
bool m_inDtor = false
 

Detailed Description

Definition at line 40 of file core/Group.h.

Member Typedef Documentation

◆ List

Definition at line 44 of file core/Group.h.

Constructor & Destructor Documentation

◆ Group()

Group::Group ( View parent = nullptr,
FrameOptions  options = FrameOption_None,
int  userType = 0 
)
explicit

◆ ~Group()

Group::~Group ( )
overridevirtual

Member Function Documentation

◆ actualTitleBar()

Core::TitleBar * Group::actualTitleBar ( ) const

◆ addTab() [1/3]

void Group::addTab ( DockWidget dockWidget,
const InitialOption addingOption = {} 
)

◆ addTab() [2/3]

void Group::addTab ( FloatingWindow floatingWindow,
const InitialOption addingOption = {} 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 252 of file core/Group.cpp.

References addTab(), floatingWindow(), and KDDockWidgets::Core::FloatingWindow::groups().

◆ addTab() [3/3]

void Group::addTab ( Group group,
const InitialOption addingOption = {} 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 240 of file core/Group.cpp.

References addTab(), dockWidgets(), and isEmpty().

◆ affinities()

Vector< QString > Group::affinities ( ) const

◆ allDockWidgetsHave() [1/2]

bool Group::allDockWidgetsHave ( DockWidgetOption  option) const

Returns whether all dock widgets have the specified option set.

Definition at line 897 of file core/Group.cpp.

References dockWidgets().

Referenced by c_KDDockWidgets__Core__Group__allDockWidgetsHave_DockWidgetOption(), and c_KDDockWidgets__Core__Group__allDockWidgetsHave_LayoutSaverOption().

◆ allDockWidgetsHave() [2/2]

bool Group::allDockWidgetsHave ( LayoutSaverOption  option) const

Returns whether all dock widgets have the specified layout saver option set.

Definition at line 912 of file core/Group.cpp.

References dockWidgets().

◆ alwaysShowsTabs()

bool Core::Group::alwaysShowsTabs ( ) const

whether the tab widget will always show tabs, even if there's only 1 dock widget

While technically a non-floating dock widget is always tabbed, the user won't see the tabs as in most cases there's only 1 widget tabbed. But for the main window central group it's often wanted to see tabs even if there's only 1 widget, where each widget represents a "document".

Returns
whether the tab widget will always show tabs, even if there's only 1 dock widget

Definition at line 1020 of file core/Group.cpp.

References KDDockWidgets::FrameOption_AlwaysShowsTabs.

Referenced by Group(), c_KDDockWidgets__Core__Group__alwaysShowsTabs(), and hasTabsVisible().

◆ anyDockWidgetsHas() [1/2]

bool Group::anyDockWidgetsHas ( DockWidgetOption  option) const

Returns whether at least one dock widget has the specified option set.

Definition at line 905 of file core/Group.cpp.

References dockWidgets().

Referenced by c_KDDockWidgets__Core__Group__anyDockWidgetsHas_DockWidgetOption(), and c_KDDockWidgets__Core__Group__anyDockWidgetsHas_LayoutSaverOption().

◆ anyDockWidgetsHas() [2/2]

bool Group::anyDockWidgetsHas ( LayoutSaverOption  option) const

Returns whether at least one dock widget has the specified layout saver option set.

Definition at line 919 of file core/Group.cpp.

References dockWidgets().

◆ anyNonClosable()

bool Group::anyNonClosable ( ) const

◆ anyNonDockable()

bool Group::anyNonDockable ( ) const

◆ asLayoutingGuest()

LayoutingGuest * Group::asLayoutingGuest ( ) const

◆ beingDeletedLater()

bool Group::beingDeletedLater ( ) const

Returns whether a deleteLater has already been issued.

Definition at line 667 of file core/Group.cpp.

Referenced by c_KDDockWidgets__Core__Group__beingDeletedLater().

◆ biggestDockWidgetMaxSize()

Size Group::biggestDockWidgetMaxSize ( ) const

Returns the biggest combined maxSize of all dock widgets.

Example: dock 1, max=2000x1000 dock 2, max=3000x400 dock3, max= result=3000,1000

Any widget having 16777215x16777215 is ignored (represents not having a max-size, QWIDGETSIZE_MAX)

Definition at line 847 of file core/Group.cpp.

References dockWidgets(), and KDDockWidgets::Core::Controller::size().

Referenced by c_KDDockWidgets__Core__Group__biggestDockWidgetMaxSize(), and KDDockWidgets::QtWidgets::Group::maxSizeHint().

◆ changeTabIcon()

void Group::changeTabIcon ( int  index,
const Icon &  icon 
)

Definition at line 178 of file core/Group.cpp.

References KDDockWidgets::Core::TabBar::changeTabIcon(), icon(), and m_tabBar.

Referenced by onDockWidgetTitleChanged().

◆ containsDockWidget()

bool Group::containsDockWidget ( DockWidget w) const

◆ containsMouse()

bool Group::containsMouse ( Point  globalPos) const

◆ currentDockWidget()

Core::DockWidget * Group::currentDockWidget ( ) const

◆ currentIndex()

int Group::currentIndex ( ) const

◆ currentTabIndex()

int Group::currentTabIndex ( ) const

◆ dbg_numFrames()

int Group::dbg_numFrames ( )
static

For tests-only. Returns the number of Frame instances in the whole application.

Definition at line 662 of file core/Group.cpp.

References s_dbg_numFrames.

◆ deserialize()

Group * Group::deserialize ( const LayoutSaver::Group &  f)
static

◆ detachTab()

FloatingWindow * Group::detachTab ( DockWidget dockWidget)

◆ dockWidgetAt()

Core::DockWidget * Group::dockWidgetAt ( int  index) const

◆ dockWidgetCount()

int Group::dockWidgetCount ( ) const

◆ dockWidgets()

Core::DockWidget::List Group::dockWidgets ( ) const

◆ dockWidgetsMinSize()

Size Group::dockWidgetsMinSize ( ) const

Returns the minimum size of the dock widgets. This might be slightly smaller than Frame::minSize() due to the QTabWidget having some margins and tab bar.

Definition at line 835 of file core/Group.cpp.

References dockWidgets(), and KDDockWidgets::Core::Controller::size().

Referenced by c_KDDockWidgets__Core__Group__dockWidgetsMinSize(), KDDockWidgets::QtWidgets::Group::maxSizeHint(), KDDockWidgets::flutter::Group::minSize(), and KDDockWidgets::QtQuick::Group::minSize().

◆ dptr()

Group::Private * Group::dptr ( ) const

◆ dragRect()

Rect Group::dragRect ( ) const
virtual

Returns the drag rect in global coordinates. This is usually the title bar rect. However, when using Config::Flag_HideTitleBarWhenTabsVisible it will be the tab bar background. Returns global coordinates.

Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Group_wrapper.

Definition at line 874 of file core/Group.cpp.

References KDDockWidgets::Core::Controller::isVisible(), m_titleBar, KDDockWidgets::Core::View::mapToGlobal(), KDDockWidgets::Core::Controller::rect(), KDDockWidgets::Core::View::rect(), and KDDockWidgets::Core::Controller::view().

◆ floatingWindow()

FloatingWindow * Group::floatingWindow ( ) const

◆ focusedWidgetChangedCallback()

void Group::focusedWidgetChangedCallback ( )
overrideprotectedvirtual

◆ fromItem()

Core::Group * Group::fromItem ( const Core::Item *  item)
static

◆ hasNestedMDIDockWidgets()

bool Group::hasNestedMDIDockWidgets ( ) const

If this group is a MDI group (isMDI() == true), returns whether it contains nested dock widgets (DockWidgetOption_MDINestable)

See also
isMDI()

Definition at line 978 of file core/Group.cpp.

References KDDockWidgets::Core::DockWidget::d, dockWidgetAt(), dockWidgetCount(), and isMDI().

Referenced by c_KDDockWidgets__Core__Group__hasNestedMDIDockWidgets().

◆ hasSingleDockWidget()

bool KDDockWidgets::Core::Group::hasSingleDockWidget ( ) const
inline

◆ hasTabsVisible()

bool Group::hasTabsVisible ( ) const

returns true if tabs are visible

See also
hasTabsVisibleChanged()

Definition at line 672 of file core/Group.cpp.

References alwaysShowsTabs(), and dockWidgetCount().

Referenced by c_KDDockWidgets__Core__Group__hasTabsVisible(), and updateTitleBarVisibility().

◆ icon()

Icon Group::icon ( ) const

◆ indexOfDockWidget()

int Group::indexOfDockWidget ( const DockWidget dw)

returns the index of the specified dock widget

Definition at line 342 of file core/Group.cpp.

References KDDockWidgets::Core::TabBar::indexOfDockWidget(), m_inDtor, and m_tabBar.

Referenced by c_KDDockWidgets__Core__Group__indexOfDockWidget_DockWidget(), and onDockWidgetTitleChanged().

◆ insertDockWidget()

void Group::insertDockWidget ( DockWidget dw,
int  index 
)

◆ insertWidget()

void Group::insertWidget ( DockWidget dockWidget,
int  index,
const InitialOption addingOption = {} 
)

◆ isCentralGroup()

bool Core::Group::isCentralGroup ( ) const

returns if this widget is the central group MainWindow supports a mode where the middle group is persistent even if no dock widget is there.

Returns
whether this widget is the central group in a main window

Definition at line 1028 of file core/Group.cpp.

References KDDockWidgets::FrameOption_IsCentralFrame.

Referenced by c_KDDockWidgets__Core__Group__isCentralGroup(), onDockWidgetCountChanged(), KDDockWidgets::Core::Stack::onMouseDoubleClick(), and updateTitleBarVisibility().

◆ isDockable()

bool Core::Group::isDockable ( ) const

Returns whether you can DND dock widgets over this group and tab into it.

Definition at line 1024 of file core/Group.cpp.

References KDDockWidgets::FrameOption_NonDockable.

Referenced by c_KDDockWidgets__Core__Group__isDockable(), and KDDockWidgets::Core::DropIndicatorOverlay::dropIndicatorVisible().

◆ isEmpty()

bool KDDockWidgets::Core::Group::isEmpty ( ) const
inline

returns whether there's 0 dock widgets. If not persistent then the Frame will delete itself.

Definition at line 190 of file core/Group.h.

Referenced by addTab(), affinities(), c_KDDockWidgets__Core__Group__isEmpty(), and onDockWidgetCountChanged().

◆ isFloating()

bool Group::isFloating ( ) const

Returns whether this group is floating. A floating group isn't attached to any other MainWindow, and if it's attached to a FloatingWindow then it's considered floating if it's the only group in that Window. A floating group can have multiple dock widgets (tabbed), in which case each DockWidget::isFloating() returns false, in which case you can use isInFloatingWindow() which would still return true.

Definition at line 711 of file core/Group.cpp.

References isInMainWindow(), isMDI(), and isTheOnlyGroup().

Referenced by c_KDDockWidgets__Core__Group__isFloating(), KDDockWidgets::Core::TitleBar::isFloating(), and KDDockWidgets::QtWidgets::Group::paintEvent().

◆ isFocusedChangedCallback()

void Group::isFocusedChangedCallback ( )
overrideprotectedvirtual

◆ isInFloatingWindow()

bool Group::isInFloatingWindow ( ) const

Returns whether this group is in a FloatingWindow, as opposed to MainWindow.

After setup it's equivalent to !isInMainWindow().

Definition at line 719 of file core/Group.cpp.

References floatingWindow().

Referenced by c_KDDockWidgets__Core__Group__isInFloatingWindow(), and KDDockWidgets::Core::TitleBar::onCloseClicked().

◆ isInMainWindow()

bool Group::isInMainWindow ( ) const

◆ isMDI()

bool Group::isMDI ( ) const

◆ isMDIWrapper()

bool Group::isMDIWrapper ( ) const

Returns whether this group was created automatically just for the purpose of supporting DockWidgetOption_MDINestable.

Definition at line 942 of file core/Group.cpp.

References mdiDropAreaWrapper().

Referenced by c_KDDockWidgets__Core__Group__isMDIWrapper(), and updateTitleBarVisibility().

◆ isOverlayed()

bool Group::isOverlayed ( ) const

◆ isTheOnlyGroup()

bool Group::isTheOnlyGroup ( ) const

◆ layoutItem()

Item * Group::layoutItem ( ) const

returns the layout item that either contains this Frame in the layout or is a placeholder

Definition at line 657 of file core/Group.cpp.

Referenced by KDDockWidgets::Core::DropArea::addDockWidget(), KDDockWidgets::Core::DropArea::addMultiSplitter(), and c_KDDockWidgets__Core__Group__layoutItem().

◆ mainWindow()

MainWindow * Group::mainWindow ( ) const

Returns the main window this group is in. nullptr if not inside a main window.

Definition at line 891 of file core/Group.cpp.

References KDDockWidgets::Core::Layout::mainWindow().

Referenced by affinities(), c_KDDockWidgets__Core__Group__mainWindow(), isInMainWindow(), KDDockWidgets::Core::TitleBar::mainWindow(), and serialize().

◆ mdiDockWidgetWrapper()

Core::DockWidget * Group::mdiDockWidgetWrapper ( ) const

If this is an MDI wrapper group, return the DockWidget MDI wrapper.

See also
isMDIWrapper

Definition at line 956 of file core/Group.cpp.

References mdiDropAreaWrapper(), KDDockWidgets::Core::View::parentView(), and KDDockWidgets::Core::Controller::view().

Referenced by c_KDDockWidgets__Core__Group__mdiDockWidgetWrapper(), and mdiFrame().

◆ mdiDropAreaWrapper()

DropArea * Group::mdiDropAreaWrapper ( ) const

◆ mdiFrame()

Group * Group::mdiFrame ( ) const

If this group is an MDI wrapper, returns the MDI group. That is the group you actually drag inside the MDI area.

Definition at line 947 of file core/Group.cpp.

References mdiDockWidgetWrapper().

Referenced by actualTitleBar(), and c_KDDockWidgets__Core__Group__mdiFrame().

◆ mdiLayout()

MDILayout * Group::mdiLayout ( ) const

Returns the MDI layout. Or nullptr if this group isn't in a MDI layout.

Definition at line 973 of file core/Group.cpp.

References KDDockWidgets::Core::Layout::asMDILayout().

Referenced by isMDI(), and KDDockWidgets::QtQuick::Group::setMDISize().

◆ nonContentsHeight()

int Group::nonContentsHeight ( ) const

◆ onDockWidgetCountChanged()

void Group::onDockWidgetCountChanged ( )

◆ onDockWidgetTitleChanged()

void Group::onDockWidgetTitleChanged ( DockWidget dw)

◆ options()

FrameOptions Core::Group::options ( ) const

Definition at line 1016 of file core/Group.cpp.

Referenced by deserialize(), and serialize().

◆ removeWidget()

void Group::removeWidget ( DockWidget dw)

◆ renameTab()

void Group::renameTab ( int  index,
const QString title 
)

◆ requestedFloatingWindowFlags()

FloatingWindowFlags Group::requestedFloatingWindowFlags ( ) const

User requested floating window flags for when this group floats.

Definition at line 1007 of file core/Group.cpp.

References dockWidgets(), and KDDockWidgets::FromGlobalConfig.

Referenced by hackFindParentHarder().

◆ resizeHandler()

WidgetResizeHandler * Group::resizeHandler ( ) const

Returns the resize handler. Used mostly in MDI mode.

Definition at line 996 of file core/Group.cpp.

Referenced by KDDockWidgets::QtQuick::Group::startMDIResize().

◆ restoreToPreviousPosition()

void Group::restoreToPreviousPosition ( )

Puts the Group back in its previous main window position.

Usually DockWidget::Private::restoreToPreviousPosition() is used, but when we have a floating group with tabs we just reuse the group instead of moving the tabbed dock widgets one by one.

Definition at line 578 of file core/Group.cpp.

References hasSingleDockWidget().

Referenced by c_KDDockWidgets__Core__Group__restoreToPreviousPosition(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Group_wrapper::restoreToPreviousPosition().

◆ serialize()

LayoutSaver::Group Group::serialize ( ) const

◆ setAllowedResizeSides()

void Group::setAllowedResizeSides ( CursorPositions  sides)

To allow resizing the overlayed dock widget (auto-hide feature)

Definition at line 926 of file core/Group.cpp.

◆ setCurrentDockWidget()

void Group::setCurrentDockWidget ( DockWidget dw)

◆ setCurrentTabIndex()

void Group::setCurrentTabIndex ( int  index)

◆ setLayout()

void Group::setLayout ( Layout dt)

◆ setLayoutItem()

void Group::setLayoutItem ( Core::Item *  item)

sets the layout item that either contains this Group in the layout or is a placeholder

Definition at line 691 of file core/Group.cpp.

Referenced by c_KDDockWidgets__Core__Group__setLayoutItem_Item(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Group_wrapper::setLayoutItem().

◆ setParentView_impl()

void Group::setParentView_impl ( View parent)
overrideprotectedvirtual

◆ stack()

Core::Stack * Group::stack ( ) const

◆ tabBar()

Core::TabBar * Group::tabBar ( ) const

◆ title()

QString Group::title ( ) const

◆ titleBar()

Core::TitleBar * Group::titleBar ( ) const

◆ unoverlay()

void Group::unoverlay ( )

clears the FrameOption_IsOverlayed flag. For example, if you drag a side-bar overlay, then it becomes a normal floating window

Definition at line 706 of file core/Group.cpp.

Referenced by c_KDDockWidgets__Core__Group__unoverlay(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Group_wrapper::unoverlay().

◆ updateFloatingActions()

void Group::updateFloatingActions ( )

◆ updateTitleAndIcon()

void Group::updateTitleAndIcon ( )

◆ updateTitleBarVisibility()

void Group::updateTitleBarVisibility ( )

◆ userType()

int Group::userType ( ) const

Member Data Documentation

◆ m_inDtor

bool KDDockWidgets::Core::Group::m_inDtor = false
protected

◆ m_stack

Core::Stack* const KDDockWidgets::Core::Group::m_stack
protected

◆ m_tabBar

Core::TabBar* const KDDockWidgets::Core::Group::m_tabBar
protected

◆ m_titleBar

Core::TitleBar* const KDDockWidgets::Core::Group::m_titleBar
protected

◆ s_inFloatHack

bool KDDockWidgets::Core::Group::s_inFloatHack = false
static

Definition at line 296 of file core/Group.h.

Referenced by KDDockWidgets::Core::TitleBar::onFloatClicked().


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