#include <kchatdialog.h>

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 () |
Definition at line 31 of file kchatdialog.h.
| KChatDialog::KChatDialog | ( | QWidget * | parent, | |
| bool | modal = false | |||
| ) | [explicit] |
| 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.
References plugChatWidget().

| KChatDialog::~KChatDialog | ( | ) |
| QFont KChatDialog::nameFont | ( | ) | const |
Definition at line 174 of file kchatdialog.cpp.
References KChatDialogPrivate::mNamePreview.
Referenced by configureChatWidget(), and slotGetNameFont().
| QFont KChatDialog::textFont | ( | ) | const |
Definition at line 179 of file kchatdialog.cpp.
References KChatDialogPrivate::mTextPreview.
Referenced by configureChatWidget(), and slotGetTextFont().
| QFont KChatDialog::systemNameFont | ( | ) | const |
Definition at line 184 of file kchatdialog.cpp.
References KChatDialogPrivate::mSystemNamePreview.
Referenced by configureChatWidget(), and slotGetSystemNameFont().
| QFont KChatDialog::systemTextFont | ( | ) | const |
Definition at line 189 of file kchatdialog.cpp.
References KChatDialogPrivate::mSystemTextPreview.
Referenced by configureChatWidget(), and slotGetSystemTextFont().
| 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.
| 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.
References KChatBase::maxItems(), KChatDialogPrivate::mChat, KChatBase::messageFont(), KChatBase::nameFont(), KChatBase::systemMessageFont(), and KChatBase::systemNameFont().
Referenced by KChatDialog().

| 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.
| widget | The chat widget that shall be configured |
Definition at line 206 of file kchatdialog.cpp.
References maxMessages(), nameFont(), KChatBase::saveConfig(), KChatBase::setMaxItems(), KChatBase::setMessageFont(), KChatBase::setNameFont(), KChatBase::setSystemMessageFont(), KChatBase::setSystemNameFont(), systemNameFont(), systemTextFont(), and textFont().
Referenced by slotApply().

| int KChatDialog::maxMessages | ( | ) | const |
-1 is unlimited
Definition at line 258 of file kchatdialog.cpp.
References KChatDialogPrivate::mMaxMessages.
Referenced by configureChatWidget().
| void KChatDialog::slotGetNameFont | ( | ) | [protected, slot] |
| void KChatDialog::slotGetTextFont | ( | ) | [protected, slot] |
| void KChatDialog::slotGetSystemNameFont | ( | ) | [protected, slot] |
| void KChatDialog::slotGetSystemTextFont | ( | ) | [protected, slot] |
| void KChatDialog::slotApply | ( | ) | [protected, virtual, slot] |
Definition at line 228 of file kchatdialog.cpp.
References configureChatWidget(), and KChatDialogPrivate::mChat.
Referenced by slotOk().
| void KChatDialog::slotOk | ( | ) | [protected, virtual, slot] |
1.5.3