• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libtdegames
 

libtdegames

Public Member Functions | List of all members
KGameDialogChatConfig Class Reference

#include <kgamedialogconfig.h>

Inheritance diagram for KGameDialogChatConfig:
KGameDialogConfig

Public Member Functions

 KGameDialogChatConfig (int chatMsgId, TQWidget *parent=0)
 
virtual void setKGame (KGame *g)
 
virtual void setOwner (KPlayer *p)
 
virtual void submitToKGame (KGame *g, KPlayer *p)
 
- Public Member Functions inherited from KGameDialogConfig
 KGameDialogConfig (TQWidget *parent=0)
 
virtual void setAdmin (bool admin)
 
KGame * game () const
 
KPlayer * owner () const
 
bool admin () const
 

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_man.nosp@m.n@gm.nosp@m.x.de

Definition at line 314 of file kgamedialogconfig.h.

Member Function Documentation

◆ setKGame()

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
gThe KGame object

Reimplemented from KGameDialogConfig.

Definition at line 566 of file kgamedialogconfig.cpp.

◆ setOwner()

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
pThe new owner player of the dialog

Reimplemented from KGameDialogConfig.

Definition at line 577 of file kgamedialogconfig.cpp.

◆ submitToKGame()

virtual void KGameDialogChatConfig::submitToKGame ( KGame *  g,
KPlayer *  p 
)
inlinevirtual

Called by KGameDialog to submit all settings to the KGame Object.

You have to replace this if you add your own widgets!

Parameters
gA pointer to your KGame.
pA pointer to the player owning this dialog

Implements KGameDialogConfig.

Definition at line 325 of file kgamedialogconfig.h.


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

libtdegames

Skip menu "libtdegames"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libtdegames

Skip menu "libtdegames"
  • libtdegames
Generated for libtdegames by doxygen 1.9.1
This website is maintained by Timothy Pearson.