kopete/kopete
ChatMessagePart Class Reference
#include <chatmessagepart.h>

Detailed Description
Definition at line 43 of file chatmessagepart.h.
Public Slots | |
| void | appendMessage (Kopete::Message &message, bool restoring=false) |
| void | copy (bool justselection=false) |
| void | messageStateChanged (uint messageId, Kopete::Message::MessageState state) |
| void | pageDown () |
| void | pageUp () |
| void | print () |
| void | save () |
| void | setStyle (ChatWindowStyle *style) |
| void | setStyle (const QString &styleName) |
| void | setStyleVariant (const QString &variantPath) |
Signals | |
| void | contextMenuEvent (const QString &textUnderMouse, KMenu *popupMenu) |
| void | tooltipEvent (const QString &textUnderMouse, QString &toolTip) |
Public Member Functions | |
| ChatMessagePart (Kopete::ChatSession *manager, QWidget *parent) | |
| void | clear () |
| QString | formatName (const QString &sourceName, Qt::TextFormat format) const |
| QString | formatName (const Kopete::Contact *contact, Qt::TextFormat format) const |
| void | keepScrolledDown () |
| ~ChatMessagePart () | |
Protected Member Functions | |
| virtual void | khtmlDrawContentsEvent (khtml::DrawContentsEvent *) |
Constructor & Destructor Documentation
| ChatMessagePart::ChatMessagePart | ( | Kopete::ChatSession * | manager, | |
| QWidget * | parent | |||
| ) |
| ChatMessagePart::~ChatMessagePart | ( | ) |
Definition at line 275 of file chatmessagepart.cpp.
Member Function Documentation
| void ChatMessagePart::appendMessage | ( | Kopete::Message & | message, | |
| bool | restoring = false | |||
| ) | [slot] |
Appends a message to the messave view.
- Parameters:
-
message The message to be appended restoring This flag is used to not re-append message when changing style. By default false.
Definition at line 448 of file chatmessagepart.cpp.
| void ChatMessagePart::clear | ( | ) |
| void ChatMessagePart::contextMenuEvent | ( | const QString & | textUnderMouse, | |
| KMenu * | popupMenu | |||
| ) | [signal] |
Emits before the context menu is about to show.
| void ChatMessagePart::copy | ( | bool | justselection = false |
) | [slot] |
Initiates a copy action If there is text selected in the HTML view, that text is copied Otherwise if justselection is false, the entire edit area is copied.
- Parameters:
-
justselection If this is true, then the text will be only copied to the selection buffer only. In this mode, if nothing is selected, then nothing is copied.
Definition at line 845 of file chatmessagepart.cpp.
Format a nickname/displayname according to preferences.
- Parameters:
-
sourceName Source name to format. format text format, only PlainText and RichText are supported
- Returns:
- the formatted name.
Definition at line 1158 of file chatmessagepart.cpp.
| QString ChatMessagePart::formatName | ( | const Kopete::Contact * | contact, | |
| Qt::TextFormat | format | |||
| ) | const |
Format contact's nickname/displayname according to preferences.
- Parameters:
-
contact Contact to format. format text format, only PlainText and RichText are supported
- Returns:
- the formatted name.
Definition at line 1176 of file chatmessagepart.cpp.
| void ChatMessagePart::keepScrolledDown | ( | ) |
Immediately scroll the chat to the bottom, as long as it has not been intentionally scrolled away from the bottom use.
Definition at line 633 of file chatmessagepart.cpp.
| void ChatMessagePart::khtmlDrawContentsEvent | ( | khtml::DrawContentsEvent * | event | ) | [protected, virtual] |
Definition at line 892 of file chatmessagepart.cpp.
| void ChatMessagePart::messageStateChanged | ( | uint | messageId, | |
| Kopete::Message::MessageState | state | |||
| ) | [slot] |
Definition at line 426 of file chatmessagepart.cpp.
| void ChatMessagePart::pageDown | ( | ) | [slot] |
| void ChatMessagePart::pageUp | ( | ) | [slot] |
| void ChatMessagePart::print | ( | ) | [slot] |
| void ChatMessagePart::save | ( | ) | [slot] |
| void ChatMessagePart::setStyle | ( | ChatWindowStyle * | style | ) | [slot] |
Change the current style This method override is used on preview and unit tests.
Use a already existing ChatWindowStyle object.
Need to rebuild all the XHTML content.
- Parameters:
-
chatWindowStyle ChatWindowStyle object.
Definition at line 409 of file chatmessagepart.cpp.
| void ChatMessagePart::setStyle | ( | const QString & | styleName | ) | [slot] |
Change the current style.
This method override is used when preferences change. This method create a new ChatWindowStyle object.
Need to rebuild all the XHTML content.
- Parameters:
-
styleName name of the style.
Definition at line 399 of file chatmessagepart.cpp.
| void ChatMessagePart::setStyleVariant | ( | const QString & | variantPath | ) | [slot] |
Change the current variant for the current style.
- Parameters:
-
variantPath relative path to the style variant.
Definition at line 419 of file chatmessagepart.cpp.
Emits before the tooltip is about to show.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference