Changeset View
Changeset View
Standalone View
Standalone View
effects/desktopgrid/desktopgrid.h
Show All 30 Lines | |||||
31 | { | 31 | { | ||
32 | 32 | | |||
33 | class PresentWindowsEffectProxy; | 33 | class PresentWindowsEffectProxy; | ||
34 | 34 | | |||
35 | class DesktopButtonsView : public QQuickView | 35 | class DesktopButtonsView : public QQuickView | ||
36 | { | 36 | { | ||
37 | Q_OBJECT | 37 | Q_OBJECT | ||
38 | public: | 38 | public: | ||
39 | explicit DesktopButtonsView(QWindow *parent = 0); | 39 | explicit DesktopButtonsView(QWindow *parent = nullptr); | ||
40 | void windowInputMouseEvent(QMouseEvent* e); | 40 | void windowInputMouseEvent(QMouseEvent* e); | ||
41 | void setAddDesktopEnabled(bool enable); | 41 | void setAddDesktopEnabled(bool enable); | ||
42 | void setRemoveDesktopEnabled(bool enable); | 42 | void setRemoveDesktopEnabled(bool enable); | ||
43 | bool isVisible() const; | 43 | bool isVisible() const; | ||
44 | void show(); | 44 | void show(); | ||
45 | void hide(); | 45 | void hide(); | ||
46 | public: | 46 | public: | ||
47 | EffectWindow *effectWindow; | 47 | EffectWindow *effectWindow; | ||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 107 | private Q_SLOTS: | |||
114 | void slotWindowAdded(KWin::EffectWindow* w); | 114 | void slotWindowAdded(KWin::EffectWindow* w); | ||
115 | void slotWindowClosed(KWin::EffectWindow *w); | 115 | void slotWindowClosed(KWin::EffectWindow *w); | ||
116 | void slotWindowDeleted(KWin::EffectWindow *w); | 116 | void slotWindowDeleted(KWin::EffectWindow *w); | ||
117 | void slotNumberDesktopsChanged(uint old); | 117 | void slotNumberDesktopsChanged(uint old); | ||
118 | void slotWindowGeometryShapeChanged(KWin::EffectWindow *w, const QRect &old); | 118 | void slotWindowGeometryShapeChanged(KWin::EffectWindow *w, const QRect &old); | ||
119 | 119 | | |||
120 | private: | 120 | private: | ||
121 | QPointF scalePos(const QPoint& pos, int desktop, int screen = -1) const; | 121 | QPointF scalePos(const QPoint& pos, int desktop, int screen = -1) const; | ||
122 | QPoint unscalePos(const QPoint& pos, int* desktop = NULL) const; | 122 | QPoint unscalePos(const QPoint& pos, int* desktop = nullptr) const; | ||
123 | int posToDesktop(const QPoint& pos) const; | 123 | int posToDesktop(const QPoint& pos) const; | ||
124 | EffectWindow* windowAt(QPoint pos) const; | 124 | EffectWindow* windowAt(QPoint pos) const; | ||
125 | void setCurrentDesktop(int desktop); | 125 | void setCurrentDesktop(int desktop); | ||
126 | void setHighlightedDesktop(int desktop); | 126 | void setHighlightedDesktop(int desktop); | ||
127 | int desktopToRight(int desktop, bool wrap = true) const; | 127 | int desktopToRight(int desktop, bool wrap = true) const; | ||
128 | int desktopToLeft(int desktop, bool wrap = true) const; | 128 | int desktopToLeft(int desktop, bool wrap = true) const; | ||
129 | int desktopUp(int desktop, bool wrap = true) const; | 129 | int desktopUp(int desktop, bool wrap = true) const; | ||
130 | int desktopDown(int desktop, bool wrap = true) const; | 130 | int desktopDown(int desktop, bool wrap = true) const; | ||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |