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

libkdegames/kgame

kgamedebugdialog.h

Go to the documentation of this file.
00001 /*
00002     This file is part of the KDE games library
00003     Copyright (C) 2001 Andreas Beckermann (b_mann@gmx.de)
00004     Copyright (C) 2001 Martin Heni (kde at heni-online.de)
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License version 2 as published by the Free Software Foundation.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __KGAMEDEBUGDIALOG_H__
00022 #define __KGAMEDEBUGDIALOG_H__
00023 
00024 #include <kpagedialog.h>
00025 #include <libkdegames_export.h>
00026 
00027 class QListWidgetItem;
00028 
00029 class KGame;
00030 class KPlayer;
00031 
00032 class KGameDebugDialogPrivate;
00033 
00037 class KDEGAMES_EXPORT KGameDebugDialog : public KPageDialog
00038 {
00039     Q_OBJECT
00040 public:
00041     KGameDebugDialog(KGame* g, QWidget* parent, bool modal = false);
00042     ~KGameDebugDialog();
00043 
00050     void setKGame(const KGame* g);
00051 
00052 public Q_SLOTS:
00061     void slotUnsetKGame();
00062 
00066     void slotUpdateGameData();
00067 
00071     void slotUpdatePlayerData();
00072 
00077     void slotUpdatePlayerList();
00078 
00079     void slotClearMessages();
00080 
00081 Q_SIGNALS:
00095     void signalRequestIdName(int messageid, bool userid, QString& name);
00096 
00097 protected:
00098     void clearPages();
00099 
00104     void clearPlayerData();
00105 
00109     void clearGameData();
00110 
00114     void addPlayer(KPlayer* p);
00115 
00119     void removePlayer(QListWidgetItem* item);
00120 
00124     bool showId(int msgid);
00125 
00126 protected Q_SLOTS:
00132     void slotUpdatePlayerData(QListWidgetItem* item);
00133 
00134     void slotShowId();
00135     void slotHideId();
00136 
00140     void slotMessageUpdate(int msgid, quint32 receiver, quint32 sender);
00141 
00142 private:
00143     void initGamePage();
00144     void initPlayerPage();
00145     void initMessagePage();
00146 
00147 private:
00148     KGameDebugDialogPrivate* const d;
00149 };
00150 
00151 
00152 #endif

libkdegames/kgame

Skip menu "libkdegames/kgame"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • 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