20 #ifndef KD_MAINWINDOW_BASE_H
21 #define KD_MAINWINDOW_BASE_H
23 #include "docks_export.h"
38 class MDILayoutWidget;
41 class DropAreaWithCentralFrame;
51 #ifndef PYTHON_BINDINGS // Pyside bug: https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1327
58 Q_PROPERTY(
QStringList affinities READ affinities CONSTANT)
59 Q_PROPERTY(
QString uniqueName READ uniqueName CONSTANT)
60 Q_PROPERTY(KDDockWidgets::MainWindowOptions options READ options CONSTANT)
61 Q_PROPERTY(
bool isMDI READ isMDI CONSTANT)
62 Q_PROPERTY(
int overlayMargin READ overlayMargin WRITE setOverlayMargin NOTIFY overlayMarginChanged)
117 MainWindowOptions options()
const;
121 DropAreaWithCentralFrame *dropArea()
const;
125 MultiSplitter *multiSplitter()
const;
129 LayoutWidget *layoutWidget()
const;
133 MDILayoutWidget *mdiLayoutWidget()
const;
164 Q_INVOKABLE
void layoutEqually();
192 Q_INVOKABLE
void clearSideBarOverlay(
bool deleteFrame =
true);
195 Q_INVOKABLE KDDockWidgets::SideBar *
206 bool anySideBarIsVisible()
const;
217 Q_INVOKABLE
bool closeDockWidgets(
bool force =
false);
224 QRect windowGeometry()
const;
227 int overlayMargin()
const;
231 void setOverlayMargin(
int margin);
234 #ifdef KDDOCKWIDGETS_QTWIDGETS
241 void setUniqueName(
const QString &uniqueName);
264 friend class ::TestDocks;
266 bool deserialize(
const LayoutSaver::MainWindow &);
267 LayoutSaver::MainWindow serialize()
const;