libkdegames/kgame
KGameDialogConnectionConfig Class Reference
#include <kgamedialogconfig.h>

Detailed Description
Definition at line 329 of file kgamedialogconfig.h.
Public Member Functions | |
| KGameDialogConnectionConfig (QWidget *parent=0) | |
| virtual | ~KGameDialogConnectionConfig () |
| virtual void | setKGame (KGame *g) |
| virtual void | setOwner (KPlayer *p) |
| virtual void | setAdmin (bool admin) |
| virtual void | submitToKGame (KGame *g, KPlayer *p) |
Protected Slots | |
| void | slotKickPlayerOut (QListWidgetItem *item) |
| void | slotPropertyChanged (KGamePropertyBase *prop, KPlayer *p) |
| void | slotPlayerLeftGame (KPlayer *p) |
| void | slotPlayerJoinedGame (KPlayer *p) |
| void | slotClearPlayers () |
Protected Member Functions | |
| QListWidgetItem * | item (KPlayer *p) const |
Constructor & Destructor Documentation
| KGameDialogConnectionConfig::KGameDialogConnectionConfig | ( | QWidget * | parent = 0 |
) |
Definition at line 620 of file kgamedialogconfig.cpp.
| KGameDialogConnectionConfig::~KGameDialogConnectionConfig | ( | ) | [virtual] |
Definition at line 636 of file kgamedialogconfig.cpp.
Member Function Documentation
| void KGameDialogConnectionConfig::setKGame | ( | KGame * | g | ) | [virtual] |
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.
- Parameters:
-
g The KGame object
Reimplemented from KGameDialogConfig.
Definition at line 643 of file kgamedialogconfig.cpp.
| void KGameDialogConnectionConfig::setOwner | ( | KPlayer * | p | ) | [virtual] |
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!
- Parameters:
-
p The new owner player of the dialog
Reimplemented from KGameDialogConfig.
Definition at line 664 of file kgamedialogconfig.cpp.
| void KGameDialogConnectionConfig::setAdmin | ( | bool | admin | ) | [virtual] |
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!
- Parameters:
-
admin Whether the KGame object of this dialog can be configured
Reimplemented from KGameDialogConfig.
Definition at line 669 of file kgamedialogconfig.cpp.
| virtual void KGameDialogConnectionConfig::submitToKGame | ( | KGame * | g, | |
| KPlayer * | p | |||
| ) | [inline, virtual] |
Called by KGameDialog to submit all settings to the KGame Object.
You have to replace this if you add your own widgets!
- Parameters:
-
g A pointer to your KGame. p A pointer to the player owning this dialog
Implements KGameDialogConfig.
Definition at line 340 of file kgamedialogconfig.h.
| QListWidgetItem * KGameDialogConnectionConfig::item | ( | KPlayer * | p | ) | const [protected] |
- Parameters:
-
p A player
- Returns:
- The QListWidgetItem that belongs to the player
p
Definition at line 684 of file kgamedialogconfig.cpp.
| void KGameDialogConnectionConfig::slotKickPlayerOut | ( | QListWidgetItem * | item | ) | [protected, slot] |
Definition at line 752 of file kgamedialogconfig.cpp.
| void KGameDialogConnectionConfig::slotPropertyChanged | ( | KGamePropertyBase * | prop, | |
| KPlayer * | p | |||
| ) | [protected, slot] |
Definition at line 783 of file kgamedialogconfig.cpp.
| void KGameDialogConnectionConfig::slotPlayerLeftGame | ( | KPlayer * | p | ) | [protected, slot] |
Definition at line 739 of file kgamedialogconfig.cpp.
| void KGameDialogConnectionConfig::slotPlayerJoinedGame | ( | KPlayer * | p | ) | [protected, slot] |
Definition at line 715 of file kgamedialogconfig.cpp.
| void KGameDialogConnectionConfig::slotClearPlayers | ( | ) | [protected, slot] |
Definition at line 695 of file kgamedialogconfig.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference