15#include "kddockwidgets/core/indicators/ClassicDropIndicatorOverlay.h"
16#include "kddockwidgets/core/indicators/NullDropIndicatorOverlay.h"
17#include "kddockwidgets/core/indicators/SegmentedDropIndicatorOverlay.h"
18#include "core/Utils_p.h"
20#include "kddockwidgets/core/MainWindow.h"
21#include "kddockwidgets/core/TabBar.h"
22#include "kddockwidgets/core/Stack.h"
23#include "kddockwidgets/core/FloatingWindow.h"
41#include "views/ClassicIndicatorsWindow.h"
54 LayoutSaverOptions layoutSaverOptions,
62 DockWidgetOptions options,
63 LayoutSaverOptions layoutSaverOptions,
93 controller, parent ?
static_cast<QtQuick::View *
>(parent) :
nullptr);
101 auto mainwindow = parent
123 iconName = QStringLiteral(
"auto-hide");
126 iconName = QStringLiteral(
"unauto-hide");
139 iconName = QStringLiteral(
"dock-float");
142 iconName = QStringLiteral(
"dock-float");
150 if (!scalingFactorIsSupported(dpr))
156 if (scalingFactorIsSupported(1.5))
166 return new DropArea(controller, parent);
171 return new MDILayout(controller, parent);
176 return QUrl(QStringLiteral(
"qrc:/kddockwidgets/qtquick/views/qml/TitleBar.qml"));
181 return QUrl(QStringLiteral(
"qrc:/kddockwidgets/qtquick/views/qml/DockWidget.qml"));
186 return QUrl(QStringLiteral(
"qrc:/kddockwidgets/qtquick/views/qml/Group.qml"));
191 return QUrl(QStringLiteral(
"qrc:/kddockwidgets/qtquick/views/qml/FloatingWindow.qml"));
196 return QUrl(QStringLiteral(
"qrc:/kddockwidgets/qtquick/views/qml/TabBar.qml"));
201 return QUrl(QStringLiteral(
"qrc:/kddockwidgets/qtquick/views/qml/Separator.qml"));
219 auto factory = qobject_cast<ViewFactory *>(
Config::self().viewFactory());
222 qWarning() << Q_FUNC_INFO <<
"Expected a ViewFactory subclass, not"
Application-wide config to tune certain behaviours of the framework.
The MainWindow base-class. MainWindow and MainWindowBase are only split in two so we can share some c...
void addFile(const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state)
bool isEmpty() const const
The QQuickItem counter part of TabWidgetQuick. Handles GUI while TabWidget handles state.
Implements a QTabWidget derived class with support for docking and undocking KDockWidget::DockWidget ...