blob: c56f3c96e12cd5eeafb2db89fc25c793330f4d21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
|