#include <kchatbase.h>
Collaboration diagram for KChatBaseText:

Public Member Functions | |
| KChatBaseText (const QString &player, const QString &text) | |
| Constructs a KChatBaseText object with the player and text part. | |
| KChatBaseText (const QString &text) | |
| Constructs a KChatBaseText object without player part. | |
| virtual | ~KChatBaseText () |
| Destruct a KChatBaseText object. | |
| void | setName (const QString &name) |
| Set the name part of a message. | |
| void | setMessage (const QString &message) |
| Set the text part of a message. | |
| const QString & | name () const |
| const QString & | message () const |
| QFont | nameFont () const |
| You can set the font of the sender name independently of the message itself. | |
| QFont | messageFont () const |
| You can set the font of the message independently of the sender name. | |
| void | setNameFont (const QFont *font) |
| Set the font for the name. | |
| void | setMessageFont (const QFont *font) |
| Set the font for the message text. | |
| virtual int | width (QListBox *) const |
| virtual int | height (QListBox *) const |
Protected Member Functions | |
| virtual void | paint (QPainter *) |
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.
|
||||||||||||
|
Constructs a KChatBaseText object with the player and text part.
Definition at line 50 of file kchatbase.cpp. References setMessage(), and setName(). Here is the call graph for this function: ![]() |
|
|
Constructs a KChatBaseText object without player part.
Definition at line 57 of file kchatbase.cpp. References setMessage(). Here is the call graph for this function: ![]() |
|
|
Destruct a KChatBaseText object.
Definition at line 63 of file kchatbase.cpp. |
|
|
Definition at line 141 of file kchatbase.cpp. References messageFont(), and nameFont(). Here is the call graph for this function: ![]() |
|
|
Definition at line 89 of file kchatbase.cpp. References KChatBaseTextPrivate::mMessage. Referenced by paint(), setMessage(), setName(), and width(). |
|
|
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. References KChatBaseTextPrivate::mMessageFont. |
|
|
Definition at line 86 of file kchatbase.cpp. References KChatBaseTextPrivate::mName. Referenced by paint(), setMessage(), setName(), and width(). |
|
|
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. References KChatBaseTextPrivate::mNameFont. |
|
|
Definition at line 120 of file kchatbase.cpp. References message(), messageFont(), name(), nameFont(), and width(). Here is the call graph for this function: ![]() |
|
|
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(), KChatBaseTextPrivate::mMessage, and name(). Referenced by KChatBaseText(). Here is the call graph for this function: ![]() |
|
|
Set the font for the message text.
Definition at line 117 of file kchatbase.cpp. References KChatBaseTextPrivate::mMessageFont. Referenced by KChatBase::layoutSystemMessage(). |
|
|
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(), KChatBaseTextPrivate::mName, and name(). Referenced by KChatBaseText(). Here is the call graph for this function: ![]() |
|
|
Set the font for the name.
Definition at line 114 of file kchatbase.cpp. References KChatBaseTextPrivate::mNameFont. Referenced by KChatBase::layoutSystemMessage(). |
|
|
Definition at line 129 of file kchatbase.cpp. References message(), messageFont(), name(), and nameFont(). Referenced by paint(). Here is the call graph for this function: ![]() |
1.4.6