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 | { | ||||
28 | | ||||
29 | } | ||||
30 | | ||||
31 | bool DummyDecoratedClient::isActive() const | ||||
32 | { | ||||
33 | return true; | ||||
34 | } | ||||
35 | | ||||
36 | QString DummyDecoratedClient::caption() const | ||||
37 | { | ||||
38 | return {}; | ||||
39 | } | ||||
40 | | ||||
41 | int DummyDecoratedClient::desktop() const | ||||
42 | { | ||||
43 | return 0; | ||||
44 | } | ||||
45 | bool DummyDecoratedClient::isOnAllDesktops() const | ||||
46 | { | ||||
47 | return true; | ||||
48 | } | ||||
49 | bool DummyDecoratedClient::isShaded() const | ||||
50 | { | ||||
51 | return true; | ||||
52 | } | ||||
53 | QIcon DummyDecoratedClient::icon() const | ||||
54 | { | ||||
55 | return {}; | ||||
56 | } | ||||
57 | bool DummyDecoratedClient::isMaximized() const | ||||
58 | { | ||||
59 | return true; | ||||
60 | } | ||||
61 | bool DummyDecoratedClient::isMaximizedHorizontally() const | ||||
62 | { | ||||
63 | return true; | ||||
64 | } | ||||
65 | bool DummyDecoratedClient::isMaximizedVertically() const | ||||
66 | { | ||||
67 | return true; | ||||
68 | } | ||||
69 | bool DummyDecoratedClient::isKeepAbove() const | ||||
70 | { | ||||
71 | return true; | ||||
72 | } | ||||
73 | bool DummyDecoratedClient::isKeepBelow() const | ||||
74 | { | ||||
75 | return true; | ||||
76 | } | ||||
77 | bool DummyDecoratedClient::isCloseable() const | ||||
78 | { | ||||
79 | return true; | ||||
80 | } | ||||
81 | bool DummyDecoratedClient::isMaximizeable() const | ||||
82 | { | ||||
83 | return true; | ||||
84 | } | ||||
85 | bool DummyDecoratedClient::isMinimizeable() const | ||||
86 | { | ||||
87 | return true; | ||||
88 | } | ||||
89 | bool DummyDecoratedClient::providesContextHelp() const | ||||
90 | { | ||||
91 | return true; | ||||
92 | } | ||||
93 | bool DummyDecoratedClient::isModal() const | ||||
94 | { | ||||
95 | return true; | ||||
96 | } | ||||
97 | bool DummyDecoratedClient::isShadeable() const | ||||
98 | { | ||||
99 | return true; | ||||
100 | } | ||||
101 | bool DummyDecoratedClient::isMoveable() const | ||||
102 | { | ||||
103 | return true; | ||||
104 | } | ||||
105 | bool DummyDecoratedClient::isResizeable() const | ||||
106 | { | ||||
107 | return true; | ||||
108 | } | ||||
109 | WId DummyDecoratedClient::windowId() const | ||||
110 | { | ||||
111 | return {}; | ||||
112 | } | ||||
113 | WId DummyDecoratedClient::decorationId() const | ||||
114 | { | ||||
115 | return {}; | ||||
116 | } | ||||
117 | int DummyDecoratedClient::width() const | ||||
118 | { | ||||
119 | return {}; | ||||
120 | } | ||||
121 | int DummyDecoratedClient::height() const | ||||
122 | { | ||||
123 | return {}; | ||||
124 | } | ||||
125 | QSize DummyDecoratedClient::size() const | ||||
126 | { | ||||
127 | return {}; | ||||
128 | } | ||||
129 | QPalette DummyDecoratedClient::palette() const | ||||
130 | { | ||||
131 | return {}; | ||||
132 | } | ||||
133 | Qt::Edges DummyDecoratedClient::adjacentScreenEdges() const | ||||
134 | { | ||||
135 | return {}; | ||||
136 | } | ||||
137 | void DummyDecoratedClient::requestShowToolTip(const QString &text) | ||||
138 | { | ||||
139 | Q_UNUSED(text) | ||||
140 | } | ||||
141 | void DummyDecoratedClient::requestHideToolTip() | ||||
142 | { } | ||||
143 | void DummyDecoratedClient::requestClose() | ||||
144 | { | ||||
145 | } | ||||
146 | void DummyDecoratedClient::requestToggleMaximization(Qt::MouseButtons buttons) | ||||
147 | { | ||||
148 | Q_UNUSED(buttons) | ||||
149 | } | ||||
150 | void DummyDecoratedClient::requestMinimize() | ||||
151 | { | ||||
152 | } | ||||
153 | void DummyDecoratedClient::requestContextHelp() | ||||
154 | { | ||||
155 | } | ||||
156 | void DummyDecoratedClient::requestToggleOnAllDesktops() | ||||
157 | { | ||||
158 | } | ||||
159 | void DummyDecoratedClient::requestToggleShade() | ||||
160 | { | ||||
161 | } | ||||
162 | void DummyDecoratedClient::requestToggleKeepAbove() | ||||
163 | { | ||||
164 | } | ||||
165 | void DummyDecoratedClient::requestToggleKeepBelow() | ||||
166 | { | ||||
167 | } | ||||
168 | void DummyDecoratedClient::requestShowWindowMenu() | ||||
169 | { | ||||
170 | } | ||||
171 | | ||||
172 | } |