KChatBaseText Class Reference
A QListBoxText implementation for KChatBase. More...
#include <kchatbase.h>
Inheritance diagram for KChatBaseText:

Public Member Functions | |
KChatBaseText (const QString &player, const QString &text) | |
KChatBaseText (const QString &text) | |
virtual | ~KChatBaseText () |
void | setName (const QString &name) |
void | setMessage (const QString &message) |
const QString & | name () const |
const QString & | message () const |
QFont | nameFont () const |
QFont | messageFont () const |
void | setNameFont (const QFont *font) |
void | setMessageFont (const QFont *font) |
virtual int | width (QListBox *) const |
virtual int | height (QListBox *) const |
Protected Member Functions | |
virtual void | paint (QPainter *) |
Detailed Description
A QListBoxText implementation for KChatBase.It supports different colors, text fonts, ...
A KChatBaseText consists of two text items: first the player part then the text part. This honors KChatBase::addMessage which also uses both. You can leave the player part out if you don't need it - there won't be any difference.
You can set different colors and fonts for both parts. In the future there will probably some kind of KChatBaseDialog which offers the user the ability to configure things like color and font on the fly.
Definition at line 49 of file kchatbase.h.
Constructor & Destructor Documentation
|
Constructs a KChatBaseText object with the player and text part.
Definition at line 50 of file kchatbase.cpp. References setMessage(), and setName(). |
|
Constructs a KChatBaseText object without player part.
Definition at line 57 of file kchatbase.cpp. References setMessage(). |
|
Destruct a KChatBaseText object.
Definition at line 63 of file kchatbase.cpp. |
Member Function Documentation
|
Set the name part of a message. A message is usually shown like "name: text" and you can change both parts independently.
Definition at line 73 of file kchatbase.cpp. References message(), and name(). Referenced by KChatBaseText(). |
|
Set the text part of a message. A message is usually shown like "name: message" and you can change both parts independently. See also setName
Definition at line 80 of file kchatbase.cpp. References message(), and name(). Referenced by KChatBaseText(). |
|
Definition at line 86 of file kchatbase.cpp. Referenced by setMessage(), and setName(). |
|
Definition at line 89 of file kchatbase.cpp. Referenced by setMessage(), and setName(). |
|
You can set the font of the sender name independently of the message itself. This font is used as the "name: " part of the message.
Definition at line 92 of file kchatbase.cpp. |
|
You can set the font of the message independently of the sender name. This font is used as the text part of the message.
Definition at line 103 of file kchatbase.cpp. |
|
Set the font for the name.
Definition at line 114 of file kchatbase.cpp. Referenced by KChatBase::layoutMessage(), and KChatBase::layoutSystemMessage(). |
|
Set the font for the message text.
Definition at line 117 of file kchatbase.cpp. Referenced by KChatBase::layoutMessage(), and KChatBase::layoutSystemMessage(). |
The documentation for this class was generated from the following files: