Changeset View
Changeset View
Standalone View
Standalone View
effects/presentwindows/presentwindows.h
Show All 21 Lines | |||||
22 | #ifndef KWIN_PRESENTWINDOWS_H | 22 | #ifndef KWIN_PRESENTWINDOWS_H | ||
23 | #define KWIN_PRESENTWINDOWS_H | 23 | #define KWIN_PRESENTWINDOWS_H | ||
24 | 24 | | |||
25 | #include "presentwindows_proxy.h" | 25 | #include "presentwindows_proxy.h" | ||
26 | 26 | | |||
27 | #include <kwineffects.h> | 27 | #include <kwineffects.h> | ||
28 | #include <kwineffectquickview.h> | 28 | #include <kwineffectquickview.h> | ||
29 | 29 | | |||
30 | #include <QElapsedTimer> | ||||
31 | | ||||
30 | class QMouseEvent; | 32 | class QMouseEvent; | ||
31 | class QElapsedTimer; | | |||
32 | class QQuickView; | 33 | class QQuickView; | ||
33 | 34 | | |||
34 | namespace KWin | 35 | namespace KWin | ||
35 | { | 36 | { | ||
36 | class CloseWindowView : public EffectQuickScene | 37 | class CloseWindowView : public EffectQuickScene | ||
37 | { | 38 | { | ||
38 | Q_OBJECT | 39 | Q_OBJECT | ||
39 | public: | 40 | public: | ||
40 | explicit CloseWindowView(QObject *parent = nullptr); | 41 | explicit CloseWindowView(QObject *parent = nullptr); | ||
41 | void disarm(); | 42 | void disarm(); | ||
42 | Q_SIGNALS: | 43 | Q_SIGNALS: | ||
43 | void requestClose(); | 44 | void requestClose(); | ||
44 | private Q_SLOTS: | 45 | private Q_SLOTS: | ||
45 | void clicked(); | 46 | void clicked(); | ||
46 | private: | 47 | private: | ||
47 | QElapsedTimer *m_armTimer; | 48 | QElapsedTimer m_armTimer; | ||
48 | }; | 49 | }; | ||
49 | 50 | | |||
50 | /** | 51 | /** | ||
51 | * Expose-like effect which shows all windows on current desktop side-by-side, | 52 | * Expose-like effect which shows all windows on current desktop side-by-side, | ||
52 | * letting the user select active window. | 53 | * letting the user select active window. | ||
53 | */ | 54 | */ | ||
54 | class PresentWindowsEffect | 55 | class PresentWindowsEffect | ||
55 | : public Effect | 56 | : public Effect | ||
▲ Show 20 Lines • Show All 278 Lines • Show Last 20 Lines |