KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
MainWindowMDIInstantiator.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2019 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 KD_MDIMAIN_WINDOW_INSTANTIATOR_P_H
13#define KD_MDIMAIN_WINDOW_INSTANTIATOR_P_H
14#pragma once
15
16#include "kddockwidgets/docks_export.h"
17#include "kddockwidgets/KDDockWidgets.h"
18
19#include <QQuickItem>
20
21namespace KDDockWidgets {
22
23namespace Core {
24class MainWindow;
25class SideBar;
26}
27
30class DOCKS_EXPORT MainWindowMDIInstantiator : public QQuickItem
31{
32 Q_OBJECT
33 Q_PROPERTY(QString uniqueName READ uniqueName WRITE setUniqueName NOTIFY uniqueNameChanged)
34 Q_PROPERTY(QVector<QString> affinities READ affinities CONSTANT)
35public:
38
39 QString uniqueName() const;
40 void setUniqueName(const QString &);
41
42 QVector<QString> affinities() const;
43
44 Q_INVOKABLE void addDockWidget(QQuickItem *dockWidget, QPoint localPos,
45 const KDDockWidgets::InitialOption &addingOption = {});
46
47 Q_INVOKABLE bool closeDockWidgets(bool force = false);
48
49protected:
50 void classBegin() override;
51 void componentComplete() override;
52
53Q_SIGNALS:
56
57private:
58 QString m_uniqueName;
59 Core::MainWindow *m_mainWindow = nullptr;
60};
61
62}
63
64#endif
The MainWindow base-class. MainWindow and MainWindowBase are only split in two so we can share some c...
A wrapper to workaround the limitation that QtQuick can't pass arguments through MainWindow's ctor So...
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