diff options
author | Ken Moore <ken@ixsystems.com> | 2017-07-26 15:33:24 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-07-26 15:33:59 -0400 |
commit | 4cf4cfb1dd2fda4cd6d8114228e6827e6e4d4fd7 (patch) | |
tree | 9bffb5be21a2faf5260fa533175999f5347350cc /src-qt5/core/libLumina/RootWindow.h | |
parent | Update i18n-projects (diff) | |
download | lumina-4cf4cfb1dd2fda4cd6d8114228e6827e6e4d4fd7.tar.gz lumina-4cf4cfb1dd2fda4cd6d8114228e6827e6e4d4fd7.tar.bz2 lumina-4cf4cfb1dd2fda4cd6d8114228e6827e6e4d4fd7.zip |
Start adding the window arrangement framework to Lumina2.
Diffstat (limited to 'src-qt5/core/libLumina/RootWindow.h')
-rw-r--r-- | src-qt5/core/libLumina/RootWindow.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/RootWindow.h b/src-qt5/core/libLumina/RootWindow.h index a7792752..2fd76cea 100644 --- a/src-qt5/core/libLumina/RootWindow.h +++ b/src-qt5/core/libLumina/RootWindow.h @@ -18,10 +18,11 @@ #include <QTimer> #include <QApplication> #include <QPaintEvent> -//#include <QMdiArea> #include "RootSubWindow.h" -#include "NativeWindow.h" + +#include <NativeWindow.h> +#include <DesktopSettings.h> class RootWindow : public QWidget{ Q_OBJECT @@ -49,6 +50,7 @@ private: //Window Management QList<RootSubWindow*> WINDOWS; + void arrangeWindows(RootSubWindow *primary = 0, QString type = ""); public slots: void ResizeRoot(); @@ -58,6 +60,11 @@ public slots: void NewWindow(NativeWindow*); void CloseWindow(WId); //automatically connected for any new native window + //Window arrangement functions - defined in "RootWindow-mgmt.cpp" + void ArrangeWindows(WId *primary = 0, QString type = ""); + void TileWindows(WId *primary = 0, QString type = ""); + void CheckWindowPosition(WId, bool newwindow = false); //used after a "drop" to validate/snap/re-arrange window(s) as needed + private slots: protected: |