KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
flutter/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_flutter_H
13#define KDDOCKWIDGETS_ViewFactory_flutter_H
14#pragma once
15
16#include "core/ViewFactory.h"
17#include "QtCompat_p.h"
18
19// clazy:excludeall=ctor-missing-parent-argument
20
29namespace KDDockWidgets {
30
31class DropIndicatorOverlay;
32
33namespace Core {
34class MDILayoutWidget;
35class DropArea;
36class Separator;
37class TabBar;
38class SideBar;
39class FloatingWindow;
40class MainWindow;
41}
42
43namespace flutter {
44
45class IndicatorWindow;
46
50class DOCKS_EXPORT ViewFactory : public Core::ViewFactory
51{
52 Q_OBJECT
53public:
54 ViewFactory() = default;
55 ~ViewFactory() override;
56
57 Core::View *createDockWidget(const QString &uniqueName, DockWidgetOptions = {},
58 LayoutSaverOptions = {}, Qt::WindowFlags = {}) const override;
59
60 Core::View *createGroup(Core::Group *, Core::View *parent = nullptr) const override;
61 Core::View *createTitleBar(Core::TitleBar *, Core::View *parent) const override;
62 Core::View *createStack(Core::Stack *, Core::View *parent) const override;
63 Core::View *createTabBar(Core::TabBar *tabBar, Core::View *parent = nullptr) const override;
64 Core::View *createSeparator(Core::Separator *, Core::View *parent = nullptr) const override;
65 Core::View *createFloatingWindow(Core::FloatingWindow *,
66 Core::MainWindow *parent = nullptr,
67 Qt::WindowFlags windowFlags = {}) const override;
68 Core::View *createRubberBand(Core::View *parent) const override;
69 Core::View *createSideBar(Core::SideBar *, Core::View *parent) const override;
70 Core::View *createDropArea(Core::DropArea *, Core::View *parent) const override;
71 Core::View *createMDILayout(Core::MDILayout *, Core::View *parent) const override;
72 Icon iconForButtonType(TitleBarButtonType type, double dpr) const override;
73
74 Core::ClassicIndicatorWindowViewInterface *
75 createClassicIndicatorWindow(Core::ClassicDropIndicatorOverlay *, Core::View *parent = 0) const override;
76
77 virtual flutter::IndicatorWindow *
78 createClassicIndicatorWindow_flutter(Core::ClassicDropIndicatorOverlay *, Core::View *parent = 0) const;
79
80 Core::View *createSegmentedDropIndicatorOverlayView(Core::SegmentedDropIndicatorOverlay *controller,
81 Core::View *parent) const override;
82
83 KDDockWidgets::Core::Action *createAction(Core::DockWidget *, const char *debugName) const override;
84
85private:
86 KDDW_DELETE_COPY_CTOR(ViewFactory)
87};
88
89}
90
91}
92
93#endif
#define KDDW_DELETE_COPY_CTOR(NAME)
A factory class for allowing the user to customize some internal views. This is optional,...
The default ViewFactory for Flutter 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