Changeset View
Changeset View
Standalone View
Standalone View
kded/kwin_bridge/dummydecoratedclient.cpp
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright 2020 Mikhail Zolotukhin <zomial@protonmail.com> | ||||
3 | * | ||||
4 | * This program is free software; you can redistribute it and/or | ||||
5 | * modify it under the terms of the GNU General Public License as | ||||
6 | * published by the Free Software Foundation; either version 2 of | ||||
7 | * the License or (at your option) version 3 or any later version | ||||
8 | * accepted by the membership of KDE e.V. (or its successor approved | ||||
9 | * by the membership of KDE e.V.), which shall act as a proxy | ||||
10 | * defined in Section 14 of version 3 of the license. | ||||
11 | * | ||||
12 | * This program is distributed in the hope that it will be useful, | ||||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
15 | * GNU General Public License for more details. | ||||
16 | * | ||||
17 | * You should have received a copy of the GNU General Public License | ||||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
19 | */ | ||||
20 | | ||||
21 | #include "dummydecoratedclient.h" | ||||
22 | | ||||
23 | namespace KDecoration2 { | ||||
24 | | ||||
25 | DummyDecoratedClient::DummyDecoratedClient(DecoratedClient *client, Decoration *decoration) | ||||
26 | : DecoratedClientPrivate(client, decoration) | ||||
27 | , m_pallete(QStringLiteral("kdeglobals")) | ||||
28 | { | ||||
29 | | ||||
30 | } | ||||
31 | | ||||
32 | bool DummyDecoratedClient::isActive() const | ||||
33 | { | ||||
34 | return true; | ||||
35 | } | ||||
36 | | ||||
37 | QString DummyDecoratedClient::caption() const | ||||
38 | { | ||||
39 | return {}; | ||||
40 | } | ||||
41 | | ||||
42 | int DummyDecoratedClient::desktop() const | ||||
43 | { | ||||
44 | return 0; | ||||
45 | } | ||||
46 | bool DummyDecoratedClient::isOnAllDesktops() const | ||||
47 | { | ||||
48 | return true; | ||||
49 | } | ||||
50 | bool DummyDecoratedClient::isShaded() const | ||||
51 | { | ||||
52 | return true; | ||||
53 | } | ||||
54 | QIcon DummyDecoratedClient::icon() const | ||||
55 | { | ||||
56 | return {}; | ||||
57 | } | ||||
58 | bool DummyDecoratedClient::isMaximized() const | ||||
59 | { | ||||
60 | return true; | ||||
61 | } | ||||
62 | bool DummyDecoratedClient::isMaximizedHorizontally() const | ||||
63 | { | ||||
64 | return true; | ||||
65 | } | ||||
66 | bool DummyDecoratedClient::isMaximizedVertically() const | ||||
67 | { | ||||
68 | return true; | ||||
69 | } | ||||
70 | bool DummyDecoratedClient::isKeepAbove() const | ||||
71 | { | ||||
72 | return true; | ||||
73 | } | ||||
74 | bool DummyDecoratedClient::isKeepBelow() const | ||||
75 | { | ||||
76 | return true; | ||||
77 | } | ||||
78 | bool DummyDecoratedClient::isCloseable() const | ||||
79 | { | ||||
80 | return true; | ||||
81 | } | ||||
82 | bool DummyDecoratedClient::isMaximizeable() const | ||||
83 | { | ||||
84 | return true; | ||||
85 | } | ||||
86 | bool DummyDecoratedClient::isMinimizeable() const | ||||
87 | { | ||||
88 | return true; | ||||
89 | } | ||||
90 | bool DummyDecoratedClient::providesContextHelp() const | ||||
91 | { | ||||
92 | return true; | ||||
93 | } | ||||
94 | bool DummyDecoratedClient::isModal() const | ||||
95 | { | ||||
96 | return true; | ||||
97 | } | ||||
98 | bool DummyDecoratedClient::isShadeable() const | ||||
99 | { | ||||
100 | return true; | ||||
101 | } | ||||
102 | bool DummyDecoratedClient::isMoveable() const | ||||
103 | { | ||||
104 | return true; | ||||
105 | } | ||||
106 | bool DummyDecoratedClient::isResizeable() const | ||||
107 | { | ||||
108 | return true; | ||||
109 | } | ||||
110 | WId DummyDecoratedClient::windowId() const | ||||
111 | { | ||||
112 | return {}; | ||||
113 | } | ||||
114 | WId DummyDecoratedClient::decorationId() const | ||||
115 | { | ||||
116 | return {}; | ||||
117 | } | ||||
118 | int DummyDecoratedClient::width() const | ||||
119 | { | ||||
120 | return {}; | ||||
121 | } | ||||
122 | int DummyDecoratedClient::height() const | ||||
123 | { | ||||
124 | return {}; | ||||
125 | } | ||||
126 | QSize DummyDecoratedClient::size() const | ||||
127 | { | ||||
128 | return {}; | ||||
129 | } | ||||
130 | | ||||
131 | QPalette DummyDecoratedClient::palette() const | ||||
132 | { | ||||
133 | return m_pallete.palette(); | ||||
134 | } | ||||
135 | | ||||
136 | QColor DummyDecoratedClient::color(ColorGroup group, ColorRole role) const | ||||
137 | { | ||||
138 | return m_pallete.color(group, role); | ||||
139 | } | ||||
140 | | ||||
141 | Qt::Edges DummyDecoratedClient::adjacentScreenEdges() const | ||||
142 | { | ||||
143 | return {}; | ||||
144 | } | ||||
145 | void DummyDecoratedClient::requestShowToolTip(const QString &text) | ||||
146 | { | ||||
147 | Q_UNUSED(text) | ||||
148 | } | ||||
149 | void DummyDecoratedClient::requestHideToolTip() | ||||
150 | { } | ||||
151 | void DummyDecoratedClient::requestClose() | ||||
152 | { | ||||
153 | } | ||||
154 | void DummyDecoratedClient::requestToggleMaximization(Qt::MouseButtons buttons) | ||||
155 | { | ||||
156 | Q_UNUSED(buttons) | ||||
157 | } | ||||
158 | void DummyDecoratedClient::requestMinimize() | ||||
159 | { | ||||
160 | } | ||||
161 | void DummyDecoratedClient::requestContextHelp() | ||||
162 | { | ||||
163 | } | ||||
164 | void DummyDecoratedClient::requestToggleOnAllDesktops() | ||||
165 | { | ||||
166 | } | ||||
167 | void DummyDecoratedClient::requestToggleShade() | ||||
168 | { | ||||
169 | } | ||||
170 | void DummyDecoratedClient::requestToggleKeepAbove() | ||||
171 | { | ||||
172 | } | ||||
173 | void DummyDecoratedClient::requestToggleKeepBelow() | ||||
174 | { | ||||
175 | } | ||||
176 | void DummyDecoratedClient::requestShowWindowMenu() | ||||
177 | { | ||||
178 | } | ||||
179 | | ||||
180 | } |