Changeset View
Changeset View
Standalone View
Standalone View
effects/cube/cubeslide.h
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
67 | } | 67 | } | ||
68 | bool isUsePagerLayout() const { | 68 | bool isUsePagerLayout() const { | ||
69 | return usePagerLayout; | 69 | return usePagerLayout; | ||
70 | } | 70 | } | ||
71 | bool isUseWindowMoving() const { | 71 | bool isUseWindowMoving() const { | ||
72 | return useWindowMoving; | 72 | return useWindowMoving; | ||
73 | } | 73 | } | ||
74 | private Q_SLOTS: | 74 | private Q_SLOTS: | ||
75 | void slotDesktopChanged(int old, int current); | 75 | void slotWindowAdded(EffectWindow* w); | ||
76 | void slotWindowDeleted(EffectWindow* w); | ||||
zzag: Please prepend `slot`. | |||||
77 | | ||||
78 | void slotDesktopChanged(int old, int current, EffectWindow* w); | ||||
76 | void slotWindowStepUserMovedResized(KWin::EffectWindow *w); | 79 | void slotWindowStepUserMovedResized(KWin::EffectWindow *w); | ||
77 | void slotWindowFinishUserMovedResized(KWin::EffectWindow *w); | 80 | void slotWindowFinishUserMovedResized(KWin::EffectWindow *w); | ||
78 | 81 | | |||
zzag: Unrelated whitespace change. | |||||
79 | private: | 82 | private: | ||
80 | enum RotationDirection { | 83 | enum RotationDirection { | ||
81 | Left, | 84 | Left, | ||
82 | Right, | 85 | Right, | ||
83 | Upwards, | 86 | Upwards, | ||
84 | Downwards | 87 | Downwards | ||
85 | }; | 88 | }; | ||
86 | void paintSlideCube(int mask, QRegion region, ScreenPaintData& data); | 89 | void paintSlideCube(int mask, QRegion region, ScreenPaintData& data); | ||
87 | void windowMovingChanged(float progress, RotationDirection direction); | 90 | void windowMovingChanged(float progress, RotationDirection direction); | ||
91 | | ||||
92 | bool shouldAnimate(const EffectWindow* w) const; | ||||
93 | void startAnimation(); | ||||
94 | | ||||
88 | bool cube_painting; | 95 | bool cube_painting; | ||
89 | int front_desktop; | 96 | int front_desktop; | ||
90 | int painting_desktop; | 97 | int painting_desktop; | ||
91 | int other_desktop; | 98 | int other_desktop; | ||
92 | bool firstDesktop; | 99 | bool firstDesktop; | ||
100 | bool stickyPainting; | ||||
101 | QSet<EffectWindow*> staticWindows; | ||||
93 | QTimeLine timeLine; | 102 | QTimeLine timeLine; | ||
94 | QQueue<RotationDirection> slideRotations; | 103 | QQueue<RotationDirection> slideRotations; | ||
95 | QSet<EffectWindow*> panels; | | |||
96 | QSet<EffectWindow*> stickyWindows; | | |||
97 | bool dontSlidePanels; | 104 | bool dontSlidePanels; | ||
98 | bool dontSlideStickyWindows; | 105 | bool dontSlideStickyWindows; | ||
99 | bool usePagerLayout; | 106 | bool usePagerLayout; | ||
100 | int rotationDuration; | 107 | int rotationDuration; | ||
101 | bool useWindowMoving; | 108 | bool useWindowMoving; | ||
102 | bool windowMoving; | 109 | bool windowMoving; | ||
103 | bool desktopChangedWhileMoving; | 110 | bool desktopChangedWhileMoving; | ||
104 | double progressRestriction; | 111 | double progressRestriction; | ||
105 | }; | 112 | }; | ||
106 | } | 113 | } | ||
107 | 114 | | |||
108 | #endif | 115 | #endif |
Please prepend slot.