KDDockWidgets API Documentation
2.0
Loading...
Searching...
No Matches
source
src
core
views
GroupViewInterface.cpp
Go to the documentation of this file.
1
/*
2
This file is part of KDDockWidgets.
3
4
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5
Author: SĂ©rgio Martins <sergio.martins@kdab.com>
6
7
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9
Contact KDAB at <info@kdab.com> for commercial licensing options.
10
*/
11
12
#include "
GroupViewInterface.h
"
13
#include "
core/Group.h
"
14
#include "
core/TabBar.h
"
15
#include "
core/Stack.h
"
16
17
namespace
KDDockWidgets::Core
{
18
19
GroupViewInterface::GroupViewInterface
(
Group
*controller)
20
: m_group(controller)
21
{
22
}
23
24
GroupViewInterface::~GroupViewInterface
() =
default
;
25
26
bool
GroupViewInterface::isMDI
()
const
27
{
28
return
m_group
->
isMDI
();
29
}
30
31
Group
*
GroupViewInterface::group
()
const
32
{
33
return
m_group
;
34
}
35
36
Rect
GroupViewInterface::dragRect
()
const
37
{
38
return
{};
39
}
40
41
void
GroupViewInterface::removeDockWidget
(
DockWidget
*dw)
42
{
43
m_group
->
tabBar
()->
removeDockWidget
(dw);
44
}
45
46
void
GroupViewInterface::insertDockWidget
(
DockWidget
*dw,
int
index)
47
{
48
m_group
->
stack
()->
insertDockWidget
(dw, index);
49
}
50
51
}
// namespace
GroupViewInterface.h
KDDockWidgets::Core::DockWidget
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
Definition
core/DockWidget.h:60
KDDockWidgets::Core::GroupViewInterface::isMDI
bool isMDI() const
Definition
GroupViewInterface.cpp:26
KDDockWidgets::Core::GroupViewInterface::removeDockWidget
virtual void removeDockWidget(DockWidget *)
Definition
GroupViewInterface.cpp:41
KDDockWidgets::Core::GroupViewInterface::~GroupViewInterface
virtual ~GroupViewInterface()
KDDockWidgets::Core::GroupViewInterface::insertDockWidget
virtual void insertDockWidget(DockWidget *, int index)
Definition
GroupViewInterface.cpp:46
KDDockWidgets::Core::GroupViewInterface::group
Group * group() const
Definition
GroupViewInterface.cpp:31
KDDockWidgets::Core::GroupViewInterface::dragRect
virtual Rect dragRect() const
the rect that should start a drag. Only relevant if the title bar isn't visible. For normal KDDW usag...
Definition
GroupViewInterface.cpp:36
KDDockWidgets::Core::GroupViewInterface::m_group
Group *const m_group
Definition
GroupViewInterface.h:47
KDDockWidgets::Core::GroupViewInterface::GroupViewInterface
GroupViewInterface(Group *)
Definition
GroupViewInterface.cpp:19
KDDockWidgets::Core::Group
Definition
core/Group.h:41
KDDockWidgets::Core::Group::isMDI
bool isMDI() const
Returns whether this group is in a MDI layout Usually no, unless you're using an MDI main window.
Definition
core/Group.cpp:902
KDDockWidgets::Core::Group::stack
Core::Stack * stack() const
returns the tab widget
Definition
core/Group.cpp:178
KDDockWidgets::Core::Group::tabBar
Core::TabBar * tabBar() const
Definition
core/Group.cpp:183
KDDockWidgets::Core::Stack::insertDockWidget
bool insertDockWidget(DockWidget *dockwidget, int index)
inserts dockwidget into the TabWidget, at index
Definition
core/Stack.cpp:68
KDDockWidgets::Core::TabBar::removeDockWidget
void removeDockWidget(Core::DockWidget *dw)
Definition
core/TabBar.cpp:112
Group.h
Stack.h
TabBar.h
KDDockWidgets::Core
Definition
Config.h:27
© 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