KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
qtquick/ViewFactory.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 KDDOCKWIDGETS_ViewFactory_QTQUICK_H
13#define KDDOCKWIDGETS_ViewFactory_QTQUICK_H
14
15#include "kddockwidgets/core/ViewFactory.h"
16
17// clazy:excludeall=ctor-missing-parent-argument
18
26QT_BEGIN_NAMESPACE
27class QAbstractButton;
28class QQmlEngine;
29QT_END_NAMESPACE
30
31namespace KDDockWidgets {
32
33class DropIndicatorOverlay;
34
35namespace Core {
36class DropArea;
37class Separator;
38class TabBar;
39class SideBar;
40class FloatingWindow;
41class MainWindow;
42}
43
44namespace QtQuick {
45
49class DOCKS_EXPORT ViewFactory : public Core::ViewFactory
50{
51 Q_OBJECT
52public:
53 ViewFactory() = default;
54 ~ViewFactory() override;
55 Core::View *createDockWidget(const QString &uniqueName, DockWidgetOptions options = {},
56 LayoutSaverOptions layoutSaverOptions = {},
57 Qt::WindowFlags windowFlags = {}) const override;
58 virtual Core::View *createDockWidget(const QString &uniqueName, QQmlEngine *,
59 DockWidgetOptions options = {},
60 LayoutSaverOptions layoutSaverOptions = {},
61 Qt::WindowFlags windowFlags = {}) const;
62 Core::View *createGroup(Core::Group *, Core::View *parent) const override;
63 Core::View *createTitleBar(Core::TitleBar *, Core::View *parent) const override;
64 Core::View *createStack(Core::Stack *, Core::View *parent) const override;
65 Core::View *createTabBar(Core::TabBar *tabBar, Core::View *parent) const override;
66 Core::View *createSeparator(Core::Separator *, Core::View *parent = nullptr) const override;
67 Core::View *createFloatingWindow(Core::FloatingWindow *,
68 Core::MainWindow *parent = nullptr,
69 Qt::WindowFlags windowFlags = {}) const override;
70 Core::View *createRubberBand(Core::View *parent) const override;
71 Core::View *createSideBar(Core::SideBar *, Core::View *parent) const override;
72 Core::View *createDropArea(Core::DropArea *, Core::View *parent) const override;
73 Core::View *createMDILayout(Core::MDILayout *, Core::View *parent) const override;
74
76 Q_INVOKABLE virtual QUrl titleBarFilename() const;
77 Q_INVOKABLE virtual QUrl tabbarFilename() const;
78
80 virtual QUrl dockwidgetFilename() const;
81 virtual QUrl groupFilename() const;
82 virtual QUrl floatingWindowFilename() const;
83 virtual QUrl separatorFilename() const;
84
85 KDDockWidgets::Core::Action *createAction(Core::DockWidget *, const char *debugName) const override;
86
87 QIcon iconForButtonType(TitleBarButtonType type, qreal dpr) const override;
88 Core::ClassicIndicatorWindowViewInterface *
89 createClassicIndicatorWindow(Core::ClassicDropIndicatorOverlay *, Core::View *parent = nullptr) const override;
90 Core::View *createSegmentedDropIndicatorOverlayView(Core::SegmentedDropIndicatorOverlay *controller,
91 Core::View *parent) const override;
92
93 static ViewFactory *self();
94
95private:
96 Q_DISABLE_COPY(ViewFactory)
97};
98
99}
100
101}
102
103#endif
A factory class for allowing the user to customize some internal views. This is optional,...
The default ViewFactory for QtQuick frontend.
Class to abstract QAction, so code still works with QtQuick and Flutter.
typedef WindowFlags

© 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