mainwindow --> gametable
This commit is contained in:
1 parent
4b04aedc3f
commit
f2defd033d
59 files changed
+14825
-7600
No files matched your search
Executable
+93
@@ -0,0 +1,93 @@
|
||||
//
|
||||
// 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 <iostream>
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtCore>
|
||||
|
||||
class gameTableImpl;
|
||||
|
||||
class MyCardsPixmapLabel : public QLabel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MyCardsPixmapLabel(QFrame*);
|
||||
|
||||
~MyCardsPixmapLabel();
|
||||
|
||||
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;}
|
||||
|
||||
void startFadeOut(int);
|
||||
void startFlipCards(int, const QPixmap & , const QPixmap &);
|
||||
void stopFlipCardsAnimation();
|
||||
|
||||
void paintEvent(QPaintEvent * event);
|
||||
|
||||
signals:
|
||||
void signalFastFlipCards(bool);
|
||||
|
||||
|
||||
public slots:
|
||||
|
||||
void setPixmap ( const QPixmap &, const bool );
|
||||
void setFrontPixmap ( const QPixmap &);
|
||||
|
||||
void nextFadeOutFrame();
|
||||
void nextFlipCardsFrame();
|
||||
|
||||
void fastFlipCards(bool front);
|
||||
|
||||
// void mouseMoveEvent ( QMouseEvent *);
|
||||
|
||||
void mousePressEvent ( QMouseEvent *);
|
||||
void mouseReleaseEvent ( QMouseEvent *);
|
||||
|
||||
private:
|
||||
|
||||
gameTableImpl* myW;
|
||||
|
||||
qreal frameOpacity;
|
||||
qreal opacityRaiseInterval;
|
||||
|
||||
qreal flipCardsScaleIntervall;
|
||||
qreal frameFlipCardsAction1Size;
|
||||
qreal frameFlipCardsAction2Size;
|
||||
|
||||
QTimer *fadeOutTimer;
|
||||
QTimer *flipCardsTimer;
|
||||
|
||||
bool isFlipside;
|
||||
bool fadeOutAction;
|
||||
bool flipCardsAction1;
|
||||
bool flipCardsAction2;
|
||||
bool stopFlipCards;
|
||||
|
||||
bool mousePress;
|
||||
bool fastFlipCardsFront;
|
||||
|
||||
QPixmap front;
|
||||
QPixmap flipside;
|
||||
QPixmap myHiddenFront;
|
||||
|
||||
friend class gameTableImpl;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user