 |
KDDockWidgets API Documentation
1.4
|
Go to the documentation of this file.
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)
101 MainWindowOptions options()
const;
105 DropAreaWithCentralFrame *dropArea()
const;
109 MultiSplitter *multiSplitter()
const;
113 LayoutWidget *layoutWidget()
const;
117 MDILayoutWidget *mdiLayoutWidget()
const;
148 Q_INVOKABLE
void layoutEqually();
176 Q_INVOKABLE
void clearSideBarOverlay(
bool deleteFrame =
true);
179 Q_INVOKABLE KDDockWidgets::SideBar *
190 bool anySideBarIsVisible()
const;
201 Q_INVOKABLE
bool closeDockWidgets(
bool force =
false);
208 QRect windowGeometry()
const;
211 void setUniqueName(
const QString &uniqueName);
235 friend class ::TestDocks;
237 bool deserialize(
const LayoutSaver::MainWindow &);
238 LayoutSaver::MainWindow serialize()
const;
Class to save and restore dockwidget layouts.
void frameCountChanged(int)
emitted when the number of docked frames changes Note that we're using the "Frame" nomenculature inst...
virtual QMargins centerWidgetMargins() const =0
virtual QRect centralAreaGeometry() const
virtual SideBar * sideBar(SideBarLocation) const =0
QVector< MainWindowBase * > List
void centralWidgetResized(QSize oldSize, QSize newSize)
emitted when the MainWindow::centralWidget() changes size
The MainWindow base-class. MainWindow and MainWindowBase are only split in two so we can share some c...