libkdegames/kgame
kgamedebugdialog.h
Go to the documentation of this file.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 <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