Changeset View
Changeset View
Standalone View
Standalone View
effects/slide/slide.h
Show All 20 Lines | |||||
21 | *********************************************************************/ | 21 | *********************************************************************/ | ||
22 | 22 | | |||
23 | #ifndef KWIN_SLIDE_H | 23 | #ifndef KWIN_SLIDE_H | ||
24 | #define KWIN_SLIDE_H | 24 | #define KWIN_SLIDE_H | ||
25 | 25 | | |||
26 | // KDE | 26 | // KDE | ||
27 | #include <kwineffects.h> | 27 | #include <kwineffects.h> | ||
28 | 28 | | |||
29 | // Qt | | |||
30 | #include <QObject> | | |||
31 | #include <QTimeLine> | | |||
32 | | ||||
33 | namespace KWin | 29 | namespace KWin | ||
34 | { | 30 | { | ||
35 | 31 | | |||
36 | class SlideEffect : public Effect | 32 | class SlideEffect : public Effect | ||
37 | { | 33 | { | ||
38 | Q_OBJECT | 34 | Q_OBJECT | ||
39 | public: | 35 | public: | ||
40 | SlideEffect(); | 36 | SlideEffect(); | ||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
84 | 80 | | |||
85 | private: | 81 | private: | ||
86 | int m_hGap; | 82 | int m_hGap; | ||
87 | int m_vGap; | 83 | int m_vGap; | ||
88 | bool m_slideDocks; | 84 | bool m_slideDocks; | ||
89 | bool m_slideBackground; | 85 | bool m_slideBackground; | ||
90 | 86 | | |||
91 | bool m_active = false; | 87 | bool m_active = false; | ||
92 | QTimeLine m_timeline; | 88 | TimeLine m_timeLine; | ||
93 | QPoint m_startPos; | 89 | QPoint m_startPos; | ||
94 | QPoint m_diff; | 90 | QPoint m_diff; | ||
95 | EffectWindow* m_movingWindow = nullptr; | 91 | EffectWindow* m_movingWindow = nullptr; | ||
96 | 92 | | |||
97 | struct { | 93 | struct { | ||
98 | int desktop; | 94 | int desktop; | ||
99 | bool firstPass; | 95 | bool firstPass; | ||
100 | bool lastPass; | 96 | bool lastPass; | ||
Show All 16 Lines |