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

libkdegames

KChatDialog Class Reference

#include <kchatdialog.h>

Inheritance diagram for KChatDialog:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 31 of file kchatdialog.h.


Public Member Functions

 KChatDialog (QWidget *parent, bool modal=false)
 KChatDialog (KChatBase *chatWidget, QWidget *parent, bool modal=false)
 ~KChatDialog ()
QFont nameFont () const
QFont textFont () const
QFont systemNameFont () const
QFont systemTextFont () const
void plugChatWidget (KChatBase *widget, bool applyFonts=true)
void configureChatWidget (KChatBase *widget)
int maxMessages () const

Protected Slots

void slotGetNameFont ()
void slotGetTextFont ()
void slotGetSystemNameFont ()
void slotGetSystemTextFont ()
virtual void slotApply ()
virtual void slotOk ()

Constructor & Destructor Documentation

KChatDialog::KChatDialog ( QWidget *  parent,
bool  modal = false 
) [explicit]

Construct a KChatDialog widget.

Definition at line 72 of file kchatdialog.cpp.

KChatDialog::KChatDialog ( KChatBase *  chatWidget,
QWidget *  parent,
bool  modal = false 
)

Construct a KChatDialog widget which automatically configures the KChatBase widget.

You probably want to use this as you don't have to care about the configuration stuff yourself.

Definition at line 61 of file kchatdialog.cpp.

KChatDialog::~KChatDialog (  ) 

Destruct the dialog.

Definition at line 83 of file kchatdialog.cpp.


Member Function Documentation

QFont KChatDialog::nameFont (  )  const

Returns:
The font that shall be used as the "name: " part of a normal message.

Definition at line 174 of file kchatdialog.cpp.

QFont KChatDialog::textFont (  )  const

Returns:
The font that shall be used for normal messages.

Definition at line 179 of file kchatdialog.cpp.

QFont KChatDialog::systemNameFont (  )  const

Returns:
The font that shall be used as the "name: " part of a system (game) message.

Definition at line 184 of file kchatdialog.cpp.

QFont KChatDialog::systemTextFont (  )  const

Returns:
The font that shall be used for a system (game) message.

Definition at line 189 of file kchatdialog.cpp.

void KChatDialog::plugChatWidget ( KChatBase *  widget,
bool  applyFonts = true 
)

Set the widget that will be configured by the dialog.

Use this if you don't want to configure the widget yourself.

Parameters:
widget The chat widget that shall be configured
applyFonts Whether you want to have the current KChatBase fonts as defaults in the dialog

Definition at line 194 of file kchatdialog.cpp.

void KChatDialog::configureChatWidget ( KChatBase *  widget  ) 

Used to configure the chat widget according to the user settings.

This is called automatically if plugChatWidget was called before.

Parameters:
widget The chat widget that shall be configured

Definition at line 206 of file kchatdialog.cpp.

int KChatDialog::maxMessages (  )  const

Returns:
The maximal allowed messages in the chat widget.

-1 is unlimited

Definition at line 258 of file kchatdialog.cpp.

void KChatDialog::slotGetNameFont (  )  [protected, slot]

Definition at line 146 of file kchatdialog.cpp.

void KChatDialog::slotGetTextFont (  )  [protected, slot]

Definition at line 153 of file kchatdialog.cpp.

void KChatDialog::slotGetSystemNameFont (  )  [protected, slot]

Definition at line 160 of file kchatdialog.cpp.

void KChatDialog::slotGetSystemTextFont (  )  [protected, slot]

Definition at line 167 of file kchatdialog.cpp.

void KChatDialog::slotApply (  )  [protected, virtual, slot]

Definition at line 228 of file kchatdialog.cpp.

void KChatDialog::slotOk (  )  [protected, virtual, slot]

Definition at line 222 of file kchatdialog.cpp.


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

libkdegames

Skip menu "libkdegames"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • 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