#include <kgamedialogconfig.h>
Inheritance diagram for KGameDialogGeneralConfig:


Public Member Functions | |
| KGameDialogGeneralConfig (QWidget *parent=0, bool initializeGUI=true) | |
| Construct a KGameDialogGeneralConfig. | |
| virtual | ~KGameDialogGeneralConfig () |
| virtual void | submitToKGame (KGame *g, KPlayer *p) |
| Called by KGameDialog to submit all settings to the KGame Object. | |
| virtual void | setOwner (KPlayer *p) |
| Change the owner of the config widget. | |
| virtual void | setKGame (KGame *g) |
| See KGameDialogConfig::setKGame. | |
| virtual void | setAdmin (bool admin) |
| See KGameDialogConfig::setAdmin. | |
Protected Slots | |
| void | slotPropertyChanged (KGamePropertyBase *, KPlayer *) |
Protected Member Functions | |
| void | setPlayerName (const QString &name) |
| QString | playerName () const |
Definition at line 144 of file kgamedialogconfig.h.
|
||||||||||||
|
Construct a KGameDialogGeneralConfig. Currently it contains a line edit widget to change the player name only. If you just want to add more widgets you can just create your widgets with the KGameDialogGeneralConfig as parent as it uses QLayout::setAutoAdd(true).
Definition at line 264 of file kgamedialogconfig.cpp. References KGameDialogGeneralConfigPrivate::mName, and KGameDialogGeneralConfigPrivate::mTopLayout. |
|
|
Definition at line 283 of file kgamedialogconfig.cpp. |
|
|
Definition at line 296 of file kgamedialogconfig.cpp. References KGameDialogGeneralConfigPrivate::mName. Referenced by submitToKGame(). |
|
|
See KGameDialogConfig::setAdmin. This deactivates the min/max player widgets Reimplemented from KGameDialogConfig. Definition at line 329 of file kgamedialogconfig.cpp. References KGameDialogConfig::setAdmin(). Here is the call graph for this function: ![]() |
|
|
See KGameDialogConfig::setKGame. Sets the default values of all KGame related predefined widgets (currently none) Reimplemented from KGameDialogConfig. Definition at line 318 of file kgamedialogconfig.cpp. References KGameDialogConfig::setKGame(). Here is the call graph for this function: ![]() |
|
|
Change the owner of the config widget. Changes the playername in the line edit
Reimplemented from KGameDialogConfig. Definition at line 301 of file kgamedialogconfig.cpp. References KPlayer::name(), KGameDialogConfig::owner(), KGameDialogConfig::setOwner(), setPlayerName(), and slotPropertyChanged(). Here is the call graph for this function: ![]() |
|
|
Definition at line 289 of file kgamedialogconfig.cpp. References KGameDialogGeneralConfigPrivate::mName. Referenced by setOwner(), and slotPropertyChanged(). |
|
||||||||||||
|
Definition at line 346 of file kgamedialogconfig.cpp. References KGamePropertyBase::id(), KGamePropertyBase::IdName, KPlayer::name(), KGameDialogConfig::owner(), and setPlayerName(). Referenced by setOwner(). |
|
||||||||||||
|
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 336 of file kgamedialogconfig.cpp. References playerName(), and KPlayer::setName(). Here is the call graph for this function: ![]() |
1.4.6