1/***************************************************************************
2* KBlocks, a falling blocks game for KDE *
3* Copyright (C) 2009 Mauricio Piacentini <mauricio@tabuleiro.com> *
4* Zhongjie Cai <squall.leonhart.cai@gmail.com> *
5* *
6* This program is free software; you can redistribute it and/or modify *
7* it under the terms of the GNU General Public License as published by *
8* the Free Software Foundation; either version 2 of the License, or *
9* (at your option) any later version. *
10***************************************************************************/
11#ifndef KBLOCKSANIMFADE_H
12#define KBLOCKSANIMFADE_H
13
14#include <QTimeLine>
15
16#include "KBlocksSvgItem.h"
17
18class KBlocksAnimFade : public QObject
19{
20 Q_OBJECT
21
22 public:
23 KBlocksAnimFade(const QList<KBlocksSvgItem*> & items, int duration, QTimeLine::Direction direction);
24 ~KBlocksAnimFade();
25
26 signals:
27 void animationFinished();
28
29 private slots:
30 void valueChanged(qreal value);
31 void endAnimation();
32
33 private:
34 QTimeLine* mpTimeLine;
35 QList<KBlocksSvgItem*> mItemList;
36};
37
38#endif
39