2006-10-29 19:08:09 +00:00
|
|
|
/*****************************************************************
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org>
|
|
|
|
|
|
|
|
You can Freely distribute this program under the GNU General Public
|
|
|
|
License. See the file "COPYING" for the exact licensing terms.
|
|
|
|
******************************************************************/
|
|
|
|
|
2007-04-16 19:52:21 +00:00
|
|
|
#ifndef KWIN_DEMO_SHIFTWORKSPACEUP_H
|
|
|
|
#define KWIN_DEMO_SHIFTWORKSPACEUP_H
|
2006-10-29 19:08:09 +00:00
|
|
|
|
|
|
|
#include <qtimer.h>
|
|
|
|
|
2007-04-12 10:16:02 +00:00
|
|
|
#include <kwineffects.h>
|
2006-10-29 19:08:09 +00:00
|
|
|
|
2007-04-05 12:07:35 +00:00
|
|
|
namespace KWin
|
2006-10-29 19:08:09 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
class ShiftWorkspaceUpEffect
|
|
|
|
: public QObject, public Effect
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2007-02-04 22:19:17 +00:00
|
|
|
ShiftWorkspaceUpEffect();
|
2006-10-29 19:08:09 +00:00
|
|
|
virtual void prePaintScreen( int* mask, QRegion* region, int time );
|
|
|
|
virtual void paintScreen( int mask, QRegion region, ScreenPaintData& data );
|
|
|
|
virtual void postPaintScreen();
|
|
|
|
private slots:
|
|
|
|
void tick();
|
|
|
|
private:
|
|
|
|
QTimer timer;
|
|
|
|
bool up;
|
|
|
|
int diff;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|