| 1 |
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
#ifndef DWINDOWGROUPLEADER_H |
| 6 |
#define DWINDOWGROUPLEADER_H |
| 7 |
|
| 8 |
#include <dtkgui_global.h> |
| 9 |
|
| 10 |
#include <QScopedPointer> |
| 11 |
|
| 12 |
QT_BEGIN_NAMESPACE |
| 13 |
class QWindow; |
| 14 |
QT_END_NAMESPACE |
| 15 |
|
| 16 |
DGUI_BEGIN_NAMESPACE |
| 17 |
|
| 18 |
class DWindowGroupLeaderPrivate; |
| 19 |
class DWindowGroupLeader |
| 20 |
{ |
| 21 |
public: |
| 22 |
explicit DWindowGroupLeader(quint32 groupId = 0); |
| 23 |
~DWindowGroupLeader(); |
| 24 |
|
| 25 |
quint32 groupLeaderId() const; |
| 26 |
quint32 clientLeaderId() const; |
| 27 |
|
| 28 |
void addWindow(QWindow *window); |
| 29 |
void removeWindow(QWindow *window); |
| 30 |
|
| 31 |
private: |
| 32 |
QScopedPointer<DWindowGroupLeaderPrivate> d_ptr; |
| 33 |
|
| 34 |
Q_DECLARE_PRIVATE(DWindowGroupLeader) |
| 35 |
}; |
| 36 |
|
| 37 |
DGUI_END_NAMESPACE |
| 38 |
|
| 39 |
#endif // DWINDOWGROUPLEADER_H |