kopete/kopete
#include <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 (const QString &styleName) |
void | setStyle (ChatWindowStyle *style) |
void | setStyleVariant (const QString &variantPath) |
KDE_DEPRECATED void | slotToggleGraphicOverride (bool enable) |
Signals | |
void | contextMenuEvent (const QString &textUnderMouse, KMenu *popupMenu) |
void | tooltipEvent (const QString &textUnderMouse, QString &toolTip) |
Public Member Functions | |
ChatMessagePart (Kopete::ChatSession *manager, QWidget *parent) | |
~ChatMessagePart () | |
void | clear () |
QString | formatName (const Kopete::Contact *contact, Qt::TextFormat format) const |
QString | formatName (const QString &sourceName, Qt::TextFormat format) const |
void | keepScrolledDown () |
Protected Member Functions | |
virtual void | khtmlDrawContentsEvent (khtml::DrawContentsEvent *) |
Detailed Description
Definition at line 44 of file chatmessagepart.h.
Constructor & Destructor Documentation
ChatMessagePart::ChatMessagePart | ( | Kopete::ChatSession * | manager, |
QWidget * | parent | ||
) |
Create a new ChatMessage Part.
Definition at line 211 of file chatmessagepart.cpp.
ChatMessagePart::~ChatMessagePart | ( | ) |
Definition at line 285 of file chatmessagepart.cpp.
Member Function Documentation
|
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 474 of file chatmessagepart.cpp.
void ChatMessagePart::clear | ( | ) |
Clear the message window.
Definition at line 707 of file chatmessagepart.cpp.
|
signal |
Emits before the context menu is about to show.
|
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 893 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 1250 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 1232 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 672 of file chatmessagepart.cpp.
|
protectedvirtual |
Definition at line 941 of file chatmessagepart.cpp.
|
slot |
Definition at line 452 of file chatmessagepart.cpp.
|
slot |
Scroll the view down a page.
Definition at line 373 of file chatmessagepart.cpp.
|
slot |
Scroll the view up a page.
Definition at line 368 of file chatmessagepart.cpp.
|
slot |
Print out the contents of the chatwindow.
Definition at line 936 of file chatmessagepart.cpp.
|
slot |
Save the contents of the chat to a file.
Definition at line 309 of file chatmessagepart.cpp.
|
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 419 of file chatmessagepart.cpp.
|
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 425 of file chatmessagepart.cpp.
|
slot |
Change the current variant for the current style.
- Parameters
-
variantPath relative path to the style variant.
Definition at line 445 of file chatmessagepart.cpp.
|
slot |
- Deprecated:
- does nothing
Definition at line 415 of file chatmessagepart.cpp.
Emits before the tooltip is about to show.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.