KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
core/MDILayout.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
13
14#ifndef KDDOCKWIDGETS_MDI_LAYOUT_WIDGET_P_H
15#define KDDOCKWIDGETS_MDI_LAYOUT_WIDGET_P_H
16
17#include "kddockwidgets/core/Layout.h"
18#include "kddockwidgets/KDDockWidgets.h"
19#include "kddockwidgets/docks_export.h"
20
21
22namespace KDDockWidgets {
23
24namespace Core {
25
26class ItemFreeContainer;
27
32class DOCKS_EXPORT MDILayout : public Layout
33{
34 Q_OBJECT
35public:
36 explicit MDILayout(View *parent = nullptr);
37 ~MDILayout() override;
38
40 void addDockWidget(Core::DockWidget *dw, Point localPt,
41 const InitialOption &addingOption = {});
42
44 void moveDockWidget(Core::DockWidget *dw, Point pos);
45
48 void moveDockWidget(Core::Group *group, Point pos);
49
51 void resizeDockWidget(Core::DockWidget *dw, Size size);
52
55 void resizeDockWidget(Core::Group *group, Size size);
56
58 void setDockWidgetGeometry(Core::Group *group, Rect);
59
60private:
61 Core::ItemFreeContainer *const m_rootItem;
62};
63
64}
65
66}
67
68#endif
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
The widget (QWidget or QQuickItem) which holds a layout of dock widgets.
Definition Layout.h:57
The MDILayout class implements a layout suitable for MDI style docking. Where dock widgets are free t...
Class to abstract QAction, so code still works with QtQuick and Flutter.
Struct describing the preferred dock widget size and visibility when adding it to a layout.

© 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