15#include "kddockwidgets/core/DockWidget.h"
16#include "kddockwidgets/core/MainWindow.h"
17#include "kddockwidgets/core/DockRegistry.h"
18#include "kddockwidgets/core/MDILayout.h"
37 if (name != m_uniqueName) {
51 if (!dockWidget || !m_mainWindow)
72 qWarning() << Q_FUNC_INFO
73 <<
"Each DockWidget need an unique name. Set the uniqueName property.";
83 qWarning() << Q_FUNC_INFO <<
"Name can't be empty";
88 qWarning() << Q_FUNC_INFO <<
"Main window is already initialized";
MDILayout * mdiLayout() const
bool closeDockWidgets(bool force=false)
Closes all dock widgets which are docked into this main window This is convenience to calling DockWid...
Vector< QString > affinities() const
Returns the list of affinity names. Empty by default.
Q_INVOKABLE bool closeDockWidgets(bool force=false)
void componentComplete() override
MainWindowMDIInstantiator()
ctor, called by QML engine
Q_INVOKABLE void addDockWidget(QQuickItem *dockWidget, QPoint localPos, const KDDockWidgets::InitialOption &addingOption={})
void setUniqueName(const QString &)
void classBegin() override
QVector< QString > affinities
MainWindow sub-class which uses MDI as a layout.
bool isEmpty() const const