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

libkdegames/kgame

KGameDialogGeneralConfig Class Reference

#include <kgamedialogconfig.h>

Inheritance diagram for KGameDialogGeneralConfig:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 142 of file kgamedialogconfig.h.


Public Member Functions

 KGameDialogGeneralConfig (QWidget *parent=0, bool initializeGUI=true)
virtual ~KGameDialogGeneralConfig ()
virtual void submitToKGame (KGame *g, KPlayer *p)
virtual void setOwner (KPlayer *p)
virtual void setKGame (KGame *g)
virtual void setAdmin (bool admin)

Protected Slots

void slotPropertyChanged (KGamePropertyBase *, KPlayer *)

Protected Member Functions

void setPlayerName (const QString &name)
QString playerName () const

Constructor & Destructor Documentation

KGameDialogGeneralConfig::KGameDialogGeneralConfig ( QWidget *  parent = 0,
bool  initializeGUI = true 
) [explicit]

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).

Parameters:
parent Parent widget for this dialog.
initializeGUI If you really don't want to use the predefined widget and/or layout use FALSE here. Note that then none of the predefined widgets (currently only the name of the player) will exist anymore.

Definition at line 270 of file kgamedialogconfig.cpp.

KGameDialogGeneralConfig::~KGameDialogGeneralConfig (  )  [virtual]

Definition at line 291 of file kgamedialogconfig.cpp.


Member Function Documentation

void KGameDialogGeneralConfig::submitToKGame ( KGame *  g,
KPlayer *  p 
) [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 344 of file kgamedialogconfig.cpp.

void KGameDialogGeneralConfig::setOwner ( KPlayer *  p  )  [virtual]

Change the owner of the config widget.

Changes the playername in the line edit

Parameters:
p The new owner player

Reimplemented from KGameDialogConfig.

Definition at line 309 of file kgamedialogconfig.cpp.

void KGameDialogGeneralConfig::setKGame ( KGame *  g  )  [virtual]

See KGameDialogConfig::setKGame.

Sets the default values of all KGame related predefined widgets (currently none)

Reimplemented from KGameDialogConfig.

Definition at line 326 of file kgamedialogconfig.cpp.

void KGameDialogGeneralConfig::setAdmin ( bool  admin  )  [virtual]

See KGameDialogConfig::setAdmin.

This deactivates the min/max player widgets

Reimplemented from KGameDialogConfig.

Definition at line 337 of file kgamedialogconfig.cpp.

void KGameDialogGeneralConfig::slotPropertyChanged ( KGamePropertyBase *  prop,
KPlayer *  p 
) [protected, slot]

Definition at line 354 of file kgamedialogconfig.cpp.

void KGameDialogGeneralConfig::setPlayerName ( const QString &  name  )  [protected]

Definition at line 297 of file kgamedialogconfig.cpp.

QString KGameDialogGeneralConfig::playerName (  )  const [protected]

Definition at line 304 of file kgamedialogconfig.cpp.


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