00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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 TQ_OBJECT
00038 public:
00039 KGameDebugDialog(KGame* g, TQWidget* parent, bool modal = false);
00040 ~KGameDebugDialog();
00041
00048 void setKGame(const KGame* g);
00049
00050 public slots:
00059 void slotUnsetKGame();
00060
00064 void slotUpdateGameData();
00065
00069 void slotUpdatePlayerData();
00070
00075 void slotUpdatePlayerList();
00076
00077 void slotClearMessages();
00078
00079 signals:
00093 void signalRequestIdName(int messageid, bool userid, TQString& name);
00094
00095 protected:
00096 void clearPages();
00097
00102 void clearPlayerData();
00103
00107 void clearGameData();
00108
00112 void addPlayer(KPlayer* p);
00113
00117 void removePlayer(TQListBoxItem* item);
00118
00122 bool showId(int msgid);
00123
00124 protected slots:
00130 void slotUpdatePlayerData(TQListBoxItem* item);
00131
00132 void slotShowId();
00133 void slotHideId();
00134
00138 void slotMessageUpdate(int msgid, TQ_UINT32 receiver, TQ_UINT32 sender);
00139
00140 private:
00141 void initGamePage();
00142 void initPlayerPage();
00143 void initMessagePage();
00144
00145 private:
00146 KGameDebugDialogPrivate* d;
00147 };
00148
00149
00150 #endif