• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkdegames/kgame

KGameDialogChatConfig Class Reference

#include <kgamedialogconfig.h>

Inheritance diagram for KGameDialogChatConfig:

Inheritance graph
[legend]

List of all members.


Detailed Description

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

This widget does nothing but just providing a KGameChat object. A chat widget inside a KGameDialog

Author:
Andreas Beckermann <b_mann@gmx.de>

Definition at line 308 of file kgamedialogconfig.h.


Public Member Functions

 KGameDialogChatConfig (int chatMsgId, QWidget *parent=0)
virtual ~KGameDialogChatConfig ()
virtual void setKGame (KGame *g)
virtual void setOwner (KPlayer *p)
virtual void submitToKGame (KGame *g, KPlayer *p)

Constructor & Destructor Documentation

KGameDialogChatConfig::KGameDialogChatConfig ( int  chatMsgId,
QWidget *  parent = 0 
) [explicit]

Definition at line 564 of file kgamedialogconfig.cpp.

KGameDialogChatConfig::~KGameDialogChatConfig (  )  [virtual]

Definition at line 578 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 584 of file kgamedialogconfig.cpp.

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 595 of file kgamedialogconfig.cpp.

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 318 of file kgamedialogconfig.h.


The documentation for this class was generated from the following files:
  • kgamedialogconfig.h
  • kgamedialogconfig.cpp

libkdegames/kgame

Skip menu "libkdegames/kgame"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal