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)
116 MainWindowOptions options()
const;
120 DropAreaWithCentralFrame *dropArea()
const;
124 MultiSplitter *multiSplitter()
const;
128 LayoutWidget *layoutWidget()
const;
132 MDILayoutWidget *mdiLayoutWidget()
const;
163 Q_INVOKABLE
void layoutEqually();
191 Q_INVOKABLE
void clearSideBarOverlay(
bool deleteFrame =
true);
194 Q_INVOKABLE KDDockWidgets::SideBar *
205 bool anySideBarIsVisible()
const;
216 Q_INVOKABLE
bool closeDockWidgets(
bool force =
false);
223 QRect windowGeometry()
const;
226 void setUniqueName(
const QString &uniqueName);
247 friend class ::TestDocks;
249 bool deserialize(
const LayoutSaver::MainWindow &);
250 LayoutSaver::MainWindow serialize()
const;