Diffstat (limited to 'noncore/games/mindbreaker/mindbreaker.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/mindbreaker/mindbreaker.h | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/noncore/games/mindbreaker/mindbreaker.h b/noncore/games/mindbreaker/mindbreaker.h index fca649a..3132e80 100644 --- a/noncore/games/mindbreaker/mindbreaker.h +++ b/noncore/games/mindbreaker/mindbreaker.h @@ -1,5 +1,5 @@ /********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. +** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. ** -** This file is part of Qtopia Environment. +** This file is part of the Qtopia Environment. ** @@ -53,2 +53,3 @@ class Peg; class QToolButton; +class QTimer; @@ -58,3 +59,3 @@ class MindBreakerBoard : public QCanvasView // QWidget public: - MindBreakerBoard(QCanvas &c, QWidget *parent=0, const char *name=0, int wFlags=0 ); + MindBreakerBoard(QWidget *parent=0, const char *name=0, int wFlags=0 ); ~MindBreakerBoard(); @@ -62,2 +63,6 @@ public: void getScore(int *, int *); + + void resizeEvent(QResizeEvent*); + void fixSize(); + signals: @@ -69,2 +74,5 @@ public slots: +private slots: + void doFixSize(); + protected: @@ -73,5 +81,9 @@ protected: void contentsMouseReleaseEvent(QMouseEvent *); - void resizeEvent(QResizeEvent *); private: + QCanvas cnv; + + void readConfig(); + void writeConfig(); + void drawBackground(); @@ -102,2 +114,4 @@ private: int total_games; + + QTimer *widthTimer; }; @@ -109,3 +123,3 @@ public: MindBreaker(QWidget *parent=0, const char *name=0, int wFlags=0 ); - + static QString appName() { return QString::fromLatin1("mindbreaker"); } public slots: @@ -113,2 +127,5 @@ public slots: +protected: + void resizeEvent( QResizeEvent * ); + private: |