Files
pokerth/src/gui/qt/cards/mycardspixmaplabel.h
T

51 lines
833 B
C++
Raw Normal View History

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
void startFadeOut(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 00:53:20 +00:00
private:
qreal frameOpacity;
qreal opacityRaiseIntervall;
QTimer *timer;
bool isFlipside;
bool fadeOutAction;
2007-01-28 01:28:19 +00:00
};
#endif