Use namespaced parameters in signals
Required to get scripting bindings working.
This commit is contained in:
parent
d4a919a9bf
commit
2007a7eab8
69 changed files with 211 additions and 210 deletions
|
@ -60,9 +60,9 @@ BlurEffect::BlurEffect()
|
|||
} else {
|
||||
XDeleteProperty(display(), rootWindow(), net_wm_blur_region);
|
||||
}
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(propertyNotify(EffectWindow*,long)), this, SLOT(slotPropertyNotify(EffectWindow*,long)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long)));
|
||||
connect(effects, SIGNAL(screenGeometryChanged(QSize)), this, SLOT(slotScreenGeometryChanged()));
|
||||
}
|
||||
|
||||
|
|
|
@ -49,9 +49,9 @@ public:
|
|||
void paintEffectFrame(EffectFrame *frame, QRegion region, double opacity, double frameOpacity);
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowAdded(EffectWindow *w);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotPropertyNotify(EffectWindow *w, long atom);
|
||||
void slotWindowAdded(KWin::EffectWindow *w);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
void slotPropertyNotify(KWin::EffectWindow *w, long atom);
|
||||
void slotScreenGeometryChanged();
|
||||
|
||||
private:
|
||||
|
|
|
@ -57,12 +57,12 @@ BoxSwitchEffect::BoxSwitchEffect()
|
|||
|
||||
highlight_margin = 10;
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(tabBoxAdded(int)), this, SLOT(slotTabBoxAdded(int)));
|
||||
connect(effects, SIGNAL(tabBoxClosed()), this, SLOT(slotTabBoxClosed()));
|
||||
connect(effects, SIGNAL(tabBoxUpdated()), this, SLOT(slotTabBoxUpdated()));
|
||||
connect(effects, SIGNAL(windowGeometryShapeChanged(EffectWindow*,QRect)), this, SLOT(slotWindowGeometryShapeChanged(EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowDamaged(EffectWindow*,QRect)), this, SLOT(slotWindowDamaged(EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowGeometryShapeChanged(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowGeometryShapeChanged(KWin::EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowDamaged(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowDamaged(KWin::EffectWindow*,QRect)));
|
||||
}
|
||||
|
||||
BoxSwitchEffect::~BoxSwitchEffect()
|
||||
|
|
|
@ -60,12 +60,12 @@ public:
|
|||
void paintWindowsBox(const QRegion& region);
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowClosed(EffectWindow* w);
|
||||
void slotWindowClosed(KWin::EffectWindow* w);
|
||||
void slotTabBoxAdded(int mode);
|
||||
void slotTabBoxClosed();
|
||||
void slotTabBoxUpdated();
|
||||
void slotWindowGeometryShapeChanged(EffectWindow *w, const QRect &old);
|
||||
void slotWindowDamaged(EffectWindow* w, const QRect& damage);
|
||||
void slotWindowGeometryShapeChanged(KWin::EffectWindow *w, const QRect &old);
|
||||
void slotWindowDamaged(KWin::EffectWindow* w, const QRect& damage);
|
||||
|
||||
private:
|
||||
class ItemInfo;
|
||||
|
|
|
@ -70,7 +70,7 @@ CoverSwitchEffect::CoverSwitchEffect()
|
|||
|
||||
const QString fragmentshader = KGlobal::dirs()->findResource("data", "kwin/coverswitch-reflection.glsl");
|
||||
m_reflectionShader = ShaderManager::instance()->loadFragmentShader(ShaderManager::GenericShader, fragmentshader);
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(tabBoxAdded(int)), this, SLOT(slotTabBoxAdded(int)));
|
||||
connect(effects, SIGNAL(tabBoxClosed()), this, SLOT(slotTabBoxClosed()));
|
||||
connect(effects, SIGNAL(tabBoxUpdated()), this, SLOT(slotTabBoxUpdated()));
|
||||
|
|
|
@ -53,7 +53,7 @@ public:
|
|||
static bool supported();
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowClosed(EffectWindow *c);
|
||||
void slotWindowClosed(KWin::EffectWindow *c);
|
||||
void slotTabBoxAdded(int mode);
|
||||
void slotTabBoxClosed();
|
||||
void slotTabBoxUpdated();
|
||||
|
|
|
@ -39,8 +39,8 @@ CubeSlideEffect::CubeSlideEffect()
|
|||
, progressRestriction(0.0f)
|
||||
{
|
||||
connect(effects, SIGNAL(desktopChanged(int,int)), this, SLOT(slotDesktopChanged(int,int)));
|
||||
connect(effects, SIGNAL(windowStepUserMovedResized(EffectWindow*,QRect)), this, SLOT(slotWindowStepUserMovedResized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowFinishUserMovedResized(EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStepUserMovedResized(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowStepUserMovedResized(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowFinishUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(KWin::EffectWindow*)));
|
||||
reconfigure(ReconfigureAll);
|
||||
}
|
||||
|
||||
|
|
|
@ -48,8 +48,8 @@ public:
|
|||
|
||||
private Q_SLOTS:
|
||||
void slotDesktopChanged(int old, int current);
|
||||
void slotWindowStepUserMovedResized(EffectWindow *w);
|
||||
void slotWindowFinishUserMovedResized(EffectWindow *w);
|
||||
void slotWindowStepUserMovedResized(KWin::EffectWindow *w);
|
||||
void slotWindowFinishUserMovedResized(KWin::EffectWindow *w);
|
||||
|
||||
private:
|
||||
enum RotationDirection {
|
||||
|
|
|
@ -37,9 +37,9 @@ DashboardEffect::DashboardEffect()
|
|||
|
||||
// read settings
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowActivated(EffectWindow*)), this, SLOT(slotWindowActivated(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowActivated(KWin::EffectWindow*)), this, SLOT(slotWindowActivated(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
DashboardEffect::~DashboardEffect()
|
||||
|
|
|
@ -46,9 +46,9 @@ public:
|
|||
virtual bool isActive() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowAdded(EffectWindow* c);
|
||||
void slotWindowClosed(EffectWindow *c);
|
||||
void slotWindowActivated(EffectWindow *w);
|
||||
void slotWindowAdded(KWin::EffectWindow* c);
|
||||
void slotWindowClosed(KWin::EffectWindow *c);
|
||||
void slotWindowActivated(KWin::EffectWindow *w);
|
||||
private:
|
||||
bool blur;
|
||||
bool isDashboard(EffectWindow* w);
|
||||
|
|
|
@ -74,11 +74,11 @@ DesktopGridEffect::DesktopGridEffect()
|
|||
shortcut = a->globalShortcut();
|
||||
connect(a, SIGNAL(triggered(bool)), this, SLOT(toggle()));
|
||||
connect(a, SIGNAL(globalShortcutChanged(QKeySequence)), this, SLOT(globalShortcutChanged(QKeySequence)));
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(numberDesktopsChanged(int)), this, SLOT(slotNumberDesktopsChanged(int)));
|
||||
connect(effects, SIGNAL(windowGeometryShapeChanged(EffectWindow*,QRect)), this, SLOT(slotWindowGeometryShapeChanged(EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowGeometryShapeChanged(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowGeometryShapeChanged(KWin::EffectWindow*,QRect)));
|
||||
|
||||
// Load all other configuration details
|
||||
reconfigure(ReconfigureAll);
|
||||
|
|
|
@ -86,11 +86,11 @@ private slots:
|
|||
void globalShortcutChanged(const QKeySequence& seq);
|
||||
void slotAddDesktop();
|
||||
void slotRemoveDesktop();
|
||||
void slotWindowAdded(EffectWindow* w);
|
||||
void slotWindowClosed(EffectWindow *w);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotWindowAdded(KWin::EffectWindow* w);
|
||||
void slotWindowClosed(KWin::EffectWindow *w);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
void slotNumberDesktopsChanged(int old);
|
||||
void slotWindowGeometryShapeChanged(EffectWindow *w, const QRect &old);
|
||||
void slotWindowGeometryShapeChanged(KWin::EffectWindow *w, const QRect &old);
|
||||
|
||||
private:
|
||||
QPointF scalePos(const QPoint& pos, int desktop, int screen = -1) const;
|
||||
|
|
|
@ -29,8 +29,8 @@ KWIN_EFFECT(dialogparent, DialogParentEffect)
|
|||
DialogParentEffect::DialogParentEffect()
|
||||
{
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowActivated(EffectWindow*)), this, SLOT(slotWindowActivated(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowActivated(KWin::EffectWindow*)), this, SLOT(slotWindowActivated(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
void DialogParentEffect::reconfigure(ReconfigureFlags)
|
||||
|
|
|
@ -49,8 +49,8 @@ public:
|
|||
virtual bool isActive() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowClosed(EffectWindow *c);
|
||||
void slotWindowActivated(EffectWindow *c);
|
||||
void slotWindowClosed(KWin::EffectWindow *c);
|
||||
void slotWindowActivated(KWin::EffectWindow *c);
|
||||
protected:
|
||||
bool hasModalWindow(EffectWindow* t);
|
||||
private:
|
||||
|
|
|
@ -35,8 +35,8 @@ DimInactiveEffect::DimInactiveEffect()
|
|||
previousActiveTimeline.setDuration(animationTime(250));
|
||||
active = effects->activeWindow();
|
||||
previousActive = NULL;
|
||||
connect(effects, SIGNAL(windowActivated(EffectWindow*)), this, SLOT(slotWindowActivated(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowActivated(KWin::EffectWindow*)), this, SLOT(slotWindowActivated(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
void DimInactiveEffect::reconfigure(ReconfigureFlags)
|
||||
|
|
|
@ -41,8 +41,8 @@ public:
|
|||
virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowActivated(EffectWindow* c);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotWindowActivated(KWin::EffectWindow* c);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
|
||||
private:
|
||||
bool dimWindow(const EffectWindow* w) const;
|
||||
|
|
|
@ -32,7 +32,7 @@ DimScreenEffect::DimScreenEffect()
|
|||
, deactivateAnimation(false)
|
||||
{
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowActivated(EffectWindow*)), this, SLOT(slotWindowActivated(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowActivated(KWin::EffectWindow*)), this, SLOT(slotWindowActivated(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
DimScreenEffect::~DimScreenEffect()
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
virtual bool isActive() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowActivated(EffectWindow *w);
|
||||
void slotWindowActivated(KWin::EffectWindow *w);
|
||||
|
||||
private:
|
||||
bool mActivated;
|
||||
|
|
|
@ -47,8 +47,8 @@ ExplosionEffect::ExplosionEffect() : Effect()
|
|||
mActiveAnimations = 0;
|
||||
mValid = true;
|
||||
mInited = false;
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
ExplosionEffect::~ExplosionEffect()
|
||||
|
|
|
@ -52,8 +52,8 @@ public:
|
|||
static bool supported();
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowClosed(EffectWindow *c);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotWindowClosed(KWin::EffectWindow *c);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
|
||||
protected:
|
||||
bool loadData();
|
||||
|
|
|
@ -35,10 +35,10 @@ FadeEffect::FadeEffect()
|
|||
, fadeWindows(false)
|
||||
{
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowOpacityChanged(EffectWindow*,qreal,qreal)), this, SLOT(slotWindowOpacityChanged(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowOpacityChanged(KWin::EffectWindow*,qreal,qreal)), this, SLOT(slotWindowOpacityChanged(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
void FadeEffect::reconfigure(ReconfigureFlags)
|
||||
|
|
|
@ -43,10 +43,10 @@ public:
|
|||
bool isFadeWindow(EffectWindow* w);
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowAdded(EffectWindow* c);
|
||||
void slotWindowClosed(EffectWindow *c);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotWindowOpacityChanged(EffectWindow *w);
|
||||
void slotWindowAdded(KWin::EffectWindow* c);
|
||||
void slotWindowClosed(KWin::EffectWindow *c);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
void slotWindowOpacityChanged(KWin::EffectWindow *w);
|
||||
private:
|
||||
class WindowInfo;
|
||||
QHash< const EffectWindow*, WindowInfo > windows;
|
||||
|
|
|
@ -32,8 +32,8 @@ KWIN_EFFECT(fallapart, FallApartEffect)
|
|||
FallApartEffect::FallApartEffect()
|
||||
{
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
void FallApartEffect::reconfigure(ReconfigureFlags)
|
||||
|
|
|
@ -40,8 +40,8 @@ public:
|
|||
virtual bool isActive() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowClosed(EffectWindow *c);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotWindowClosed(KWin::EffectWindow *c);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
|
||||
private:
|
||||
QHash< const EffectWindow*, double > windows;
|
||||
|
|
|
@ -70,8 +70,8 @@ FlipSwitchEffect::FlipSwitchEffect()
|
|||
m_shortcutAll = b->globalShortcut();
|
||||
connect(b, SIGNAL(triggered(bool)), this, SLOT(toggleActiveAllDesktops()));
|
||||
connect(b, SIGNAL(globalShortcutChanged(QKeySequence)), this, SLOT(globalShortcutChangedAll(QKeySequence)));
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(tabBoxAdded(int)), this, SLOT(slotTabBoxAdded(int)));
|
||||
connect(effects, SIGNAL(tabBoxClosed()), this, SLOT(slotTabBoxClosed()));
|
||||
connect(effects, SIGNAL(tabBoxUpdated()), this, SLOT(slotTabBoxUpdated()));
|
||||
|
|
|
@ -55,8 +55,8 @@ private Q_SLOTS:
|
|||
void toggleActiveAllDesktops();
|
||||
void globalShortcutChangedCurrent(QKeySequence shortcut);
|
||||
void globalShortcutChangedAll(QKeySequence shortcut);
|
||||
void slotWindowAdded(EffectWindow* w);
|
||||
void slotWindowClosed(EffectWindow *w);
|
||||
void slotWindowAdded(KWin::EffectWindow* w);
|
||||
void slotWindowClosed(KWin::EffectWindow *w);
|
||||
void slotTabBoxAdded(int mode);
|
||||
void slotTabBoxClosed();
|
||||
void slotTabBoxUpdated();
|
||||
|
|
|
@ -41,9 +41,9 @@ GlideEffect::GlideEffect()
|
|||
slideAtom = XInternAtom( display(), "_KDE_SLIDE", False );
|
||||
effects->registerPropertyType( slideAtom, true );
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
GlideEffect::~GlideEffect()
|
||||
|
|
|
@ -46,9 +46,9 @@ public:
|
|||
|
||||
static bool supported();
|
||||
public Q_SLOTS:
|
||||
void slotWindowAdded(EffectWindow* c);
|
||||
void slotWindowClosed(EffectWindow *c);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotWindowAdded(KWin::EffectWindow* c);
|
||||
void slotWindowClosed(KWin::EffectWindow *c);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
|
||||
private:
|
||||
class WindowInfo;
|
||||
|
|
|
@ -38,10 +38,10 @@ HighlightWindowEffect::HighlightWindowEffect()
|
|||
// Announce support by creating a dummy version on the root window
|
||||
unsigned char dummy = 0;
|
||||
XChangeProperty(display(), rootWindow(), m_atom, m_atom, 8, PropModeReplace, &dummy, 1);
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(propertyNotify(EffectWindow*,long)), this, SLOT(slotPropertyNotify(EffectWindow*,long)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long)));
|
||||
}
|
||||
|
||||
HighlightWindowEffect::~HighlightWindowEffect()
|
||||
|
|
|
@ -39,10 +39,10 @@ public:
|
|||
virtual bool isActive() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowAdded(EffectWindow* w);
|
||||
void slotWindowClosed(EffectWindow *w);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotPropertyNotify(EffectWindow* w, long atom);
|
||||
void slotWindowAdded(KWin::EffectWindow* w);
|
||||
void slotWindowClosed(KWin::EffectWindow *w);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
void slotPropertyNotify(KWin::EffectWindow* w, long atom);
|
||||
|
||||
private:
|
||||
void prepareHighlighting();
|
||||
|
|
|
@ -54,7 +54,7 @@ InvertEffect::InvertEffect()
|
|||
b->setText(i18n("Toggle Invert Effect on Window"));
|
||||
b->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::META + Qt::Key_U));
|
||||
connect(b, SIGNAL(triggered(bool)), this, SLOT(toggleWindow()));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
InvertEffect::~InvertEffect()
|
||||
|
|
|
@ -51,7 +51,7 @@ public:
|
|||
public slots:
|
||||
void toggle();
|
||||
void toggleWindow();
|
||||
void slotWindowClosed(EffectWindow *w);
|
||||
void slotWindowClosed(KWin::EffectWindow *w);
|
||||
|
||||
protected:
|
||||
bool loadData();
|
||||
|
|
|
@ -34,7 +34,7 @@ LoginEffect::LoginEffect()
|
|||
, login_window(NULL)
|
||||
{
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
void LoginEffect::prePaintScreen(ScreenPrePaintData& data, int time)
|
||||
|
|
|
@ -41,7 +41,7 @@ public:
|
|||
virtual bool isActive() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowClosed(EffectWindow *w);
|
||||
void slotWindowClosed(KWin::EffectWindow *w);
|
||||
|
||||
private:
|
||||
bool isLoginSplash(EffectWindow* w);
|
||||
|
|
|
@ -60,10 +60,10 @@ LogoutEffect::LogoutEffect()
|
|||
blurTarget = NULL;
|
||||
#endif
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(propertyNotify(EffectWindow*,long)), this, SLOT(slotPropertyNotify(EffectWindow*,long)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long)));
|
||||
}
|
||||
|
||||
LogoutEffect::~LogoutEffect()
|
||||
|
|
|
@ -46,10 +46,10 @@ public:
|
|||
virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
|
||||
virtual bool isActive() const;
|
||||
public Q_SLOTS:
|
||||
void slotWindowAdded(EffectWindow* w);
|
||||
void slotWindowClosed(EffectWindow *w);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotPropertyNotify(EffectWindow *w, long a);
|
||||
void slotWindowAdded(KWin::EffectWindow* w);
|
||||
void slotWindowClosed(KWin::EffectWindow *w);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
void slotPropertyNotify(KWin::EffectWindow *w, long a);
|
||||
private:
|
||||
bool isLogoutDialog(EffectWindow* w);
|
||||
double progress; // 0-1
|
||||
|
|
|
@ -36,9 +36,9 @@ MagicLampEffect::MagicLampEffect()
|
|||
{
|
||||
mActiveAnimations = 0;
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowMinimized(EffectWindow*)), this, SLOT(slotWindowMinimized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowUnminimized(EffectWindow*)), this, SLOT(slotWindowUnminimized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowMinimized(KWin::EffectWindow*)), this, SLOT(slotWindowMinimized(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowUnminimized(KWin::EffectWindow*)), this, SLOT(slotWindowUnminimized(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
bool MagicLampEffect::supported()
|
||||
|
|
|
@ -45,9 +45,9 @@ public:
|
|||
static bool supported();
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotWindowMinimized(EffectWindow *w);
|
||||
void slotWindowUnminimized(EffectWindow *w);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
void slotWindowMinimized(KWin::EffectWindow *w);
|
||||
void slotWindowUnminimized(KWin::EffectWindow *w);
|
||||
|
||||
private:
|
||||
QHash< EffectWindow*, QTimeLine* > mTimeLineWindows;
|
||||
|
|
|
@ -29,9 +29,9 @@ KWIN_EFFECT(minimizeanimation, MinimizeAnimationEffect)
|
|||
MinimizeAnimationEffect::MinimizeAnimationEffect()
|
||||
{
|
||||
mActiveAnimations = 0;
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowMinimized(EffectWindow*)), this, SLOT(slotWindowMinimized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowUnminimized(EffectWindow*)), this, SLOT(slotWindowUnminimized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowMinimized(KWin::EffectWindow*)), this, SLOT(slotWindowMinimized(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowUnminimized(KWin::EffectWindow*)), this, SLOT(slotWindowUnminimized(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -46,9 +46,9 @@ public:
|
|||
virtual bool isActive() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotWindowMinimized(EffectWindow *w);
|
||||
void slotWindowUnminimized(EffectWindow *w);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
void slotWindowMinimized(KWin::EffectWindow *w);
|
||||
void slotWindowUnminimized(KWin::EffectWindow *w);
|
||||
|
||||
private:
|
||||
QHash< EffectWindow*, QTimeLine* > mTimeLineWindows;
|
||||
|
|
|
@ -104,15 +104,15 @@ PresentWindowsEffect::PresentWindowsEffect()
|
|||
connect(c, SIGNAL(globalShortcutChanged(QKeySequence)), this, SLOT(globalShortcutChangedClass(QKeySequence)));
|
||||
shortcutClass = c->globalShortcut();
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowGeometryShapeChanged(EffectWindow*,QRect)), this, SLOT(slotWindowGeometryShapeChanged(EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowGeometryShapeChanged(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowGeometryShapeChanged(KWin::EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(tabBoxAdded(int)), this, SLOT(slotTabBoxAdded(int)));
|
||||
connect(effects, SIGNAL(tabBoxClosed()), this, SLOT(slotTabBoxClosed()));
|
||||
connect(effects, SIGNAL(tabBoxUpdated()), this, SLOT(slotTabBoxUpdated()));
|
||||
connect(effects, SIGNAL(tabBoxKeyEvent(QKeyEvent*)), this, SLOT(slotTabBoxKeyEvent(QKeyEvent*)));
|
||||
connect(effects, SIGNAL(propertyNotify(EffectWindow*,long)), this, SLOT(slotPropertyNotify(EffectWindow*,long)));
|
||||
connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long)));
|
||||
}
|
||||
|
||||
PresentWindowsEffect::~PresentWindowsEffect()
|
||||
|
|
|
@ -148,17 +148,17 @@ public slots:
|
|||
void globalShortcutChangedAll(const QKeySequence& seq);
|
||||
void globalShortcutChangedClass(const QKeySequence& seq);
|
||||
// EffectsHandler
|
||||
void slotWindowAdded(EffectWindow *w);
|
||||
void slotWindowClosed(EffectWindow *w);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotWindowGeometryShapeChanged(EffectWindow *w, const QRect &old);
|
||||
void slotWindowAdded(KWin::EffectWindow *w);
|
||||
void slotWindowClosed(KWin::EffectWindow *w);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
void slotWindowGeometryShapeChanged(KWin::EffectWindow *w, const QRect &old);
|
||||
// Tab box
|
||||
void slotTabBoxAdded(int mode);
|
||||
void slotTabBoxClosed();
|
||||
void slotTabBoxUpdated();
|
||||
void slotTabBoxKeyEvent(QKeyEvent* event);
|
||||
// atoms
|
||||
void slotPropertyNotify(EffectWindow* w, long atom);
|
||||
void slotPropertyNotify(KWin::EffectWindow* w, long atom);
|
||||
|
||||
private slots:
|
||||
void closeWindow();
|
||||
|
|
|
@ -41,9 +41,9 @@ ResizeEffect::ResizeEffect()
|
|||
, m_resizeWindow(0)
|
||||
{
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowStartUserMovedResized(EffectWindow*)), this, SLOT(slotWindowStartUserMovedResized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStepUserMovedResized(EffectWindow*,QRect)), this, SLOT(slotWindowStepUserMovedResized(EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowFinishUserMovedResized(EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStartUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowStartUserMovedResized(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStepUserMovedResized(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowStepUserMovedResized(KWin::EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowFinishUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
ResizeEffect::~ResizeEffect()
|
||||
|
|
|
@ -43,9 +43,9 @@ public:
|
|||
virtual void reconfigure(ReconfigureFlags);
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowStartUserMovedResized(EffectWindow *w);
|
||||
void slotWindowStepUserMovedResized(EffectWindow *w, const QRect &geometry);
|
||||
void slotWindowFinishUserMovedResized(EffectWindow *w);
|
||||
void slotWindowStartUserMovedResized(KWin::EffectWindow *w);
|
||||
void slotWindowStepUserMovedResized(KWin::EffectWindow *w, const QRect &geometry);
|
||||
void slotWindowFinishUserMovedResized(KWin::EffectWindow *w);
|
||||
|
||||
private:
|
||||
enum Feature { TextureScale = 1 << 0, Outline = 1 << 1 };
|
||||
|
|
|
@ -29,8 +29,8 @@ KWIN_EFFECT(scalein, ScaleInEffect)
|
|||
ScaleInEffect::ScaleInEffect()
|
||||
: Effect()
|
||||
{
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
void ScaleInEffect::prePaintScreen(ScreenPrePaintData& data, int time)
|
||||
|
|
|
@ -41,8 +41,8 @@ public:
|
|||
virtual bool isActive() const;
|
||||
// TODO react also on virtual desktop changes
|
||||
public Q_SLOTS:
|
||||
void slotWindowAdded(EffectWindow* c);
|
||||
void slotWindowClosed(EffectWindow *c);
|
||||
void slotWindowAdded(KWin::EffectWindow* c);
|
||||
void slotWindowClosed(KWin::EffectWindow *c);
|
||||
private:
|
||||
bool isScaleWindow(EffectWindow* w);
|
||||
QHash< const EffectWindow*, QTimeLine* > mTimeLineWindows;
|
||||
|
|
|
@ -43,7 +43,7 @@ bool ScreenShotEffect::supported()
|
|||
ScreenShotEffect::ScreenShotEffect()
|
||||
: m_scheduledScreenshot(0)
|
||||
{
|
||||
connect ( effects, SIGNAL(windowClosed(EffectWindow*)), SLOT(windowClosed(EffectWindow*)) );
|
||||
connect ( effects, SIGNAL(windowClosed(KWin::EffectWindow*)), SLOT(windowClosed(KWin::EffectWindow*)) );
|
||||
QDBusConnection::sessionBus().registerObject("/Screenshot", this, QDBusConnection::ExportScriptableContents);
|
||||
QDBusConnection::sessionBus().registerService("org.kde.kwin.Screenshot");
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ Q_SIGNALS:
|
|||
Q_SCRIPTABLE void screenshotCreated(qulonglong handle);
|
||||
|
||||
private slots:
|
||||
void windowClosed( EffectWindow* w );
|
||||
void windowClosed( KWin::EffectWindow* w );
|
||||
|
||||
private:
|
||||
void grabPointerImage(QImage& snapshot, int offsetx, int offsety);
|
||||
|
|
|
@ -37,9 +37,9 @@ static const int IsSheetWindow = 0x22A982D5;
|
|||
SheetEffect::SheetEffect()
|
||||
{
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
bool SheetEffect::supported()
|
||||
|
|
|
@ -45,9 +45,9 @@ public:
|
|||
static bool supported();
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowAdded(EffectWindow* c);
|
||||
void slotWindowClosed(EffectWindow *c);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotWindowAdded(KWin::EffectWindow* c);
|
||||
void slotWindowClosed(KWin::EffectWindow *c);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
private:
|
||||
class WindowInfo;
|
||||
typedef QMap< const EffectWindow*, WindowInfo > InfoMap;
|
||||
|
|
|
@ -33,11 +33,11 @@ SlideBackEffect::SlideBackEffect()
|
|||
updateStackingOrder();
|
||||
disabled = false;
|
||||
unminimizedWindow = NULL;
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowActivated(EffectWindow*)), this, SLOT(slotWindowActivated(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowUnminimized(EffectWindow*)), this, SLOT(slotWindowUnminimized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(clientGroupItemSwitched(EffectWindow*,EffectWindow*)), this, SLOT(slotClientGroupItemSwitched(EffectWindow*,EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowActivated(KWin::EffectWindow*)), this, SLOT(slotWindowActivated(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowUnminimized(KWin::EffectWindow*)), this, SLOT(slotWindowUnminimized(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(clientGroupItemSwitched(KWin::EffectWindow*,KWin::EffectWindow*)), this, SLOT(slotClientGroupItemSwitched(KWin::EffectWindow*,KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(tabBoxClosed()), this, SLOT(slotTabBoxClosed()));
|
||||
}
|
||||
|
||||
|
|
|
@ -43,11 +43,11 @@ public:
|
|||
virtual bool isActive() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowAdded(EffectWindow *w);
|
||||
void slotWindowActivated(EffectWindow *w);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotWindowUnminimized(EffectWindow *w);
|
||||
void slotClientGroupItemSwitched(EffectWindow* from, EffectWindow* to);
|
||||
void slotWindowAdded(KWin::EffectWindow *w);
|
||||
void slotWindowActivated(KWin::EffectWindow *w);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
void slotWindowUnminimized(KWin::EffectWindow *w);
|
||||
void slotClientGroupItemSwitched(KWin::EffectWindow* from, KWin::EffectWindow* to);
|
||||
void slotTabBoxClosed();
|
||||
|
||||
private:
|
||||
|
|
|
@ -36,10 +36,10 @@ SlidingPopupsEffect::SlidingPopupsEffect()
|
|||
// TODO hackish way to announce support, make better after 4.0
|
||||
unsigned char dummy = 0;
|
||||
XChangeProperty(display(), rootWindow(), mAtom, mAtom, 8, PropModeReplace, &dummy, 1);
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(propertyNotify(EffectWindow*,long)), this, SLOT(slotPropertyNotify(EffectWindow*,long)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long)));
|
||||
reconfigure(ReconfigureAll);
|
||||
}
|
||||
|
||||
|
|
|
@ -45,10 +45,10 @@ public:
|
|||
// TODO react also on virtual desktop changes
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowAdded(EffectWindow *c);
|
||||
void slotWindowClosed(EffectWindow *c);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotPropertyNotify(EffectWindow *w, long a);
|
||||
void slotWindowAdded(KWin::EffectWindow *c);
|
||||
void slotWindowClosed(KWin::EffectWindow *c);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
void slotPropertyNotify(KWin::EffectWindow *w, long a);
|
||||
private:
|
||||
enum Position {
|
||||
West = 0,
|
||||
|
|
|
@ -35,9 +35,9 @@ SnapHelperEffect::SnapHelperEffect()
|
|||
{
|
||||
m_timeline.setCurveShape(QTimeLine::LinearCurve);
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStartUserMovedResized(EffectWindow*)), this, SLOT(slotWindowStartUserMovedResized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowFinishUserMovedResized(EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStartUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowStartUserMovedResized(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowFinishUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(KWin::EffectWindow*)));
|
||||
|
||||
/*if ( effects->compositingType() == XRenderCompositing )
|
||||
{
|
||||
|
|
|
@ -44,9 +44,9 @@ public:
|
|||
static bool supported();
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowClosed(EffectWindow *w);
|
||||
void slotWindowStartUserMovedResized(EffectWindow *w);
|
||||
void slotWindowFinishUserMovedResized(EffectWindow *w);
|
||||
void slotWindowClosed(KWin::EffectWindow *w);
|
||||
void slotWindowStartUserMovedResized(KWin::EffectWindow *w);
|
||||
void slotWindowFinishUserMovedResized(KWin::EffectWindow *w);
|
||||
|
||||
private:
|
||||
bool m_active;
|
||||
|
|
|
@ -43,10 +43,10 @@ TaskbarThumbnailEffect::TaskbarThumbnailEffect()
|
|||
// TODO hackish way to announce support, make better after 4.0
|
||||
unsigned char dummy = 0;
|
||||
XChangeProperty(display(), rootWindow(), atom, atom, 8, PropModeReplace, &dummy, 1);
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(EffectWindow*)), this, SLOT(slotWindowDeleted(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDamaged(EffectWindow*,QRect)), this, SLOT(slotWindowDamaged(EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(propertyNotify(EffectWindow*,long)), this, SLOT(slotPropertyNotify(EffectWindow*,long)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowDamaged(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowDamaged(KWin::EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long)));
|
||||
}
|
||||
|
||||
TaskbarThumbnailEffect::~TaskbarThumbnailEffect()
|
||||
|
|
|
@ -41,10 +41,10 @@ public:
|
|||
virtual bool isActive() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowAdded(EffectWindow *w);
|
||||
void slotWindowDeleted(EffectWindow *w);
|
||||
void slotWindowDamaged(EffectWindow* w, const QRect& damage);
|
||||
void slotPropertyNotify(EffectWindow *w, long atom);
|
||||
void slotWindowAdded(KWin::EffectWindow *w);
|
||||
void slotWindowDeleted(KWin::EffectWindow *w);
|
||||
void slotWindowDamaged(KWin::EffectWindow* w, const QRect& damage);
|
||||
void slotPropertyNotify(KWin::EffectWindow *w, long atom);
|
||||
private:
|
||||
struct Data {
|
||||
Window window; // thumbnail of this window
|
||||
|
|
|
@ -38,9 +38,9 @@ ThumbnailAsideEffect::ThumbnailAsideEffect()
|
|||
a->setText(i18n("Toggle Thumbnail for Current Window"));
|
||||
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::META + Qt::Key_T));
|
||||
connect(a, SIGNAL(triggered(bool)), this, SLOT(toggleCurrentThumbnail()));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowGeometryShapeChanged(EffectWindow*,QRect)), this, SLOT(slotWindowGeometryShapeChanged(EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowDamaged(EffectWindow*,QRect)), this, SLOT(slotWindowDamaged(EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowGeometryShapeChanged(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowGeometryShapeChanged(KWin::EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowDamaged(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowDamaged(KWin::EffectWindow*,QRect)));
|
||||
reconfigure(ReconfigureAll);
|
||||
}
|
||||
|
||||
|
|
|
@ -45,9 +45,9 @@ public:
|
|||
virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
|
||||
private slots:
|
||||
void toggleCurrentThumbnail();
|
||||
void slotWindowClosed(EffectWindow *w);
|
||||
void slotWindowGeometryShapeChanged(EffectWindow *w, const QRect &old);
|
||||
void slotWindowDamaged(EffectWindow* w, const QRect& damage);
|
||||
void slotWindowClosed(KWin::EffectWindow *w);
|
||||
void slotWindowGeometryShapeChanged(KWin::EffectWindow *w, const QRect &old);
|
||||
void slotWindowDamaged(KWin::EffectWindow* w, const QRect& damage);
|
||||
virtual bool isActive() const;
|
||||
private:
|
||||
void addThumbnail(EffectWindow* w);
|
||||
|
|
|
@ -34,9 +34,9 @@ TranslucencyEffect::TranslucencyEffect()
|
|||
{
|
||||
reconfigure(ReconfigureAll);
|
||||
active = effects->activeWindow();
|
||||
connect(effects, SIGNAL(windowActivated(EffectWindow*)), this, SLOT(slotWindowActivated(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStartUserMovedResized(EffectWindow*)), this, SLOT(slotWindowStartStopUserMovedResized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowFinishUserMovedResized(EffectWindow*)), this, SLOT(slotWindowStartStopUserMovedResized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowActivated(KWin::EffectWindow*)), this, SLOT(slotWindowActivated(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStartUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowStartStopUserMovedResized(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowFinishUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowStartStopUserMovedResized(KWin::EffectWindow*)));
|
||||
}
|
||||
|
||||
void TranslucencyEffect::reconfigure(ReconfigureFlags)
|
||||
|
|
|
@ -38,8 +38,8 @@ public:
|
|||
virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowActivated(EffectWindow* w);
|
||||
void slotWindowStartStopUserMovedResized(EffectWindow *w);
|
||||
void slotWindowActivated(KWin::EffectWindow* w);
|
||||
void slotWindowStartStopUserMovedResized(KWin::EffectWindow *w);
|
||||
|
||||
private:
|
||||
bool isInactive(const EffectWindow *w) const;
|
||||
|
|
|
@ -60,9 +60,9 @@ WindowGeometry::WindowGeometry()
|
|||
a->setText(i18n("Toggle window geometry display (effect only)"));
|
||||
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_F11));
|
||||
connect(a, SIGNAL(triggered(bool)), this, SLOT(toggle()));
|
||||
connect(effects, SIGNAL(windowStartUserMovedResized(EffectWindow*)), this, SLOT(slotWindowStartUserMovedResized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowFinishUserMovedResized(EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStepUserMovedResized(EffectWindow*,QRect)), this, SLOT(slotWindowStepUserMovedResized(EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowStartUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowStartUserMovedResized(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowFinishUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStepUserMovedResized(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowStepUserMovedResized(KWin::EffectWindow*,QRect)));
|
||||
}
|
||||
|
||||
WindowGeometry::~WindowGeometry()
|
||||
|
|
|
@ -42,9 +42,9 @@ public:
|
|||
|
||||
private slots:
|
||||
void toggle();
|
||||
void slotWindowStartUserMovedResized(EffectWindow *w);
|
||||
void slotWindowFinishUserMovedResized(EffectWindow *w);
|
||||
void slotWindowStepUserMovedResized(EffectWindow *w, const QRect &geometry);
|
||||
void slotWindowStartUserMovedResized(KWin::EffectWindow *w);
|
||||
void slotWindowFinishUserMovedResized(KWin::EffectWindow *w);
|
||||
void slotWindowStepUserMovedResized(KWin::EffectWindow *w, const QRect &geometry);
|
||||
private:
|
||||
EffectWindow *myResizeWindow;
|
||||
EffectFrame *myMeasure[3];
|
||||
|
|
|
@ -165,12 +165,12 @@ KWIN_EFFECT_SUPPORTED(wobblywindows, WobblyWindowsEffect::supported())
|
|||
WobblyWindowsEffect::WobblyWindowsEffect()
|
||||
{
|
||||
reconfigure(ReconfigureAll);
|
||||
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(EffectWindow*)), this, SLOT(slotWindowClosed(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStartUserMovedResized(EffectWindow*)), this, SLOT(slotWindowStartUserMovedResized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStepUserMovedResized(EffectWindow*,QRect)), this, SLOT(slotWindowStepUserMovedResized(EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowFinishUserMovedResized(EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowMaximizedStateChanged(EffectWindow*,bool,bool)), this, SLOT(slotWindowMaximizeStateChanged(EffectWindow*,bool,bool)));
|
||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowClosed(KWin::EffectWindow*)), this, SLOT(slotWindowClosed(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStartUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowStartUserMovedResized(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowStepUserMovedResized(KWin::EffectWindow*,QRect)), this, SLOT(slotWindowStepUserMovedResized(KWin::EffectWindow*,QRect)));
|
||||
connect(effects, SIGNAL(windowFinishUserMovedResized(KWin::EffectWindow*)), this, SLOT(slotWindowFinishUserMovedResized(KWin::EffectWindow*)));
|
||||
connect(effects, SIGNAL(windowMaximizedStateChanged(KWin::EffectWindow*,bool,bool)), this, SLOT(slotWindowMaximizeStateChanged(KWin::EffectWindow*,bool,bool)));
|
||||
}
|
||||
|
||||
WobblyWindowsEffect::~WobblyWindowsEffect()
|
||||
|
|
|
@ -58,12 +58,12 @@ public:
|
|||
static bool supported();
|
||||
|
||||
public Q_SLOTS:
|
||||
void slotWindowAdded(EffectWindow *w);
|
||||
void slotWindowClosed(EffectWindow *w);
|
||||
void slotWindowStartUserMovedResized(EffectWindow *w);
|
||||
void slotWindowStepUserMovedResized(EffectWindow *w, const QRect &geometry);
|
||||
void slotWindowFinishUserMovedResized(EffectWindow *w);
|
||||
void slotWindowMaximizeStateChanged(EffectWindow *w, bool horizontal, bool vertical);
|
||||
void slotWindowAdded(KWin::EffectWindow *w);
|
||||
void slotWindowClosed(KWin::EffectWindow *w);
|
||||
void slotWindowStartUserMovedResized(KWin::EffectWindow *w);
|
||||
void slotWindowStepUserMovedResized(KWin::EffectWindow *w, const QRect &geometry);
|
||||
void slotWindowFinishUserMovedResized(KWin::EffectWindow *w);
|
||||
void slotWindowMaximizeStateChanged(KWin::EffectWindow *w, bool horizontal, bool vertical);
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -51,8 +51,8 @@ void AnimationEffect::init()
|
|||
* connect it we can provide auto-referencing of animated and closed windows, since at the time
|
||||
* our slot will be called, the slot of the subclass has been (SIGNAL/SLOT connections are FIFO)
|
||||
* and has pot. started an animation so we have the window in our hash :) */
|
||||
connect ( effects, SIGNAL(windowClosed(EffectWindow*)), SLOT(_windowClosed(EffectWindow*)) );
|
||||
connect ( effects, SIGNAL(windowDeleted(EffectWindow*)), SLOT(_windowDeleted(EffectWindow*)) );
|
||||
connect ( effects, SIGNAL(windowClosed(KWin::EffectWindow*)), SLOT(_windowClosed(KWin::EffectWindow*)) );
|
||||
connect ( effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), SLOT(_windowDeleted(KWin::EffectWindow*)) );
|
||||
}
|
||||
|
||||
bool AnimationEffect::isActive() const
|
||||
|
|
|
@ -167,8 +167,8 @@ private:
|
|||
private Q_SLOTS:
|
||||
void init();
|
||||
void triggerRepaint();
|
||||
void _windowClosed( EffectWindow* w );
|
||||
void _windowDeleted( EffectWindow* w );
|
||||
void _windowClosed( KWin::EffectWindow* w );
|
||||
void _windowDeleted( KWin::EffectWindow* w );
|
||||
private:
|
||||
typedef QMap< EffectWindow*, QList<AniData> > AniMap;
|
||||
AnimationEffectPrivate * const d_ptr;
|
||||
|
|
|
@ -828,7 +828,7 @@ Q_SIGNALS:
|
|||
* @param w The added window
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowAdded(EffectWindow *w);
|
||||
void windowAdded(KWin::EffectWindow *w);
|
||||
/**
|
||||
* Signal emitted when a window is being removed from the Workspace.
|
||||
* An effect which wants to animate the window closing should connect
|
||||
|
@ -837,13 +837,13 @@ Q_SIGNALS:
|
|||
* @param w The window which is being closed
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowClosed(EffectWindow *w);
|
||||
void windowClosed(KWin::EffectWindow *w);
|
||||
/**
|
||||
* Signal emitted when a window get's activated.
|
||||
* @param w The new active window, or @c NULL if there is no active window.
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowActivated(EffectWindow *w);
|
||||
void windowActivated(KWin::EffectWindow *w);
|
||||
/**
|
||||
* Signal emitted when a window is deleted.
|
||||
* This means that a closed window is not referenced any more.
|
||||
|
@ -855,7 +855,7 @@ Q_SIGNALS:
|
|||
* @see windowClosed
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowDeleted(EffectWindow *w);
|
||||
void windowDeleted(KWin::EffectWindow *w);
|
||||
/**
|
||||
* Signal emitted when a user begins a window move or resize operation.
|
||||
* To figure out whether the user resizes or moves the window use
|
||||
|
@ -871,7 +871,7 @@ Q_SIGNALS:
|
|||
* @see EffectWindow::isUserResize
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowStartUserMovedResized(EffectWindow *w);
|
||||
void windowStartUserMovedResized(KWin::EffectWindow *w);
|
||||
/**
|
||||
* Signal emitted during a move/resize operation when the user changed the geometry.
|
||||
* Please note: KWin supports two operation modes. In one mode all changes are applied
|
||||
|
@ -888,7 +888,7 @@ Q_SIGNALS:
|
|||
* @see EffectWindow::isUserResize
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowStepUserMovedResized(EffectWindow *w, const QRect &geometry);
|
||||
void windowStepUserMovedResized(KWin::EffectWindow *w, const QRect &geometry);
|
||||
/**
|
||||
* Signal emitted when the user finishes move/resize of window @p w.
|
||||
* @param w The window which has been moved/resized
|
||||
|
@ -896,7 +896,7 @@ Q_SIGNALS:
|
|||
* @see windowFinishUserMovedResized
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowFinishUserMovedResized(EffectWindow *w);
|
||||
void windowFinishUserMovedResized(KWin::EffectWindow *w);
|
||||
/**
|
||||
* Signal emitted when the maximized state of the window @p w changed.
|
||||
* A window can be in one of four states:
|
||||
|
@ -909,7 +909,7 @@ Q_SIGNALS:
|
|||
* @param vertical If @c true maximized vertically
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowMaximizedStateChanged(EffectWindow *w, bool horizontal, bool vertical);
|
||||
void windowMaximizedStateChanged(KWin::EffectWindow *w, bool horizontal, bool vertical);
|
||||
/**
|
||||
* Signal emitted when the geometry or shape of a window changed.
|
||||
* This is caused if the window changes geometry without user interaction.
|
||||
|
@ -920,7 +920,7 @@ Q_SIGNALS:
|
|||
* @see windowUserMovedResized
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowGeometryShapeChanged(EffectWindow *w, const QRect &old);
|
||||
void windowGeometryShapeChanged(KWin::EffectWindow *w, const QRect &old);
|
||||
/**
|
||||
* Signal emitted when the windows opacity is changed.
|
||||
* @param w The window whose opacity level is changed.
|
||||
|
@ -928,19 +928,19 @@ Q_SIGNALS:
|
|||
* @param newOpacity The new opacity level
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowOpacityChanged(EffectWindow *w, qreal oldOpacity, qreal newOpacity);
|
||||
void windowOpacityChanged(KWin::EffectWindow *w, qreal oldOpacity, qreal newOpacity);
|
||||
/**
|
||||
* Signal emitted when a window got minimized.
|
||||
* @param w The window which was minimized
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowMinimized(EffectWindow *w);
|
||||
void windowMinimized(KWin::EffectWindow *w);
|
||||
/**
|
||||
* Signal emitted when a window got unminimized.
|
||||
* @param w The window which was unminimized
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowUnminimized(EffectWindow *w);
|
||||
void windowUnminimized(KWin::EffectWindow *w);
|
||||
/**
|
||||
* Signal emitted when an area of a window is scheduled for repainting.
|
||||
* Use this signal in an effect if another area needs to be synced as well.
|
||||
|
@ -948,7 +948,7 @@ Q_SIGNALS:
|
|||
* @param r The damaged rect
|
||||
* @since 4.7
|
||||
**/
|
||||
void windowDamaged(EffectWindow *w, const QRect &r);
|
||||
void windowDamaged(KWin::EffectWindow *w, const QRect &r);
|
||||
/**
|
||||
* Signal emitted when a tabbox is added.
|
||||
* An effect who wants to replace the tabbox with itself should use @link refTabBox.
|
||||
|
@ -988,9 +988,9 @@ Q_SIGNALS:
|
|||
* @since 4.7
|
||||
**/
|
||||
void tabBoxKeyEvent(QKeyEvent* event);
|
||||
void currentTabAboutToChange(EffectWindow* from, EffectWindow* to);
|
||||
void tabAdded(EffectWindow* from, EffectWindow* to); // from merged with to
|
||||
void tabRemoved(EffectWindow* c, EffectWindow* group); // c removed from group
|
||||
void currentTabAboutToChange(KWin::EffectWindow* from, KWin::EffectWindow* to);
|
||||
void tabAdded(KWin::EffectWindow* from, KWin::EffectWindow* to); // from merged with to
|
||||
void tabRemoved(KWin::EffectWindow* c, KWin::EffectWindow* group); // c removed from group
|
||||
/**
|
||||
* Signal emitted when mouse changed.
|
||||
* If an effect needs to get updated mouse positions, it needs to first call @link startMousePolling.
|
||||
|
@ -1017,7 +1017,7 @@ Q_SIGNALS:
|
|||
* @param atom The property
|
||||
* @since 4.7
|
||||
*/
|
||||
void propertyNotify(EffectWindow* w, long atom);
|
||||
void propertyNotify(KWin::EffectWindow* w, long atom);
|
||||
/**
|
||||
* Requests to show an outline. An effect providing to show an outline should
|
||||
* connect to the signal and render an outline.
|
||||
|
@ -2156,6 +2156,7 @@ void Motion<T>::finish()
|
|||
}
|
||||
|
||||
} // namespace
|
||||
Q_DECLARE_METATYPE(KWin::EffectWindow*)
|
||||
|
||||
/** @} */
|
||||
|
||||
|
|
Loading…
Reference in a new issue