All menu items in place. Still do nothing.
[ghostsoverboard] / seascene.h
index 9fb0734..7690d57 100644 (file)
@@ -1,7 +1,31 @@
+/**************************************************************************
+        Ghosts Overboard - a game for Maemo 5
+
+        Copyright (C) 2011  Heli Hyvättinen
+
+        This file is part of Ghosts Overboard
+
+        Ghosts Overboard is free software: you can redistribute it and/or modify
+        it under the terms of the GNU General Public License as published by
+        the Free Software Foundation, either version 2 of the License, or
+        (at your option) any later version.
+
+        This program is distributed in the hope that it will be useful,
+        but WITHOUT ANY WARRANTY; without even the implied warranty of
+        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+        GNU General Public License for more details.
+
+        You should have received a copy of the GNU General Public License
+        along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+**************************************************************************/
+
+
 #ifndef SEASCENE_H
 #define SEASCENE_H
 
 #include <QGraphicsScene>
+#include<QGraphicsItemGroup>
 #include "screenlitkeeper.h"
 #include "level.h"
 
@@ -40,6 +64,9 @@ public slots:
 
     void vibrationActivate(bool);
 
+    void menuClicked();
+
+
 protected:
 
     /*! Gives a pointer to a random position if a free one is found. Otherwise returns NULL.
@@ -48,6 +75,9 @@ protected:
 
     QPointF* findRandomFreeSlot();
 
+    void createMenuItems();
+    void prepareForMenu(QGraphicsItem * pItem);
+
     const QString ghostImageFilename_;
     const QString rockImageFilename_;
     const QString octopusImageFilename_;
@@ -64,6 +94,14 @@ protected:
     ScreenLitKeeper screenLitKeeper_;
 
 
+    int menuItemCount_;
+
+    QGraphicsSimpleTextItem * pPausetextItem_;
+
+    QGraphicsSimpleTextItem * pRestartLevelItem_;
+    QGraphicsSimpleTextItem * pRestartGameItem_;
+    QGraphicsSimpleTextItem * pSettingsItem_;
+    QGraphicsSimpleTextItem * pAboutItem_;
 
 
 };