2007-01-28 01:28:19 +00:00
|
|
|
//
|
|
|
|
|
// C++ Interface: mycardspixmaplabel
|
|
|
|
|
//
|
|
|
|
|
// Description:
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// Author: FThauer FHammer <f.thauer@web.de>, (C) 2007
|
|
|
|
|
//
|
|
|
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
#ifndef MYCARDSPIXMAPLABEL_H
|
|
|
|
|
#define MYCARDSPIXMAPLABEL_H
|
|
|
|
|
|
|
|
|
|
#include <QtGui>
|
|
|
|
|
#include <QtCore>
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
class MyCardsPixmapLabel : public QLabel
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
MyCardsPixmapLabel(QFrame*);
|
|
|
|
|
|
|
|
|
|
~MyCardsPixmapLabel();
|
|
|
|
|
|
2007-01-29 00:53:20 +00:00
|
|
|
void setIsFlipside(bool theValue){ isFlipside = theValue;}
|
|
|
|
|
bool getIsFlipside() const{ return isFlipside;}
|
2007-01-28 01:28:19 +00:00
|
|
|
|
2007-01-28 14:48:18 +00:00
|
|
|
void startFadeOut(int);
|
2007-01-29 23:57:11 +00:00
|
|
|
void startFlipCards(int);
|
2007-01-29 00:53:20 +00:00
|
|
|
|
2007-01-28 01:28:19 +00:00
|
|
|
void paintEvent(QPaintEvent * event);
|
|
|
|
|
|
2007-01-29 00:53:20 +00:00
|
|
|
|
2007-01-28 01:28:19 +00:00
|
|
|
public slots:
|
|
|
|
|
|
2007-01-29 00:53:20 +00:00
|
|
|
void setPixmap ( const QPixmap &, const bool );
|
2007-01-28 01:28:19 +00:00
|
|
|
void nextFadeOutFrame();
|
2007-01-29 23:57:11 +00:00
|
|
|
void nextFlipCardsFrame();
|
2007-01-28 01:28:19 +00:00
|
|
|
|
2007-01-29 00:53:20 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
qreal frameOpacity;
|
|
|
|
|
qreal opacityRaiseIntervall;
|
2007-01-29 23:57:11 +00:00
|
|
|
QTimer *fadeOutTimer;
|
|
|
|
|
QTimer *flipCardsTimer;
|
|
|
|
|
|
2007-01-29 00:53:20 +00:00
|
|
|
bool isFlipside;
|
|
|
|
|
bool fadeOutAction;
|
2007-01-28 01:28:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|