KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
MDIArea.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#ifndef KDDOCKWIDGETS_MDI_AREA_H
13#define KDDOCKWIDGETS_MDI_AREA_H
14
15#include "kddockwidgets/docks_export.h"
16#include "kddockwidgets/KDDockWidgets.h"
17#include "kddockwidgets/qtwidgets/views/View.h"
18
19namespace KDDockWidgets {
20
21namespace Core {
22class Group;
23class DockWidget;
24class MDILayout;
25class DockWidgetViewInterface;
26}
27
28namespace QtWidgets {
29
39class DOCKS_EXPORT MDIArea : public QtWidgets::View<QWidget>
40{
41 Q_OBJECT
42public:
43 explicit MDIArea(QWidget *parent = nullptr);
44 ~MDIArea();
45
47 void addDockWidget(Core::DockWidget *dw, QPoint localPt,
48 InitialOption addingOption = {});
49
51 void moveDockWidget(Core::DockWidget *dw, QPoint pos);
52
54 void resizeDockWidget(Core::DockWidget *dw, QSize size);
55
57 void addDockWidget(Core::DockWidgetViewInterface *, QPoint localPt,
58 InitialOption addingOption = {});
59 void moveDockWidget(Core::DockWidgetViewInterface *, QPoint pos);
60 void resizeDockWidget(Core::DockWidgetViewInterface *, QSize size);
61
64 QVector<Core::Group *> groups() const;
65
66private:
67 class Private;
68 Private *const d;
69};
70
71}
72
73}
74
75#endif
The interface that DockWidget views should implement.
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
MDIArea allows to host dock widget in MDI mode. This is an alternative to using a full blown MainWind...
Definition MDIArea.h:40
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