KGameDialogConnectionConfig Class Reference
Lists all connected players and gives the ability to kick them off the game. More...
#include <kgamedialogconfig.h>
Inheritance diagram for KGameDialogConnectionConfig:

Public Member Functions | |
KGameDialogConnectionConfig (QWidget *parent=0) | |
virtual void | setKGame (KGame *) |
virtual void | setOwner (KPlayer *) |
virtual void | setAdmin (bool admin) |
virtual void | submitToKGame (KGame *, KPlayer *) |
Protected Slots | |
void | slotKickPlayerOut (QListBoxItem *item) |
void | slotPropertyChanged (KGamePropertyBase *prop, KPlayer *p) |
void | slotPlayerLeftGame (KPlayer *p) |
void | slotPlayerJoinedGame (KPlayer *p) |
void | slotClearPlayers () |
Protected Member Functions | |
QListBoxItem * | item (KPlayer *p) const |
Detailed Description
Lists all connected players and gives the ability to kick them off the game.
Definition at line 319 of file kgamedialogconfig.h.
Member Function Documentation
|
The KGame object of the dialog has been changed. The default implementation changes the pointer for game so don't forget to call the default implementation if you overwrite this! You can use this e.g. to re-read the min/max player settings.
Reimplemented from KGameDialogConfig. Definition at line 614 of file kgamedialogconfig.cpp. References KGameDialogConfig::game(), KGame::playerList(), and KGameDialogConfig::setKGame(). |
|
The owner player of the dialog has been changed. The default changes the pointer for owner so don't forget to call the default implementation if you overwrite this! You can use this e.g. to change a line edit widget containing the player name. Note: even NULL players are allowed!
Reimplemented from KGameDialogConfig. Definition at line 635 of file kgamedialogconfig.cpp. References KGameDialogConfig::setOwner(). |
|
The admin status has been changed. If the KGame object of this config widget is the admin the user is allowed to configure it. Otherwise most widgets will have to be disabled. Note that you don't necessarily need to deactivate all widget - e.g. the player name must be configured by the player. Mainly the KGame configuration can be done by the admin only. By default this does nothing. Changes the value for admin so don't forget to call the default implementation in derived classes!
Reimplemented from KGameDialogConfig. Definition at line 640 of file kgamedialogconfig.cpp. References KGameDialogConfig::admin(), KGameDialogConfig::game(), and KGameDialogConfig::setAdmin(). |
|
Called by KGameDialog to submit all settings to the KGame Object. You have to replace this if you add your own widgets!
Implements KGameDialogConfig. Definition at line 330 of file kgamedialogconfig.h. |
|
Definition at line 655 of file kgamedialogconfig.cpp. |
The documentation for this class was generated from the following files: