Changeset View
Changeset View
Standalone View
Standalone View
useractions.h
Show All 20 Lines | |||||
21 | #define KWIN_USERACTIONS_H | 21 | #define KWIN_USERACTIONS_H | ||
22 | #include "ui_shortcutdialog.h" | 22 | #include "ui_shortcutdialog.h" | ||
23 | 23 | | |||
24 | #include <kwinglobals.h> | 24 | #include <kwinglobals.h> | ||
25 | 25 | | |||
26 | // Qt | 26 | // Qt | ||
27 | #include <QDialog> | 27 | #include <QDialog> | ||
28 | #include <QObject> | 28 | #include <QObject> | ||
29 | #include <QPointer> | ||||
29 | 30 | | |||
30 | class QAction; | 31 | class QAction; | ||
31 | class QRect; | 32 | class QRect; | ||
32 | 33 | | |||
33 | namespace KWin | 34 | namespace KWin | ||
34 | { | 35 | { | ||
35 | class AbstractClient; | 36 | class AbstractClient; | ||
36 | class Client; | 37 | class Client; | ||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 61 | public: | |||
93 | */ | 94 | */ | ||
94 | void close(); | 95 | void close(); | ||
95 | /** | 96 | /** | ||
96 | * @brief Shows the menu at the given @p pos for the given @p client. | 97 | * @brief Shows the menu at the given @p pos for the given @p client. | ||
97 | * | 98 | * | ||
98 | * @param pos The position where the menu should be shown. | 99 | * @param pos The position where the menu should be shown. | ||
99 | * @param client The Client for which the Menu has to be shown. | 100 | * @param client The Client for which the Menu has to be shown. | ||
100 | */ | 101 | */ | ||
101 | void show(const QRect &pos, const QWeakPointer<AbstractClient> &client); | 102 | void show(const QRect &pos, AbstractClient *client); | ||
102 | 103 | | |||
103 | public Q_SLOTS: | 104 | public Q_SLOTS: | ||
104 | /** | 105 | /** | ||
105 | * Delayed initialization of the activity menu. | 106 | * Delayed initialization of the activity menu. | ||
106 | * | 107 | * | ||
107 | * The call to retrieve the current list of activities is performed in a thread and this | 108 | * The call to retrieve the current list of activities is performed in a thread and this | ||
108 | * slot is invoked once the list has been fetched. Only task of this method is to decide | 109 | * slot is invoked once the list has been fetched. Only task of this method is to decide | ||
109 | * whether to show the activity menu and to invoke the initialization of it. | 110 | * whether to show the activity menu and to invoke the initialization of it. | ||
▲ Show 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 194 | private: | |||
214 | */ | 215 | */ | ||
215 | void initTabbingPopups(); | 216 | void initTabbingPopups(); | ||
216 | /** | 217 | /** | ||
217 | * Shows a helper Dialog to inform the user how to get back in case he triggered | 218 | * Shows a helper Dialog to inform the user how to get back in case he triggered | ||
218 | * an action which hides the window decoration (e.g. NoBorder or Fullscreen). | 219 | * an action which hides the window decoration (e.g. NoBorder or Fullscreen). | ||
219 | * @param message The message type to be shown | 220 | * @param message The message type to be shown | ||
220 | * @param c The Client for which the dialog should be shown. | 221 | * @param c The Client for which the dialog should be shown. | ||
221 | */ | 222 | */ | ||
222 | void helperDialog(const QString &message, const QWeakPointer<AbstractClient> &c); | 223 | void helperDialog(const QString &message, AbstractClient *c); | ||
223 | /** | 224 | /** | ||
224 | * The actual main context menu which is show when the UserActionsMenu is invoked. | 225 | * The actual main context menu which is show when the UserActionsMenu is invoked. | ||
225 | */ | 226 | */ | ||
226 | QMenu* m_menu; | 227 | QMenu* m_menu; | ||
227 | /** | 228 | /** | ||
228 | * The move to desktop sub menu. | 229 | * The move to desktop sub menu. | ||
229 | */ | 230 | */ | ||
230 | QMenu* m_desktopMenu; | 231 | QMenu* m_desktopMenu; | ||
Show All 38 Lines | |||||
269 | QAction* m_removeFromTabGroup; | 270 | QAction* m_removeFromTabGroup; | ||
270 | /** | 271 | /** | ||
271 | * Close all clients in the group. | 272 | * Close all clients in the group. | ||
272 | */ | 273 | */ | ||
273 | QAction* m_closeTabGroup; | 274 | QAction* m_closeTabGroup; | ||
274 | /** | 275 | /** | ||
275 | * The Client for which the menu is shown. | 276 | * The Client for which the menu is shown. | ||
276 | */ | 277 | */ | ||
277 | QWeakPointer<AbstractClient> m_client; | 278 | QPointer<AbstractClient> m_client; | ||
278 | QAction *m_rulesOperation = nullptr; | 279 | QAction *m_rulesOperation = nullptr; | ||
279 | QAction *m_applicationRulesOperation = nullptr; | 280 | QAction *m_applicationRulesOperation = nullptr; | ||
280 | }; | 281 | }; | ||
281 | 282 | | |||
282 | class ShortcutDialog | 283 | class ShortcutDialog | ||
283 | : public QDialog | 284 | : public QDialog | ||
284 | { | 285 | { | ||
285 | Q_OBJECT | 286 | Q_OBJECT | ||
Show All 18 Lines |