2 Mancala - A Historical Board Game
3 Copyright (C) 2009-2010 A.H.M.Mahfuzur Rahman 65mahfuz90@gmail.com
4 Copyright (c) 2010 Reto Zingg g.d0b3rm4n@gmail.com
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License as
8 published by the Free Software Foundation; either version 2 of
9 the License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef GRAPHICSSCENE_H
21 #define GRAPHICSSCENE_H
23 #include <QGraphicsScene>
24 #include <QWheelEvent>
26 #include <QPixmapCache>
37 class QGraphicsSvgItem;
39 class GraphicsScene : public QGraphicsScene{
43 GraphicsScene( GameInfo* ,ThemeManager* , GameController* , QWidget* parent = 0);
44 QPixmap renderBackground(const QSize& size,bool newGame);
47 void signalMouseClicked(int);
55 QGraphicsSvgItem *m_gameName;
57 GameController* m_gameController;
58 ThemeManager* m_gameTheme;
60 QList<Stone*> m_stones;
63 void setupGameNecessaries();
64 void deleteGameNecessaries();
67 virtual void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent );
68 virtual void drawBackground( QPainter* painter,const QRectF &rect);
71 #endif // GRAPHICSSCENE_H