not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kwin / effects / test / demo_shiftworkspaceup.h
blob1f97f251afdde9167a3bb24ef67542e69c837dac
1 /*****************************************************************
2 KWin - the KDE window manager
3 This file is part of the KDE project.
5 Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org>
7 You can Freely distribute this program under the GNU General Public
8 License. See the file "COPYING" for the exact licensing terms.
9 ******************************************************************/
11 #ifndef KWIN_DEMO_SHIFTWORKSPACEUP_H
12 #define KWIN_DEMO_SHIFTWORKSPACEUP_H
14 #include <qtimer.h>
16 #include <kwineffects.h>
18 namespace KWin
21 class ShiftWorkspaceUpEffect
22 : public QObject, public Effect
24 Q_OBJECT
25 public:
26 ShiftWorkspaceUpEffect();
27 virtual void prePaintScreen( ScreenPrePaintData& data, int time );
28 virtual void paintScreen( int mask, QRegion region, ScreenPaintData& data );
29 virtual void postPaintScreen();
30 private slots:
31 void tick();
32 private:
33 QTimer timer;
34 bool up;
35 int diff;
38 } // namespace
40 #endif