KDDockWidgets API Documentation
2.0
Loading...
Searching...
No Matches
source
src
core
core/Stack.h
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
#pragma once
13
14
#include "
Controller.h
"
15
#include "Draggable_p.h"
16
#include "
Group.h
"
17
#include "
TabBar.h
"
18
19
namespace
KDDockWidgets
{
20
21
namespace
QtWidgets
{
22
class
Stack
;
23
}
24
25
namespace
QtQuick
{
26
class
TabBar
;
27
}
28
29
namespace
Core {
30
31
class
Group;
32
class
TabBar
;
33
34
class
DOCKS_EXPORT
Stack
:
public
Controller
,
public
Draggable
35
{
36
Q_OBJECT
37
public
:
38
explicit
Stack
(
Group
*, StackOptions);
39
virtual
~Stack
()
override
;
40
44
int
numDockWidgets()
const
;
45
49
void
setTabBarAutoHide(
bool
);
50
bool
tabBarAutoHide()
const
;
51
53
void
addDockWidget(
DockWidget
*);
54
60
bool
insertDockWidget(
DockWidget
*dockwidget,
int
index);
61
66
bool
contains(
DockWidget
*dw)
const
;
67
71
Core::TabBar
*tabBar()
const
;
72
74
Group
*group()
const
;
75
76
// Draggable interface
77
std::unique_ptr<WindowBeingDragged> makeWindow()
override
;
78
DockWidget
*singleDockWidget()
const
override
final
;
79
bool
isWindow()
const override
;
80
bool
isMDI()
const override
;
81
bool
isPositionDraggable(Point p)
const override
;
82
83
StackOptions options()
const
;
84
86
void
setDocumentMode(
bool
);
87
88
public
:
89
bool
onMouseDoubleClick(Point localPos);
90
91
private
:
92
friend
class
QtWidgets::Stack
;
93
friend
class
QtQuick::TabBar
;
94
95
class
Private;
96
Private *
const
d;
97
98
KDDW_DELETE_COPY_CTOR
(
Stack
)
99
};
100
101
}
102
103
}
Controller.h
KDDW_DELETE_COPY_CTOR
#define KDDW_DELETE_COPY_CTOR(NAME)
Definition
KDDockWidgets.h:431
KDDockWidgets::Core::Controller
Definition
Controller.h:49
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::Group
Definition
core/Group.h:41
KDDockWidgets::Core::Stack
Definition
core/Stack.h:35
KDDockWidgets::Core::TabBar
Definition
core/TabBar.h:25
KDDockWidgets::QtQuick::TabBar
Definition
qtquick/views/TabBar.h:45
KDDockWidgets::QtWidgets::Stack
Definition
qtwidgets/views/Stack.h:26
KDDockWidgets::Core::ViewType::Stack
@ Stack
KDDockWidgets::Core::ViewType::TabBar
@ TabBar
KDDockWidgets
Class to abstract QAction, so code still works with QtQuick and Flutter.
Definition
KDStlContainerAdaptor.h:427
KDDockWidgets::FrontendType::QtWidgets
@ QtWidgets
KDDockWidgets::FrontendType::QtQuick
@ QtQuick
Group.h
TabBar.h
© 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