aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/RootSubWindow.h
diff options
context:
space:
mode:
authorSasongko Bawono <sasongko262@gmail.com>2017-02-26 08:33:25 +0700
committerSasongko Bawono <sasongko262@gmail.com>2017-02-26 08:33:25 +0700
commiteb7d5a1270d17ecd16912008d8587cc543cafc77 (patch)
tree64be065a2e3fe58933bb5be6f30cc76a1af33f86 /src-qt5/core/libLumina/RootSubWindow.h
parent modified DEPENDENCIES for Slackware (diff)
parentMerge remote-tracking branch 'origin/master' (diff)
downloadlumina-eb7d5a1270d17ecd16912008d8587cc543cafc77.tar.gz
lumina-eb7d5a1270d17ecd16912008d8587cc543cafc77.tar.bz2
lumina-eb7d5a1270d17ecd16912008d8587cc543cafc77.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src-qt5/core/libLumina/RootSubWindow.h')
-rw-r--r--src-qt5/core/libLumina/RootSubWindow.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/RootSubWindow.h b/src-qt5/core/libLumina/RootSubWindow.h
new file mode 100644
index 00000000..c56f3c96
--- /dev/null
+++ b/src-qt5/core/libLumina/RootSubWindow.h
@@ -0,0 +1,51 @@
+//===========================================
+// Lumina Desktop source code
+// Copyright (c) 2017, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+// This class embeds a native window
+// within the RootWindow area
+//===========================================
+#ifndef _LUMINA_ROOT_WINDOW_SUB_WINDOW_H
+#define _LUMINA_ROOT_WINDOW_SUB_WINDOW_H
+
+#include <QMdiArea>
+#include <QMdiSubWindow>
+#include <QWindow>
+#include <QWidget>
+#include <QCloseEvent>
+
+#include <NativeWindow.h>
+
+class RootSubWindow : public QMdiSubWindow{
+ Q_OBJECT
+public:
+ RootSubWindow(QMdiArea *root, NativeWindow *win);
+ ~RootSubWindow();
+
+ WId id();
+
+private:
+ NativeWindow *WIN;
+ QWidget *WinWidget;
+ bool closing;
+
+ void LoadProperties( QList< NativeWindow::Property> list);
+
+public slots:
+ void clientClosed();
+
+private slots:
+ void clientHidden();
+ void clientShown();
+ void aboutToActivate();
+ void propertyChanged(NativeWindow::Property, QVariant);
+
+
+protected:
+ void closeEvent(QCloseEvent*);
+
+};
+
+#endif
bgstack15