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

granatier

  • sources
  • kde-4.14
  • kdegames
  • granatier
  • src
mainwindow.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Mathias Kraus <k.hias@gmx.de>
3  * Copyright 2007-2008 Thomas Gallinari <tg8187@yahoo.fr>
4  * Copyright 2007-2008 Pierre-Benoit Bessse <besse@gmail.com>
5  *
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.
10  *
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.
15  *
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/>.
18  */
19 
20 #ifndef MAINWINDOW_H
21 #define MAINWINDOW_H
22 
23 #include <KXmlGuiWindow>
24 
25 class Game;
26 class GameView;
27 class GameScene;
28 class PlayerSettings;
29 class KgThemeProvider;
30 class KConfigDialog;
31 
35 class MainWindow : public KXmlGuiWindow {
36 
37 Q_OBJECT
38 
39 private :
40 
42  GameView* m_view;
43 
44  GameScene* m_scene;
45 
47  Game* m_game;
48 
50  PlayerSettings* m_playerSettings;
51 
53  KgThemeProvider* m_themeProvider;
54  QString m_currentThemeIdentifier;
55 
57  QStringList m_tempRandomArenaModeArenaList;
58 
59  KConfigDialog* m_settingsDialog;
60 
61 public:
62 
66  MainWindow();
67 
71  ~MainWindow();
72 
73 private slots:
74 
79  void initGame();
80 
84  void newGame();
85 
90  void setSoundsEnabled(bool p_enabled);
91 
95  void showSettings();
96 
100  void applyNewSettings();
101 
105  void settingsDialogCanceled();
106 
110  void close();
111 };
112 
113 #endif
114 
GameView
This class manages the drawing of each element of the Game instance.
Definition: gameview.h:32
KXmlGuiWindow
Game
This class manages the game main loop : it regularly checks the key press events, computes the charac...
Definition: game.h:43
PlayerSettings
Definition: playersettings.h:27
QString
QStringList
MainWindow::MainWindow
MainWindow()
Creates a new MainWindow instance.
Definition: mainwindow.cpp:53
GameScene
This class contains all the Game elements to be drawn on the screen by the GameView instance...
Definition: gamescene.h:50
MainWindow::~MainWindow
~MainWindow()
Deletes the MainWindow instance.
Definition: mainwindow.cpp:81
MainWindow
This class enables to create the main window for Granatier.
Definition: mainwindow.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

granatier

Skip menu "granatier"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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