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 (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., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __KGAMEDEBUGDIALOG_H__
00022 #define __KGAMEDEBUGDIALOG_H__
00023 
00024 #include <kdialogbase.h>
00025 #include <kdemacros.h>
00026 
00027 class KGame;
00028 class KGameIO;
00029 class KPlayer;
00030 class KGamePropertyBase;
00031 
00032 class KGameDebugDialogPrivate;
00033 
00034 class KDE_EXPORT KGameDebugDialog : public KDialogBase
00035 {
00036         Q_OBJECT
00037 public:
00038         KGameDebugDialog(KGame* g, QWidget* parent, bool modal = false);
00039         ~KGameDebugDialog();
00040 
00047         void setKGame(const KGame* g);
00048 
00049 public slots:
00058         void slotUnsetKGame();
00059 
00063         void slotUpdateGameData();
00064 
00068         void slotUpdatePlayerData();
00069 
00074         void slotUpdatePlayerList();
00075 
00076         void slotClearMessages();
00077 
00078 signals:
00092         void signalRequestIdName(int messageid, bool userid, QString& name);
00093 
00094 protected:
00095         void clearPages();
00096 
00101         void clearPlayerData();
00102 
00106         void clearGameData();
00107 
00111         void addPlayer(KPlayer* p);
00112 
00116         void removePlayer(QListBoxItem* item);
00117 
00121         bool showId(int msgid);
00122 
00123 protected slots:
00129         void slotUpdatePlayerData(QListBoxItem* item);
00130 
00131         void slotShowId();
00132         void slotHideId();
00133 
00137         void slotMessageUpdate(int msgid, Q_UINT32 receiver, Q_UINT32 sender);
00138 
00139 private:
00140         void initGamePage();
00141         void initPlayerPage();
00142         void initMessagePage();
00143 
00144 private:
00145         KGameDebugDialogPrivate* d;
00146 };
00147 
00148 
00149 #endif

Generated on Wed Aug 23 18:04:18 2006 for libkdegames by  doxygen 1.4.6