Changeset View
Changeset View
Standalone View
Standalone View
effects/slidingpopups/slidingpopups.h
Show All 31 Lines | |||||
32 | class SlidingPopupsEffect | 32 | class SlidingPopupsEffect | ||
33 | : public Effect | 33 | : public Effect | ||
34 | { | 34 | { | ||
35 | Q_OBJECT | 35 | Q_OBJECT | ||
36 | Q_PROPERTY(int fadeInTime READ fadeInTime) | 36 | Q_PROPERTY(int fadeInTime READ fadeInTime) | ||
37 | Q_PROPERTY(int fadeOutTime READ fadeOutTime) | 37 | Q_PROPERTY(int fadeOutTime READ fadeOutTime) | ||
38 | public: | 38 | public: | ||
39 | SlidingPopupsEffect(); | 39 | SlidingPopupsEffect(); | ||
40 | ~SlidingPopupsEffect(); | 40 | ~SlidingPopupsEffect() override; | ||
41 | virtual void prePaintScreen(ScreenPrePaintData& data, int time); | 41 | void prePaintScreen(ScreenPrePaintData& data, int time) override; | ||
42 | virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time); | 42 | void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override; | ||
43 | virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data); | 43 | void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override; | ||
44 | virtual void postPaintWindow(EffectWindow* w); | 44 | void postPaintWindow(EffectWindow* w) override; | ||
45 | virtual void reconfigure(ReconfigureFlags flags); | 45 | void reconfigure(ReconfigureFlags flags) override; | ||
46 | virtual bool isActive() const; | 46 | bool isActive() const override; | ||
47 | 47 | | |||
48 | int requestedEffectChainPosition() const override { | 48 | int requestedEffectChainPosition() const override { | ||
49 | return 40; | 49 | return 40; | ||
50 | } | 50 | } | ||
51 | // TODO react also on virtual desktop changes | 51 | // TODO react also on virtual desktop changes | ||
52 | 52 | | |||
53 | // for properties | 53 | // for properties | ||
54 | int fadeInTime() const { | 54 | int fadeInTime() const { | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |