Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/xwindowtasksmodel.h
Show All 28 Lines | |||||
29 | #include <qwindowdefs.h> | 29 | #include <qwindowdefs.h> | ||
30 | 30 | | |||
31 | #include <netwm.h> | 31 | #include <netwm.h> | ||
32 | 32 | | |||
33 | namespace TaskManager | 33 | namespace TaskManager | ||
34 | { | 34 | { | ||
35 | 35 | | |||
36 | /** | 36 | /** | ||
37 | * @short A tasks model for X Windows windows. | 37 | * @short A tasks model for X Window System windows. | ||
38 | * | 38 | * | ||
39 | * This model presents tasks sourced from window data on the X Windows | 39 | * This model presents tasks sourced from window data on the X Windows | ||
40 | * server the host process is connected to. | 40 | * server the host process is connected to. | ||
41 | * | 41 | * | ||
42 | * For the purposes of presentation in a user interface and efficiency, | 42 | * For the purposes of presentation in a user interface and efficiency, | ||
43 | * certain types of windows (e.g. utility windows, or windows that are | 43 | * certain types of windows (e.g. utility windows, or windows that are | ||
44 | * transients for an otherwise-included window) are omitted from the | 44 | * transients for an otherwise-included window) are omitted from the | ||
45 | * model. | 45 | * model. | ||
46 | * | 46 | * | ||
47 | * @see WindowTasksModel | ||||
48 | * | ||||
47 | * @author Eike Hein <hein@kde.org> | 49 | * @author Eike Hein <hein@kde.org> | ||
48 | */ | 50 | */ | ||
49 | 51 | | |||
50 | class TASKMANAGER_EXPORT XWindowTasksModel : public AbstractWindowTasksModel | 52 | class TASKMANAGER_EXPORT XWindowTasksModel : public AbstractWindowTasksModel | ||
51 | { | 53 | { | ||
52 | Q_OBJECT | 54 | Q_OBJECT | ||
53 | 55 | | |||
54 | public: | 56 | public: | ||
▲ Show 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | |||||
169 | /** | 171 | /** | ||
170 | * Request toggling the shaded state of the task at the given index. | 172 | * Request toggling the shaded state of the task at the given index. | ||
171 | * | 173 | * | ||
172 | * @param index An index in this window tasks model. | 174 | * @param index An index in this window tasks model. | ||
173 | **/ | 175 | **/ | ||
174 | void requestToggleShaded(const QModelIndex &index) override; | 176 | void requestToggleShaded(const QModelIndex &index) override; | ||
175 | 177 | | |||
176 | /** | 178 | /** | ||
177 | * Request moving the window at the given index to the specified virtual | 179 | * Request entering the window at the given index on the specified virtual desktop. | ||
178 | * desktop. | 180 | * For compatibility across windowing systems the library supports, the desktops | ||
181 | * parameter is a list; however, on X11 a window can only be on one or all virtual | ||||
182 | * desktops. Therefore, only the first list entry is actually used. | ||||
179 | * | 183 | * | ||
180 | * If the specified virtual desktop is 0, IsOnAllVirtualDesktops is | 184 | * An empty list has a special meaning: The window is entered on all virtual desktops | ||
181 | * toggled instead. | 185 | * in the session. | ||
182 | * | 186 | * | ||
183 | * If the specified desktop number exceeds the number of virtual | 187 | * The id 0 has a special meaning: The window is entered on all virtual desktops in | ||
184 | * desktops in the session, a new desktop is created before moving | 188 | * the session. | ||
185 | * the window. | | |||
186 | * | 189 | * | ||
187 | * FIXME: Desktop logic should maybe move into proxy. | 190 | * @param index An index in this window tasks model. | ||
191 | * @param desktops A list of virtual desktop ids (uint). | ||||
192 | **/ | ||||
193 | void requestVirtualDesktops(const QModelIndex &index, const QVariantList &desktops) override; | ||||
194 | | ||||
195 | /** | ||||
196 | * Request entering the window at the given index on a new virtual desktop, | ||||
197 | * which is created in response to this request. | ||||
188 | * | 198 | * | ||
189 | * @param index An index in this window tasks model. | 199 | * @param index An index in this window tasks model. | ||
190 | * @param desktop A virtual desktop number. | | |||
191 | **/ | 200 | **/ | ||
192 | void requestVirtualDesktop(const QModelIndex &index, qint32 desktop) override; | 201 | void requestNewVirtualDesktop(const QModelIndex &index) override; | ||
193 | 202 | | |||
194 | /** | 203 | /** | ||
195 | * Request moving the task at the given index to the specified activities. | 204 | * Request moving the task at the given index to the specified activities. | ||
196 | * | 205 | * | ||
197 | * This is meant for tasks that have an associated window, and may be | 206 | * This is meant for tasks that have an associated window, and may be | ||
198 | * a no-op when there is no window. | 207 | * a no-op when there is no window. | ||
199 | * * | 208 | * * | ||
200 | * @param index An index in this tasks model. | 209 | * @param index An index in this tasks model. | ||
Show All 39 Lines |