KDDockWidgets API Documentation
2.1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
j
l
m
n
o
p
q
r
s
t
v
w
Functions
a
b
c
d
f
g
i
j
l
m
o
p
q
r
s
t
w
Variables
a
r
s
Typedefs
Enumerations
Enumerator
a
c
d
f
l
m
r
s
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
d
g
i
m
n
p
s
v
Typedefs
b
c
l
p
s
t
v
Enumerations
Enumerator
c
f
i
m
r
Properties
a
c
d
f
g
h
i
m
o
s
t
u
Files
File List
File Members
All
a
b
c
d
f
h
i
k
l
m
o
p
q
r
s
t
w
Functions
a
b
c
d
f
h
i
l
m
o
p
q
r
s
t
w
Variables
Enumerations
Enumerator
Macros
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
Concepts
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
}
19
GroupViewInterface::GroupViewInterface
(
Group
*controller) {
…
}
23
24
GroupViewInterface::~GroupViewInterface
() =
default
;
25
26
bool
GroupViewInterface::isMDI
()
const
27
{
28
return
m_group
->
isMDI
();
29
}
26
bool
GroupViewInterface::isMDI
()
const
{
…
}
30
31
Group
*
GroupViewInterface::group
()
const
32
{
33
return
m_group
;
34
}
31
Group
*
GroupViewInterface::group
()
const
{
…
}
35
36
Rect
GroupViewInterface::dragRect
()
const
37
{
38
return
{};
39
}
36
Rect
GroupViewInterface::dragRect
()
const
{
…
}
40
41
void
GroupViewInterface::removeDockWidget
(
DockWidget
*dw)
42
{
43
m_group
->
tabBar
()->
removeDockWidget
(dw);
44
}
41
void
GroupViewInterface::removeDockWidget
(
DockWidget
*dw) {
…
}
45
46
void
GroupViewInterface::insertDockWidget
(
DockWidget
*dw,
int
index)
47
{
48
m_group
->
stack
()->
insertDockWidget
(dw, index);
49
}
46
void
GroupViewInterface::insertDockWidget
(
DockWidget
*dw,
int
index) {
…
}
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:937
KDDockWidgets::Core::Group::stack
Core::Stack * stack() const
returns the tab widget
Definition
core/Group.cpp:188
KDDockWidgets::Core::Group::tabBar
Core::TabBar * tabBar() const
Definition
core/Group.cpp:193
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