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

113 lines
1.9 KiB
C++
Raw Normal View History

2008-05-05 07:46:19 +00:00
//
// C++ Interface: mycardspixmaplabel
//
// Description:
2008-05-05 07:46:19 +00:00
//
//
// 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 <iostream>
#include <QtGui>
#include <QtCore>
class gameTableImpl;
class MyCardsPixmapLabel : public QLabel
{
Q_OBJECT
2008-05-05 07:46:19 +00:00
public:
MyCardsPixmapLabel(QGroupBox*);
2008-05-05 07:46:19 +00:00
~MyCardsPixmapLabel();
2008-05-05 07:46:19 +00:00
void setMyW ( gameTableImpl* theValue ) {
myW = theValue;
}
void setIsFlipside(bool theValue) {
isFlipside = theValue;
}
bool getIsFlipside() const {
return isFlipside;
}
void setFadeOutAction(bool theValue) {
fadeOutAction = theValue;
}
bool getFadeOutAction() const {
return fadeOutAction;
}
2008-05-05 07:46:19 +00:00
void startFadeOut(int);
void stopFadeOut();
2008-05-05 07:46:19 +00:00
void startFlipCards(int, const QPixmap & , const QPixmap &);
void stopFlipCardsAnimation();
void setFlipsidePix(QPixmap p) {
flipside = p;
}
2008-05-05 07:46:19 +00:00
void paintEvent(QPaintEvent * event);
signals:
void signalFastFlipCards(bool);
public slots:
2008-05-05 07:46:19 +00:00
void setPixmap ( const QPixmap &, const bool );
2009-03-25 22:59:01 +00:00
void setHiddenFrontPixmap ( const QPixmap &);
2008-05-05 07:46:19 +00:00
void nextFadeOutFrame();
void nextFlipCardsFrame();
2008-05-05 07:46:19 +00:00
void fastFlipCards(bool front);
// void mouseMoveEvent ( QMouseEvent *);
2008-05-05 07:46:19 +00:00
void mousePressEvent ( QMouseEvent *);
void mouseReleaseEvent ( QMouseEvent *);
void setFront ( const QPixmap& theValue ) {
front = theValue;
}
2009-03-25 22:59:01 +00:00
2008-05-05 07:46:19 +00:00
private:
gameTableImpl* myW;
2008-05-05 07:46:19 +00:00
qreal frameOpacity;
qreal opacityRaiseInterval;
qreal flipCardsScaleIntervall;
qreal frameFlipCardsAction1Size;
qreal frameFlipCardsAction2Size;
QTimer *fadeOutTimer;
QTimer *flipCardsTimer;
2008-05-05 07:46:19 +00:00
bool isFlipside;
bool fadeOutAction;
bool flipCardsAction1;
bool flipCardsAction2;
bool stopFlipCards;
bool mousePress;
bool fastFlipCardsFront;
2008-05-05 07:46:19 +00:00
QPixmap front;
QPixmap flipside;
QPixmap myHiddenFront;
friend class gameTableImpl;
2008-05-05 07:46:19 +00:00
};
#endif