summaryrefslogtreecommitdiff
path: root/noncore/games/parashoot/interface.h
Unidiff
Diffstat (limited to 'noncore/games/parashoot/interface.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/parashoot/interface.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/noncore/games/parashoot/interface.h b/noncore/games/parashoot/interface.h
index 5abbe0b..dd73f53 100644
--- a/noncore/games/parashoot/interface.h
+++ b/noncore/games/parashoot/interface.h
@@ -1,6 +1,6 @@
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**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
@@ -23,5 +23,5 @@
23#include "helicopter.h" 23#include "helicopter.h"
24 24
25#include <qpe/sound.h> 25#include <qtopia/sound.h>
26 26
27#include <qmainwindow.h> 27#include <qmainwindow.h>
@@ -33,13 +33,14 @@ class Helicopter;
33 33
34//enum Direction{ 34//enum Direction{
35// left, right, up, down }; 35// left, right, up, down };
36 36
37class ParaShoot : public QMainWindow { 37class ParaShoot : public QMainWindow {
38 Q_OBJECT 38 Q_OBJECT
39 39
40public: 40public:
41 static QString appName() { return QString::fromLatin1("parashoot"); }
42 ParaShoot(QWidget* parent=0, const char* name=0, WFlags f=0); 41 ParaShoot(QWidget* parent=0, const char* name=0, WFlags f=0);
43 42 static QString appName() {
43 return QString::fromLatin1("parashoot");
44 }
44 void clear(); 45 void clear();
45 void gameOver(); 46 void gameOver();
@@ -52,5 +53,7 @@ protected:
52 virtual void keyReleaseEvent(QKeyEvent*); 53 virtual void keyReleaseEvent(QKeyEvent*);
53 virtual void resizeEvent(QResizeEvent *e); 54 virtual void resizeEvent(QResizeEvent *e);
54 55 virtual void focusOutEvent(QFocusEvent *);
56 virtual void focusInEvent(QFocusEvent *);
57
55private slots: 58private slots:
56 void increaseScore(int); 59 void increaseScore(int);
@@ -65,5 +68,4 @@ private:
65 Cannon* cannon; 68 Cannon* cannon;
66 Base* base; 69 Base* base;
67 QCanvasText* gameover;
68 QLabel* levelscore; 70 QLabel* levelscore;
69 int nomen; 71 int nomen;
@@ -78,3 +80,3 @@ private:
78 int score; 80 int score;
79 int lastcannonkey; 81 int lastcannonkey;
80}; 82};