kgamedebugdialog.h00001
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 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
|