#include <kgamedebugdialog.h>
Collaboration diagram for KGameDebugDialog:

Public Slots | |
| void | slotUnsetKGame () |
| Unsets a KGame which has been set using setKGame before. | |
| void | slotUpdateGameData () |
| Update the data of the KGame object. | |
| void | slotUpdatePlayerData () |
| Update the properties of the currently selected player. | |
| void | slotUpdatePlayerList () |
| Updates the list of players and calls clearPlayerData. | |
| void | slotClearMessages () |
Signals | |
| void | signalRequestIdName (int messageid, bool userid, QString &name) |
| This signal is emitted when the "debug messages" page couldn't find the name of a message id. | |
Public Member Functions | |
| KGameDebugDialog (KGame *g, QWidget *parent, bool modal=false) | |
| ~KGameDebugDialog () | |
| void | setKGame (const KGame *g) |
| Automatically connects the KGame object to all error dependant slots. | |
Protected Slots | |
| void | slotUpdatePlayerData (QListBoxItem *item) |
| Update the data of the player specified in item. | |
| void | slotShowId () |
| void | slotHideId () |
| void | slotMessageUpdate (int msgid, Q_UINT32 receiver, Q_UINT32 sender) |
| A message has been received - see KGame::signalMessageUpdate. | |
Protected Member Functions | |
| void | clearPages () |
| void | clearPlayerData () |
| Clear the data of the player view. | |
| void | clearGameData () |
| Clear the data view of the KGame object. | |
| void | addPlayer (KPlayer *p) |
| Add a new player to the player list. | |
| void | removePlayer (QListBoxItem *item) |
| Remove a player from the list. | |
| bool | showId (int msgid) |
Definition at line 34 of file kgamedebugdialog.h.
|
||||||||||||||||
|
Definition at line 123 of file kgamedebugdialog.cpp. References setKGame(). Here is the call graph for this function: ![]() |
|
|
Definition at line 136 of file kgamedebugdialog.cpp. |
|
|
Add a new player to the player list.
Definition at line 457 of file kgamedebugdialog.cpp. References KPlayer::id(), and KGameDebugDialogPrivate::mPlayerList. Referenced by setKGame(). Here is the call graph for this function: ![]() |
|
|
Clear the data view of the KGame object.
Definition at line 269 of file kgamedebugdialog.cpp. References KGameDebugDialogPrivate::mGameAddress, KGameDebugDialogPrivate::mGameAdmin, KGameDebugDialogPrivate::mGameCookie, KGameDebugDialogPrivate::mGameId, KGameDebugDialogPrivate::mGameMaster, KGameDebugDialogPrivate::mGameMaxPlayers, KGameDebugDialogPrivate::mGameMinPlayers, KGameDebugDialogPrivate::mGameOffering, KGameDebugDialogPrivate::mGameProperties, KGameDebugDialogPrivate::mGameRunning, and KGameDebugDialogPrivate::mGameStatus. Referenced by clearPages(), and slotUpdateGameData(). |
|
|
Definition at line 420 of file kgamedebugdialog.cpp. References clearGameData(), clearPlayerData(), KGameDebugDialogPrivate::mPlayerList, and slotClearMessages(). Referenced by slotUnsetKGame(). Here is the call graph for this function: ![]() |
|
|
Clear the data of the player view. Note that the player list is NOT cleared. Definition at line 251 of file kgamedebugdialog.cpp. References KGameDebugDialogPrivate::mPlayerActive, KGameDebugDialogPrivate::mPlayerAddress, KGameDebugDialogPrivate::mPlayerAsyncInput, KGameDebugDialogPrivate::mPlayerGroup, KGameDebugDialogPrivate::mPlayerId, KGameDebugDialogPrivate::mPlayerKGameAddress, KGameDebugDialogPrivate::mPlayerMyTurn, KGameDebugDialogPrivate::mPlayerName, KGameDebugDialogPrivate::mPlayerNetworkPriority, KGameDebugDialogPrivate::mPlayerProperties, KGameDebugDialogPrivate::mPlayerRtti, KGameDebugDialogPrivate::mPlayerUserId, and KGameDebugDialogPrivate::mPlayerVirtual. Referenced by clearPages(), removePlayer(), and slotUpdatePlayerData(). |
|
|
Remove a player from the list.
Definition at line 468 of file kgamedebugdialog.cpp. References clearPlayerData(), KGame::findPlayer(), and KGameDebugDialogPrivate::mGame. Referenced by slotUpdatePlayerList(). Here is the call graph for this function: ![]() |
|
|
Automatically connects the KGame object to all error dependant slots. Create a KGameErrorDialog object, call this function and forget everything.
Definition at line 428 of file kgamedebugdialog.cpp. References addPlayer(), KGameDebugDialogPrivate::mGame, KGame::playerList(), slotMessageUpdate(), slotUnsetKGame(), and slotUpdateGameData(). Referenced by KGameDebugDialog(). Here is the call graph for this function: ![]() |
|
|
Definition at line 536 of file kgamedebugdialog.cpp. References KGameDebugDialogPrivate::mHideIdList. Referenced by slotMessageUpdate(). |
|
||||||||||||||||
|
This signal is emitted when the "debug messages" page couldn't find the name of a message id. This is usually the case for user-defined messages. KGameDebugDialog asks you to give the msgid a name.
Referenced by slotMessageUpdate(). |
|
|
Definition at line 505 of file kgamedebugdialog.cpp. References KGameDebugDialogPrivate::mMessageList. Referenced by clearPages(). |
|
|
Definition at line 524 of file kgamedebugdialog.cpp. References KGameDebugDialogPrivate::mMessageList. |
|
||||||||||||||||
|
A message has been received - see KGame::signalMessageUpdate.
Definition at line 484 of file kgamedebugdialog.cpp. References KGameMessage::IdUser, KGameMessage::messageId2Text(), showId(), and signalRequestIdName(). Referenced by setKGame(). |
|
|
Definition at line 510 of file kgamedebugdialog.cpp. References KGameDebugDialogPrivate::mHideIdList. |
|
|
Unsets a KGame which has been set using setKGame before. This is called automatically when the KGame object is destroyed and you normally don't have to call this yourself. Note that setKGame also unsets an already existing KGame object if exising. Definition at line 448 of file kgamedebugdialog.cpp. References clearPages(), and KGameDebugDialogPrivate::mGame. Referenced by setKGame(). |
|
|
|
|
Update the properties of the currently selected player.
Definition at line 285 of file kgamedebugdialog.cpp. References KGameDebugDialogPrivate::mGame, and KGameDebugDialogPrivate::mPlayerList. |
|
|
Updates the list of players and calls clearPlayerData. Note that after this call NO player is selected anymore. Definition at line 293 of file kgamedebugdialog.cpp. References KGameDebugDialogPrivate::mPlayerList, and removePlayer(). |
1.4.6