Changeset View
Changeset View
Standalone View
Standalone View
effects/slidingpopups/slidingpopups.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 47 | int requestedEffectChainPosition() const override { | |||
---|---|---|---|---|---|
48 | return 40; | 48 | return 40; | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | static bool supported(); | 51 | static bool supported(); | ||
52 | 52 | | |||
53 | int slideInDuration() const; | 53 | int slideInDuration() const; | ||
54 | int slideOutDuration() const; | 54 | int slideOutDuration() const; | ||
55 | 55 | | |||
56 | bool eventFilter(QObject *watched, QEvent *event) override; | ||||
57 | | ||||
56 | private Q_SLOTS: | 58 | private Q_SLOTS: | ||
57 | void slotWindowAdded(EffectWindow *w); | 59 | void slotWindowAdded(EffectWindow *w); | ||
58 | void slotWindowDeleted(EffectWindow *w); | 60 | void slotWindowDeleted(EffectWindow *w); | ||
59 | void slotPropertyNotify(EffectWindow *w, long atom); | 61 | void slotPropertyNotify(EffectWindow *w, long atom); | ||
60 | void slotWaylandSlideOnShowChanged(EffectWindow *w); | 62 | void slotWaylandSlideOnShowChanged(EffectWindow *w); | ||
61 | 63 | | |||
62 | void slideIn(EffectWindow *w); | 64 | void slideIn(EffectWindow *w); | ||
63 | void slideOut(EffectWindow *w); | 65 | void slideOut(EffectWindow *w); | ||
64 | void stopAnimations(); | 66 | void stopAnimations(); | ||
65 | 67 | | |||
66 | private: | 68 | private: | ||
67 | void setupAnimData(EffectWindow *w); | 69 | void setupAnimData(EffectWindow *w); | ||
70 | void setupInternalWindowSlide(EffectWindow *w); | ||||
68 | 71 | | |||
69 | long m_atom; | 72 | long m_atom; | ||
70 | 73 | | |||
71 | int m_slideLength; | 74 | int m_slideLength; | ||
72 | std::chrono::milliseconds m_slideInDuration; | 75 | std::chrono::milliseconds m_slideInDuration; | ||
73 | std::chrono::milliseconds m_slideOutDuration; | 76 | std::chrono::milliseconds m_slideOutDuration; | ||
74 | 77 | | |||
75 | enum class AnimationKind { | 78 | enum class AnimationKind { | ||
Show All 40 Lines |