KChatDialog Class Reference

#include <kchatdialog.h>

Collaboration diagram for KChatDialog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KChatDialog (QWidget *parent, bool modal=false)
 Construct a KChatDialog widget.
 KChatDialog (KChatBase *chatWidget, QWidget *parent, bool modal=false)
 Construct a KChatDialog widget which automatically configures the KChatBase widget.
 ~KChatDialog ()
 Destruct the dialog.
QFont nameFont () const
QFont textFont () const
QFont systemNameFont () const
QFont systemTextFont () const
void plugChatWidget (KChatBase *widget, bool applyFonts=true)
 Set the widget that will be configured by the dialog.
void configureChatWidget (KChatBase *widget)
 Used to configure the chat widget according to the user settings.
int maxMessages () const

Protected Slots

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

Detailed Description

Definition at line 30 of file kchatdialog.h.


Constructor & Destructor Documentation

KChatDialog::KChatDialog QWidget *  parent,
bool  modal = false
 

Construct a KChatDialog widget.

Definition at line 66 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 58 of file kchatdialog.cpp.

References plugChatWidget().

Here is the call graph for this function:

KChatDialog::~KChatDialog  ) 
 

Destruct the dialog.

Definition at line 73 of file kchatdialog.cpp.


Member Function Documentation

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 193 of file kchatdialog.cpp.

References maxMessages(), nameFont(), KChatBase::setMaxItems(), KChatBase::setMessageFont(), KChatBase::setNameFont(), KChatBase::setSystemMessageFont(), KChatBase::setSystemNameFont(), systemNameFont(), systemTextFont(), and textFont().

Referenced by slotApply().

Here is the call graph for this function:

int KChatDialog::maxMessages  )  const
 

Returns:
The maximal allowed messages in the chat widget. -1 is unlimited

Definition at line 243 of file kchatdialog.cpp.

References KChatDialogPrivate::mMaxMessages.

Referenced by configureChatWidget().

QFont KChatDialog::nameFont  )  const
 

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

Definition at line 161 of file kchatdialog.cpp.

References KChatDialogPrivate::mNamePreview.

Referenced by configureChatWidget(), and slotGetNameFont().

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
Whether you want to have the current KChatBase fonts as defaults in the dialog

Definition at line 181 of file kchatdialog.cpp.

References KChatBase::maxItems(), KChatDialogPrivate::mChat, KChatBase::messageFont(), KChatBase::nameFont(), KChatBase::systemMessageFont(), and KChatBase::systemNameFont().

Referenced by KChatDialog().

Here is the call graph for this function:

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

Definition at line 213 of file kchatdialog.cpp.

References configureChatWidget(), and KChatDialogPrivate::mChat.

Referenced by slotOk().

void KChatDialog::slotGetNameFont  )  [protected, slot]
 

Definition at line 133 of file kchatdialog.cpp.

References nameFont().

void KChatDialog::slotGetSystemNameFont  )  [protected, slot]
 

Definition at line 147 of file kchatdialog.cpp.

References systemNameFont().

void KChatDialog::slotGetSystemTextFont  )  [protected, slot]
 

Definition at line 154 of file kchatdialog.cpp.

References systemTextFont().

void KChatDialog::slotGetTextFont  )  [protected, slot]
 

Definition at line 140 of file kchatdialog.cpp.

References textFont().

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

Definition at line 207 of file kchatdialog.cpp.

References slotApply().

QFont KChatDialog::systemNameFont  )  const
 

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

Definition at line 171 of file kchatdialog.cpp.

References KChatDialogPrivate::mSystemNamePreview.

Referenced by configureChatWidget(), and slotGetSystemNameFont().

QFont KChatDialog::systemTextFont  )  const
 

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

Definition at line 176 of file kchatdialog.cpp.

References KChatDialogPrivate::mSystemTextPreview.

Referenced by configureChatWidget(), and slotGetSystemTextFont().

QFont KChatDialog::textFont  )  const
 

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

Definition at line 166 of file kchatdialog.cpp.

References KChatDialogPrivate::mTextPreview.

Referenced by configureChatWidget(), and slotGetTextFont().


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