Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/flattentaskgroupsproxymodel.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 48 | public: | |||
---|---|---|---|---|---|
53 | 53 | | |||
54 | /** | 54 | /** | ||
55 | * Request activation of the task at the given index. Derived classes are | 55 | * Request activation of the task at the given index. Derived classes are | ||
56 | * free to interpret the meaning of "activate" themselves depending on | 56 | * free to interpret the meaning of "activate" themselves depending on | ||
57 | * the nature and state of the task, e.g. launch or raise a window task. | 57 | * the nature and state of the task, e.g. launch or raise a window task. | ||
58 | * | 58 | * | ||
59 | * @param index An index in this tasks model. | 59 | * @param index An index in this tasks model. | ||
60 | **/ | 60 | **/ | ||
61 | void requestActivate(const QModelIndex &index); | 61 | void requestActivate(const QModelIndex &index) override; | ||
62 | 62 | | |||
63 | /** | 63 | /** | ||
64 | * Request an additional instance of the application backing the task | 64 | * Request an additional instance of the application backing the task | ||
65 | * at the given index. | 65 | * at the given index. | ||
66 | * | 66 | * | ||
67 | * @param index An index in this tasks model. | 67 | * @param index An index in this tasks model. | ||
68 | **/ | 68 | **/ | ||
69 | void requestNewInstance(const QModelIndex &index); | 69 | void requestNewInstance(const QModelIndex &index) override; | ||
70 | 70 | | |||
71 | /** | 71 | /** | ||
72 | * Request the task at the given index be closed. | 72 | * Request the task at the given index be closed. | ||
73 | * | 73 | * | ||
74 | * @param index An index in this tasks model. | 74 | * @param index An index in this tasks model. | ||
75 | **/ | 75 | **/ | ||
76 | void requestClose(const QModelIndex &index); | 76 | void requestClose(const QModelIndex &index) override; | ||
77 | 77 | | |||
78 | /** | 78 | /** | ||
79 | * Request starting an interactive move for the task at the given index. | 79 | * Request starting an interactive move for the task at the given index. | ||
80 | * | 80 | * | ||
81 | * This is meant for tasks that have an associated window, and may be | 81 | * This is meant for tasks that have an associated window, and may be | ||
82 | * a no-op when there is no window. | 82 | * a no-op when there is no window. | ||
83 | * | 83 | * | ||
84 | * @param index An index in this tasks model. | 84 | * @param index An index in this tasks model. | ||
85 | **/ | 85 | **/ | ||
86 | void requestMove(const QModelIndex &index); | 86 | void requestMove(const QModelIndex &index) override; | ||
87 | 87 | | |||
88 | /** | 88 | /** | ||
89 | * Request starting an interactive resize for the task at the given index. | 89 | * Request starting an interactive resize for the task at the given index. | ||
90 | * | 90 | * | ||
91 | * This is meant for tasks that have an associated window, and may be a | 91 | * This is meant for tasks that have an associated window, and may be a | ||
92 | * no-op when there is no window. | 92 | * no-op when there is no window. | ||
93 | * | 93 | * | ||
94 | * @param index An index in this tasks model. | 94 | * @param index An index in this tasks model. | ||
95 | **/ | 95 | **/ | ||
96 | void requestResize(const QModelIndex &index); | 96 | void requestResize(const QModelIndex &index) override; | ||
97 | 97 | | |||
98 | /** | 98 | /** | ||
99 | * Request toggling the minimized state of the task at the given index. | 99 | * Request toggling the minimized state of the task at the given index. | ||
100 | * | 100 | * | ||
101 | * This is meant for tasks that have an associated window, and may be | 101 | * This is meant for tasks that have an associated window, and may be | ||
102 | * a no-op when there is no window. | 102 | * a no-op when there is no window. | ||
103 | * | 103 | * | ||
104 | * @param index An index in this tasks model. | 104 | * @param index An index in this tasks model. | ||
105 | **/ | 105 | **/ | ||
106 | void requestToggleMinimized(const QModelIndex &index); | 106 | void requestToggleMinimized(const QModelIndex &index) override; | ||
107 | 107 | | |||
108 | /** | 108 | /** | ||
109 | * Request toggling the maximized state of the task at the given index. | 109 | * Request toggling the maximized state of the task at the given index. | ||
110 | * | 110 | * | ||
111 | * This is meant for tasks that have an associated window, and may be | 111 | * This is meant for tasks that have an associated window, and may be | ||
112 | * a no-op when there is no window. | 112 | * a no-op when there is no window. | ||
113 | * | 113 | * | ||
114 | * @param index An index in this tasks model. | 114 | * @param index An index in this tasks model. | ||
115 | **/ | 115 | **/ | ||
116 | void requestToggleMaximized(const QModelIndex &index); | 116 | void requestToggleMaximized(const QModelIndex &index) override; | ||
117 | 117 | | |||
118 | /** | 118 | /** | ||
119 | * Request toggling the keep-above state of the task at the given index. | 119 | * Request toggling the keep-above state of the task at the given index. | ||
120 | * | 120 | * | ||
121 | * This is meant for tasks that have an associated window, and may be | 121 | * This is meant for tasks that have an associated window, and may be | ||
122 | * a no-op when there is no window. | 122 | * a no-op when there is no window. | ||
123 | * | 123 | * | ||
124 | * @param index An index in this tasks model. | 124 | * @param index An index in this tasks model. | ||
125 | **/ | 125 | **/ | ||
126 | void requestToggleKeepAbove(const QModelIndex &index); | 126 | void requestToggleKeepAbove(const QModelIndex &index) override; | ||
127 | 127 | | |||
128 | /** | 128 | /** | ||
129 | * Request toggling the keep-below state of the task at the given index. | 129 | * Request toggling the keep-below state of the task at the given index. | ||
130 | * | 130 | * | ||
131 | * This is meant for tasks that have an associated window, and may be | 131 | * This is meant for tasks that have an associated window, and may be | ||
132 | * a no-op when there is no window. | 132 | * a no-op when there is no window. | ||
133 | * | 133 | * | ||
134 | * @param index An index in this tasks model. | 134 | * @param index An index in this tasks model. | ||
135 | **/ | 135 | **/ | ||
136 | void requestToggleKeepBelow(const QModelIndex &index); | 136 | void requestToggleKeepBelow(const QModelIndex &index) override; | ||
137 | 137 | | |||
138 | /** | 138 | /** | ||
139 | * Request toggling the fullscreen state of the task at the given index. | 139 | * Request toggling the fullscreen state of the task at the given index. | ||
140 | * | 140 | * | ||
141 | * This is meant for tasks that have an associated window, and may be | 141 | * This is meant for tasks that have an associated window, and may be | ||
142 | * a no-op when there is no window. | 142 | * a no-op when there is no window. | ||
143 | * | 143 | * | ||
144 | * @param index An index in this tasks model. | 144 | * @param index An index in this tasks model. | ||
145 | **/ | 145 | **/ | ||
146 | void requestToggleFullScreen(const QModelIndex &index); | 146 | void requestToggleFullScreen(const QModelIndex &index) override; | ||
147 | 147 | | |||
148 | /** | 148 | /** | ||
149 | * Request toggling the shaded state of the task at the given index. | 149 | * Request toggling the shaded state of the task at the given index. | ||
150 | * | 150 | * | ||
151 | * This is meant for tasks that have an associated window, and may be | 151 | * This is meant for tasks that have an associated window, and may be | ||
152 | * a no-op when there is no window. | 152 | * a no-op when there is no window. | ||
153 | * | 153 | * | ||
154 | * @param index An index in this tasks model. | 154 | * @param index An index in this tasks model. | ||
155 | **/ | 155 | **/ | ||
156 | void requestToggleShaded(const QModelIndex &index); | 156 | void requestToggleShaded(const QModelIndex &index) override; | ||
157 | 157 | | |||
158 | /** | 158 | /** | ||
159 | * Request moving the task at the given index to the specified virtual | 159 | * Request moving the task at the given index to the specified virtual | ||
160 | * desktop. | 160 | * desktop. | ||
161 | * | 161 | * | ||
162 | * This is meant for tasks that have an associated window, and may be | 162 | * This is meant for tasks that have an associated window, and may be | ||
163 | * a no-op when there is no window. | 163 | * a no-op when there is no window. | ||
164 | * | 164 | * | ||
165 | * @param index An index in this tasks model. | 165 | * @param index An index in this tasks model. | ||
166 | * @param desktop A virtual desktop number. | 166 | * @param desktop A virtual desktop number. | ||
167 | **/ | 167 | **/ | ||
168 | void requestVirtualDesktop(const QModelIndex &index, qint32 desktop); | 168 | void requestVirtualDesktop(const QModelIndex &index, qint32 desktop) override; | ||
169 | 169 | | |||
170 | /** | 170 | /** | ||
171 | * Request informing the window manager of new geometry for a visual | 171 | * Request informing the window manager of new geometry for a visual | ||
172 | * delegate for the task at the given index. The geometry should be in | 172 | * delegate for the task at the given index. The geometry should be in | ||
173 | * screen coordinates. | 173 | * screen coordinates. | ||
174 | * | 174 | * | ||
175 | * @param index An index in this tasks model. | 175 | * @param index An index in this tasks model. | ||
176 | * @param geometry Visual delegate geometry in screen coordinates. | 176 | * @param geometry Visual delegate geometry in screen coordinates. | ||
177 | * @param delegate The delegate. Implementations are on their own with | 177 | * @param delegate The delegate. Implementations are on their own with | ||
178 | * regard to extracting information from this, and should take care to | 178 | * regard to extracting information from this, and should take care to | ||
179 | * reject invalid objects. | 179 | * reject invalid objects. | ||
180 | **/ | 180 | **/ | ||
181 | void requestPublishDelegateGeometry(const QModelIndex &index, const QRect &geometry, | 181 | void requestPublishDelegateGeometry(const QModelIndex &index, const QRect &geometry, | ||
182 | QObject *delegate = nullptr); | 182 | QObject *delegate = nullptr) override; | ||
183 | 183 | | |||
184 | private: | 184 | private: | ||
185 | class Private; | 185 | class Private; | ||
186 | QScopedPointer<Private> d; | 186 | QScopedPointer<Private> d; | ||
187 | }; | 187 | }; | ||
188 | 188 | | |||
189 | } | 189 | } | ||
190 | 190 | | |||
191 | #endif | 191 | #endif |