|
KDDockWidgets API Documentation
1.5
|
Go to the documentation of this file.
15 #include "private/Frame_p.h"
16 #include "private/TitleBar_p.h"
17 #include "private/multisplitter/Separator_p.h"
18 #include "private/FloatingWindow_p.h"
19 #include "private/indicators/ClassicIndicators_p.h"
20 #include "private/indicators/NullIndicators_p.h"
21 #include "private/Utils_p.h"
22 #include "private/TabWidget_p.h"
24 #ifdef KDDOCKWIDGETS_QTWIDGETS
25 #include "private/widgets/FrameWidget_p.h"
26 #include "private/widgets/TitleBarWidget_p.h"
27 #include "private/widgets/TabBarWidget_p.h"
28 #include "private/widgets/SideBarWidget_p.h"
29 #include "private/widgets/TabWidgetWidget_p.h"
31 #include "private/widgets/FloatingWindowWidget_p.h"
32 #include "private/indicators/SegmentedIndicators_p.h"
34 #include <QRubberBand>
35 #include <QToolButton>
38 #include "private/quick/FrameQuick_p.h"
39 #include "private/quick/TitleBarQuick_p.h"
40 #include "private/quick/TabWidgetQuick_p.h"
41 #include "private/quick/TabBarQuick_p.h"
42 #include "private/quick/FloatingWindowQuick_p.h"
57 #ifdef KDDOCKWIDGETS_QTWIDGETS
60 return new FrameWidget(
parent, options);
65 return new TitleBarWidget(frame);
70 return new TitleBarWidget(fw);
75 return new TabBarWidget(
parent);
80 return new TabWidgetWidget(
parent);
95 return new FloatingWindowWidget(frame, suggestedGeometry,
parent);
102 return new SegmentedIndicators(dropArea);
106 case DropIndicatorType::Classic:
107 return new ClassicIndicators(dropArea);
108 case DropIndicatorType::Segmented:
109 return new SegmentedIndicators(dropArea);
111 return new NullIndicators(dropArea);
114 return new ClassicIndicators(dropArea);
124 return new SideBarWidget(loc,
parent);
130 qWarning() << Q_FUNC_INFO <<
"Parent not provided";
134 auto button =
new Button(
parent);
144 return new FrameQuick(
parent, options);
149 return new TitleBarQuick(frame);
154 return new TitleBarQuick(fw);
164 return new FloatingWindowQuick(
parent);
169 return new FloatingWindowQuick(frame, suggestedGeometry,
parent);
175 case DropIndicatorType::Classic:
176 return new ClassicIndicators(dropArea);
177 case DropIndicatorType::Segmented:
178 qWarning() <<
"Segmented indicators not supported for QtQuick yet";
179 return new NullIndicators(dropArea);
181 return new NullIndicators(dropArea);
184 return new ClassicIndicators(dropArea);
189 return new TabBarQuick(
parent);
194 return new TabWidgetQuick(
parent);
212 qWarning() << Q_FUNC_INFO <<
"Not implemented yet";
216 QUrl DefaultWidgetFactory::titleBarFilename()
const
218 return QUrl(QStringLiteral(
"qrc:/kddockwidgets/private/quick/qml/TitleBar.qml"));
221 QUrl DefaultWidgetFactory::dockwidgetFilename()
const
223 return QUrl(QStringLiteral(
"qrc:/kddockwidgets/private/quick/qml/DockWidget.qml"));
226 QUrl DefaultWidgetFactory::frameFilename()
const
228 return QUrl(QStringLiteral(
"qrc:/kddockwidgets/private/quick/qml/Frame.qml"));
231 QUrl DefaultWidgetFactory::floatingWindowFilename()
const
233 return QUrl(QStringLiteral(
"qrc:/kddockwidgets/private/quick/qml/FloatingWindow.qml"));
243 case TitleBarButtonType::AutoHide:
244 iconName = QStringLiteral(
"auto-hide");
247 iconName = QStringLiteral(
"unauto-hide");
252 case TitleBarButtonType::Minimize:
255 case TitleBarButtonType::Maximize:
260 iconName = QStringLiteral(
"dock-float");
263 iconName = QStringLiteral(
"dock-float");
271 if (!scalingFactorIsSupported(dpr))
277 if (scalingFactorIsSupported(1.5))
void addFile(const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state)
bool isEmpty() const const
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...
QObject * parent() const const