• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

ksquares

ksquareswindow.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2006 by Matthew Williams    <matt@milliams.com>         *
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU General Public License as published by  *
00006  *   the Free Software Foundation; either version 2 of the License, or     *
00007  *   (at your option) any later version.                                   *
00008  ***************************************************************************/
00009 
00010 #ifndef KSQUARESWINDOW_H
00011 #define KSQUARESWINDOW_H
00012 
00013 #include <KXmlGuiWindow>
00014 
00015 #include "ksquaresgame.h"
00016 #include "ui_prefs_ai.h"
00017 #include "ui_prefs_display.h"
00018 
00019 class KToggleAction;
00020 class GameBoardView;
00021 class GameBoardScene;
00022 
00031 class KSquaresWindow : public KXmlGuiWindow
00032 {
00033     Q_OBJECT
00034 
00035     public:
00037         KSquaresWindow();
00038         ~KSquaresWindow();
00039 
00040     public slots:
00041         void  showHighscores();
00042         //void  configureHighscores();
00044         void gameNew();
00046         void gameReset();
00047 
00048     private slots:
00049         void aiChooseLine(); // testing only
00050         void initObject();
00051         void optionsPreferences();
00052         void playerTakeTurn(KSquaresPlayer* currentPlayer);
00053         void gameOver(const QVector<KSquaresPlayer> &_playerList);  //when KSquaresGame says the game is over. Display score board
00054 
00055     private:
00056         //void setupAccel();
00057         void setupActions();
00058         Ui::prefs_ai ui_prefs_ai;
00059         Ui::prefs_display ui_prefs_display;
00061         GameBoardView *m_view;
00063         GameBoardScene *m_scene;
00065         KSquaresGame* sGame;
00066 
00067         //KToggleAction *m_toolbarAction;
00068         //KToggleAction *m_statusbarAction;
00069 };
00070 
00071 #endif // KSQUARESWINDOW_H

ksquares

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

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal