KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
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
19namespace KDDockWidgets {
20
21namespace QtWidgets {
22class Stack;
23}
24
25namespace QtQuick {
26class TabBar;
27}
28
29namespace Core {
30
31class Group;
32class TabBar;
33
34class DOCKS_EXPORT Stack : public Controller, public Draggable
35{
36 Q_OBJECT
37public:
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
92 void setHideDisabledButtons(TitleBarButtonTypes);
93 bool buttonHidesIfDisabled(TitleBarButtonType) const;
94
95public:
96 bool onMouseDoubleClick(Point localPos);
97
98private:
99 friend class QtWidgets::Stack;
100 friend class QtQuick::TabBar;
101
102 class Private;
103 Private *const d;
104
106};
107
108}
109
110}
#define KDDW_DELETE_COPY_CTOR(NAME)
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
Class to abstract QAction, so code still works with QtQuick and Flutter.
TitleBarButtonType
describes a type of button you can have in the title bar

© 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