• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

kigo

  • sources
  • kde-4.14
  • kdegames
  • kigo
  • src
  • gui
  • graphicsview
gameview.h
Go to the documentation of this file.
1 /*
2  Copyright 2008 Sascha Peilicke <sasch.pe@gmx.de>
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public License as
6  published by the Free Software Foundation; either version 2 of
7  the License or (at your option) version 3 or any later version
8  accepted by the membership of KDE e.V. (or its successor approved
9  by the membership of KDE e.V.), which shall act as a proxy
10  defined in Section 14 of version 3 of the license.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef KIGO_GAMEVIEW_H
22 #define KIGO_GAMEVIEW_H
23 
24 #include <QGraphicsView>
25 
26 namespace Kigo {
27 
28 class GameScene;
29 
37 class GameView : public QGraphicsView
38 {
39  Q_OBJECT
40 
41 public:
49  explicit GameView(GameScene *scene, QWidget *parent = 0);
50 
51 private slots:
52  void changeCursor(const QPixmap &cursorPixmap);
53 
54 private:
55  //void drawForeground(QPainter *painter, const QRectF &rect);
56  void showEvent(QShowEvent *event);
57  void resizeEvent(QResizeEvent *event);
58 
59  GameScene * const m_gameScene;
60 };
61 
62 } // End of namespace Kigo
63 
64 #endif
QResizeEvent
QWidget
Kigo::GameScene
This class provides a graphical representation of the go game using QGraphicsScene.
Definition: gamescene.h:43
Kigo::GameView::GameView
GameView(GameScene *scene, QWidget *parent=0)
Standard constructor.
Definition: gameview.cpp:28
QGraphicsView::scene
QGraphicsScene * scene() const
QGraphicsView::event
virtual bool event(QEvent *event)
QShowEvent
QPixmap
Kigo::GameView
This class represents a view on a Go game view.
Definition: gameview.h:37
QObject::parent
QObject * parent() const
QGraphicsView
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kigo

Skip menu "kigo"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal