From 98dd3ead43357407dec46d74eccb21061eec107d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 2 Feb 2012 10:42:14 +0100 Subject: [PATCH] Make some EffectWindow methods scriptable --- libkwineffects/kwineffects.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libkwineffects/kwineffects.h b/libkwineffects/kwineffects.h index 91c2b3e613..a768fb7fa4 100644 --- a/libkwineffects/kwineffects.h +++ b/libkwineffects/kwineffects.h @@ -1265,11 +1265,11 @@ public: virtual void enablePainting(int reason) = 0; virtual void disablePainting(int reason) = 0; virtual bool isPaintingEnabled() = 0; - void addRepaint(const QRect& r); - void addRepaint(int x, int y, int w, int h); - void addRepaintFull(); - void addLayerRepaint(const QRect& r); - void addLayerRepaint(int x, int y, int w, int h); + Q_SCRIPTABLE void addRepaint(const QRect& r); + Q_SCRIPTABLE void addRepaint(int x, int y, int w, int h); + Q_SCRIPTABLE void addRepaintFull(); + Q_SCRIPTABLE void addLayerRepaint(const QRect& r); + Q_SCRIPTABLE void addLayerRepaint(int x, int y, int w, int h); virtual void refWindow() = 0; virtual void unrefWindow() = 0; @@ -1430,8 +1430,8 @@ public: bool keepAbove() const; bool isModal() const; - virtual EffectWindow* findModal() = 0; - virtual EffectWindowList mainWindows() const = 0; + Q_SCRIPTABLE virtual KWin::EffectWindow* findModal() = 0; + Q_SCRIPTABLE virtual EffectWindowList mainWindows() const = 0; /** * Returns whether the window should be excluded from window switching effects. @@ -1446,15 +1446,15 @@ public: void minimize(); void unminimize(); - void closeWindow() const; + Q_SCRIPTABLE void closeWindow() const; bool isCurrentTab() const; /** * Can be used to by effects to store arbitrary data in the EffectWindow. */ - virtual void setData(int role, const QVariant &data) = 0; - virtual QVariant data(int role) const = 0; + Q_SCRIPTABLE virtual void setData(int role, const QVariant &data) = 0; + Q_SCRIPTABLE virtual QVariant data(int role) const = 0; }; class KWIN_EXPORT EffectWindowGroup