Changeset View
Changeset View
Standalone View
Standalone View
useractions.h
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | |||||
116 | private Q_SLOTS: | 116 | private Q_SLOTS: | ||
117 | /** | 117 | /** | ||
118 | * The menu will become visible soon. | 118 | * The menu will become visible soon. | ||
119 | * | 119 | * | ||
120 | * Adjust the items according to the respective Client. | 120 | * Adjust the items according to the respective Client. | ||
121 | */ | 121 | */ | ||
122 | void menuAboutToShow(); | 122 | void menuAboutToShow(); | ||
123 | /** | 123 | /** | ||
124 | * Adjusts the add to tab group menu to the current value of the Client. | | |||
125 | */ | | |||
126 | void rebuildTabGroupPopup(); | | |||
127 | /** | | |||
128 | * Adjusts the switch to tab menu to the current values of the Client. | | |||
129 | */ | | |||
130 | void rebuildTabListPopup(); | | |||
131 | /** | | |||
132 | * Adds the Client as tab to the Client identified by the @p action. | | |||
133 | * | | |||
134 | * @param action The invoked action containing the Client to which the active Client should be tabbed. | | |||
135 | */ | | |||
136 | void entabPopupClient(QAction *action); | | |||
137 | /** | | |||
138 | * Activates the selected tabbed Client. | | |||
139 | * | | |||
140 | * @param action The invoked action containing the tabbed Client which should be activated. | | |||
141 | */ | | |||
142 | void selectPopupClientTab(QAction *action); | | |||
143 | /** | | |||
144 | * Adjusts the desktop popup to the current values and the location of | 124 | * Adjusts the desktop popup to the current values and the location of | ||
145 | * the Client. | 125 | * the Client. | ||
146 | */ | 126 | */ | ||
147 | void desktopPopupAboutToShow(); | 127 | void desktopPopupAboutToShow(); | ||
148 | /** | 128 | /** | ||
149 | * Adjusts the multipleDesktopsMenu popup to the current values and the location of | 129 | * Adjusts the multipleDesktopsMenu popup to the current values and the location of | ||
150 | * the Client, Wayland only. | 130 | * the Client, Wayland only. | ||
151 | */ | 131 | */ | ||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 174 | private: | |||
206 | void initScreenPopup(); | 186 | void initScreenPopup(); | ||
207 | /** | 187 | /** | ||
208 | * Creates activity popup. | 188 | * Creates activity popup. | ||
209 | * I'm going with checkable ones instead of "copy to" and "move to" menus; I *think* it's an easier way. | 189 | * I'm going with checkable ones instead of "copy to" and "move to" menus; I *think* it's an easier way. | ||
210 | * Oh, and an 'all' option too of course | 190 | * Oh, and an 'all' option too of course | ||
211 | */ | 191 | */ | ||
212 | void initActivityPopup(); | 192 | void initActivityPopup(); | ||
213 | /** | 193 | /** | ||
214 | * Creates the Window Tabbing related menus. | | |||
215 | */ | | |||
216 | void initTabbingPopups(); | | |||
217 | /** | | |||
218 | * Shows a helper Dialog to inform the user how to get back in case he triggered | 194 | * Shows a helper Dialog to inform the user how to get back in case he triggered | ||
219 | * an action which hides the window decoration (e.g. NoBorder or Fullscreen). | 195 | * an action which hides the window decoration (e.g. NoBorder or Fullscreen). | ||
220 | * @param message The message type to be shown | 196 | * @param message The message type to be shown | ||
221 | * @param c The Client for which the dialog should be shown. | 197 | * @param c The Client for which the dialog should be shown. | ||
222 | */ | 198 | */ | ||
223 | void helperDialog(const QString &message, AbstractClient *c); | 199 | void helperDialog(const QString &message, AbstractClient *c); | ||
224 | /** | 200 | /** | ||
225 | * The actual main context menu which is show when the UserActionsMenu is invoked. | 201 | * The actual main context menu which is show when the UserActionsMenu is invoked. | ||
Show All 11 Lines | |||||
237 | * The move to screen sub menu. | 213 | * The move to screen sub menu. | ||
238 | */ | 214 | */ | ||
239 | QMenu* m_screenMenu; | 215 | QMenu* m_screenMenu; | ||
240 | /** | 216 | /** | ||
241 | * The activities sub menu. | 217 | * The activities sub menu. | ||
242 | */ | 218 | */ | ||
243 | QMenu* m_activityMenu; | 219 | QMenu* m_activityMenu; | ||
244 | /** | 220 | /** | ||
245 | * Menu to add the group to other group. | | |||
246 | */ | | |||
247 | QMenu* m_addTabsMenu; | | |||
248 | /** | | |||
249 | * Menu to change tab. | | |||
250 | */ | | |||
251 | QMenu* m_switchToTabMenu; | | |||
252 | /** | | |||
253 | * Menu for further entries added by scripts. | 221 | * Menu for further entries added by scripts. | ||
254 | */ | 222 | */ | ||
255 | QMenu* m_scriptsMenu; | 223 | QMenu* m_scriptsMenu; | ||
256 | QAction* m_resizeOperation; | 224 | QAction* m_resizeOperation; | ||
257 | QAction* m_moveOperation; | 225 | QAction* m_moveOperation; | ||
258 | QAction* m_maximizeOperation; | 226 | QAction* m_maximizeOperation; | ||
259 | QAction* m_shadeOperation; | 227 | QAction* m_shadeOperation; | ||
260 | QAction* m_keepAboveOperation; | 228 | QAction* m_keepAboveOperation; | ||
261 | QAction* m_keepBelowOperation; | 229 | QAction* m_keepBelowOperation; | ||
262 | QAction* m_fullScreenOperation; | 230 | QAction* m_fullScreenOperation; | ||
263 | QAction* m_noBorderOperation; | 231 | QAction* m_noBorderOperation; | ||
264 | QAction* m_minimizeOperation; | 232 | QAction* m_minimizeOperation; | ||
265 | QAction* m_closeOperation; | 233 | QAction* m_closeOperation; | ||
266 | QAction* m_shortcutOperation; | 234 | QAction* m_shortcutOperation; | ||
267 | /** | 235 | /** | ||
268 | * Remove client from group. | | |||
269 | */ | | |||
270 | QAction* m_removeFromTabGroup; | | |||
271 | /** | | |||
272 | * Close all clients in the group. | | |||
273 | */ | | |||
274 | QAction* m_closeTabGroup; | | |||
275 | /** | | |||
276 | * The Client for which the menu is shown. | 236 | * The Client for which the menu is shown. | ||
277 | */ | 237 | */ | ||
278 | QPointer<AbstractClient> m_client; | 238 | QPointer<AbstractClient> m_client; | ||
279 | QAction *m_rulesOperation = nullptr; | 239 | QAction *m_rulesOperation = nullptr; | ||
280 | QAction *m_applicationRulesOperation = nullptr; | 240 | QAction *m_applicationRulesOperation = nullptr; | ||
281 | }; | 241 | }; | ||
282 | 242 | | |||
283 | class ShortcutDialog | 243 | class ShortcutDialog | ||
Show All 21 Lines |