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

69 lines
1.2 KiB
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;}
void setFadeOutAction(bool theValue) { fadeOutAction = theValue; }
bool getFadeOutAction() const { return fadeOutAction;}
void startFadeOut(int);
2007-01-30 19:13:00 +00:00
void startFlipCards(int, QPixmap, QPixmap*);
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-30 19:13:00 +00:00
qreal flipCardsScaleIntervall;
qreal frameFlipCardsAction1Size;
qreal frameFlipCardsAction2Size;
2007-01-29 23:57:11 +00:00
QTimer *fadeOutTimer;
QTimer *flipCardsTimer;
2007-01-30 19:13:00 +00:00
QPixmap *front;
QPixmap *flipside;
2007-01-29 00:53:20 +00:00
bool isFlipside;
bool fadeOutAction;
2007-01-30 19:13:00 +00:00
bool flipCardsAction1;
bool flipCardsAction2;
2007-01-28 01:28:19 +00:00
};
#endif