libkdegames Library API Documentation

kgamedebugdialog.h

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 (martin@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., 59 Temple Place - Suite 330,
00018     Boston, MA 02111-1307, USA.
00019 */
00020 
00021 #ifndef __KGAMEDEBUGDIALOG_H__
00022 #define __KGAMEDEBUGDIALOG_H__
00023 
00024 #include <kdialogbase.h>
00025 
00026 class KGame;
00027 class KGameIO;
00028 class KPlayer;
00029 class KGamePropertyBase;
00030 
00031 class KGameDebugDialogPrivate;
00032 
00033 class KGameDebugDialog : public KDialogBase
00034 {
00035     Q_OBJECT
00036 public:
00037     KGameDebugDialog(KGame* g, QWidget* parent, bool modal = false);
00038     ~KGameDebugDialog();
00039 
00046     void setKGame(const KGame* g);
00047 
00048 public slots:
00057     void slotUnsetKGame();
00058 
00062     void slotUpdateGameData();
00063 
00067     void slotUpdatePlayerData();
00068 
00073     void slotUpdatePlayerList();
00074 
00075     void slotClearMessages();
00076 
00077 signals:
00091     void signalRequestIdName(int messageid, bool userid, QString& name);
00092 
00093 protected:
00094     void clearPages();
00095 
00100     void clearPlayerData();
00101 
00105     void clearGameData();
00106 
00110     void addPlayer(KPlayer* p);
00111 
00115     void removePlayer(QListBoxItem* item);
00116 
00120     bool showId(int msgid);
00121 
00122 protected slots:
00128     void slotUpdatePlayerData(QListBoxItem* item);
00129 
00130     void slotShowId();
00131     void slotHideId();
00132 
00136     void slotMessageUpdate(int msgid, Q_UINT32 receiver, Q_UINT32 sender);
00137 
00138 private:
00139     void initGamePage();
00140     void initPlayerPage();
00141     void initMessagePage();
00142 
00143 private:
00144     KGameDebugDialogPrivate* d;
00145 };
00146 
00147 
00148 #endif
KDE Logo
This file is part of the documentation for libkdegames Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Jan 20 04:22:43 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003