KGameDialogChatConfig Class Reference

This is not really a configuration widget but rather a simple chat widget.A chat widget inside a KGameDialog. More...

#include <kgamedialogconfig.h>

Inheritance diagram for KGameDialogChatConfig:

Inheritance graph
[legend]
Collaboration diagram for KGameDialogChatConfig:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KGameDialogChatConfig (int chatMsgId, QWidget *parent=0)
virtual ~KGameDialogChatConfig ()
virtual void setKGame (KGame *g)
 The KGame object of the dialog has been changed.
virtual void setOwner (KPlayer *p)
 The owner player of the dialog has been changed.
virtual void submitToKGame (KGame *g, KPlayer *p)
 Called by KGameDialog to submit all settings to the KGame Object.

Detailed Description

This is not really a configuration widget but rather a simple chat widget.A chat widget inside a KGameDialog.

This widget does nothing but just providing a KGameChat object.

Author:
Andreas Beckermann <b_mann@gmx.de>

Definition at line 310 of file kgamedialogconfig.h.


Constructor & Destructor Documentation

KGameDialogChatConfig::KGameDialogChatConfig int  chatMsgId,
QWidget *  parent = 0
 

Definition at line 550 of file kgamedialogconfig.cpp.

References KGameDialogChatConfigPrivate::mChat.

KGameDialogChatConfig::~KGameDialogChatConfig  )  [virtual]
 

Definition at line 560 of file kgamedialogconfig.cpp.


Member Function Documentation

void KGameDialogChatConfig::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 566 of file kgamedialogconfig.cpp.

References KGameDialogConfig::game(), KGameDialogChatConfigPrivate::mChat, KGameChat::setKGame(), KGameDialogConfig::setKGame(), and KExtHighscore::show().

Here is the call graph for this function:

void KGameDialogChatConfig::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 577 of file kgamedialogconfig.cpp.

References KGameDialogChatConfigPrivate::mChat, KGameDialogConfig::owner(), KGameChat::setFromPlayer(), KGameDialogConfig::setOwner(), and KExtHighscore::show().

Here is the call graph for this function:

virtual void KGameDialogChatConfig::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 320 of file kgamedialogconfig.h.


The documentation for this class was generated from the following files:
Generated on Wed Aug 23 18:05:13 2006 for libkdegames by  doxygen 1.4.6