Diffstat (limited to 'noncore/games/tetrix/qtetrix.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/tetrix/qtetrix.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/games/tetrix/qtetrix.h b/noncore/games/tetrix/qtetrix.h index c8959c5..8c44b77 100644 --- a/noncore/games/tetrix/qtetrix.h +++ b/noncore/games/tetrix/qtetrix.h | |||
@@ -48,28 +48,36 @@ private: | |||
48 | }; | 48 | }; |
49 | 49 | ||
50 | 50 | ||
51 | class QTetrix : public QMainWindow | 51 | class QTetrix : public QMainWindow |
52 | { | 52 | { |
53 | Q_OBJECT | 53 | Q_OBJECT |
54 | public: | 54 | public: |
55 | static QString appName() { return QString::fromLatin1("tetrix"); } | 55 | static QString appName() { return QString::fromLatin1("tetrix"); } |
56 | QTetrix( QWidget *parent=0, const char *name=0, WFlags f=0 ); | 56 | QTetrix( QWidget *parent=0, const char *name=0, WFlags f=0 ); |
57 | void startGame() { board->startGame(); } | 57 | void startGame() { board->startGame(); } |
58 | 58 | ||
59 | public slots: | 59 | public slots: |
60 | void setup(); | ||
60 | void gameOver(); | 61 | void gameOver(); |
61 | void quit(); | 62 | void quit(); |
63 | |||
64 | void setNext( int x, int y, QColor *color ); | ||
65 | // void setScore( int score ); | ||
66 | // void setLevel( int level ); | ||
67 | // void setLines( int lines ); | ||
68 | |||
62 | private: | 69 | private: |
63 | void keyPressEvent( QKeyEvent *e ) { board->keyPressEvent(e); } | 70 | void keyPressEvent( QKeyEvent *e ) { board->keyPressEvent(e); } |
71 | void resizeEvent( QResizeEvent * ); | ||
64 | 72 | ||
65 | QTetrixBoard *board; | 73 | QTetrixBoard *board; |
66 | ShowNextPiece *showNext; | 74 | ShowNextPiece *showNext; |
67 | QLabel *showScore; | 75 | QLabel *showScore; |
68 | QLabel *showLevel; | 76 | QLabel *showLevel; |
69 | QLabel *showLines; | 77 | QLabel *showLines; |
70 | }; | 78 | }; |
71 | 79 | ||
72 | 80 | ||
73 | void drawTetrixButton( QPainter *, int x, int y, int w, int h, | 81 | void drawTetrixButton( QPainter *, int x, int y, int w, int h, |
74 | const QColor *color ); | 82 | const QColor *color ); |
75 | 83 | ||