summaryrefslogtreecommitdiff
path: root/noncore/games/mindbreaker/mindbreaker.h
Unidiff
Diffstat (limited to 'noncore/games/mindbreaker/mindbreaker.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/mindbreaker/mindbreaker.h27
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 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of the Qtopia Environment.
5** 5**
@@ -53,2 +53,3 @@ class Peg;
53class QToolButton; 53class QToolButton;
54class QTimer;
54 55
@@ -58,3 +59,3 @@ class MindBreakerBoard : public QCanvasView // QWidget
58public: 59public:
59 MindBreakerBoard(QCanvas &c, QWidget *parent=0, const char *name=0, int wFlags=0 ); 60 MindBreakerBoard(QWidget *parent=0, const char *name=0, int wFlags=0 );
60 ~MindBreakerBoard(); 61 ~MindBreakerBoard();
@@ -62,2 +63,6 @@ public:
62 void getScore(int *, int *); 63 void getScore(int *, int *);
64
65 void resizeEvent(QResizeEvent*);
66 void fixSize();
67
63signals: 68signals:
@@ -69,2 +74,5 @@ public slots:
69 74
75private slots:
76 void doFixSize();
77
70protected: 78protected:
@@ -73,5 +81,9 @@ protected:
73 void contentsMouseReleaseEvent(QMouseEvent *); 81 void contentsMouseReleaseEvent(QMouseEvent *);
74 void resizeEvent(QResizeEvent *);
75 82
76private: 83private:
84 QCanvas cnv;
85
86 void readConfig();
87 void writeConfig();
88
77 void drawBackground(); 89 void drawBackground();
@@ -102,2 +114,4 @@ private:
102 int total_games; 114 int total_games;
115
116 QTimer *widthTimer;
103}; 117};
@@ -109,3 +123,3 @@ public:
109 MindBreaker(QWidget *parent=0, const char *name=0, int wFlags=0 ); 123 MindBreaker(QWidget *parent=0, const char *name=0, int wFlags=0 );
110 124 static QString appName() { return QString::fromLatin1("mindbreaker"); }
111public slots: 125public slots:
@@ -113,2 +127,5 @@ public slots:
113 127
128protected:
129 void resizeEvent( QResizeEvent * );
130
114private: 131private: