• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/kopete

ChatMessagePart Class Reference

#include <chatmessagepart.h>

Inheritance diagram for ChatMessagePart:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Richard Smith

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 
)

Create a new ChatMessage Part.

Definition at line 204 of file chatmessagepart.cpp.

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 (  ) 

Clear the message window.

Definition at line 668 of file chatmessagepart.cpp.

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.

QString ChatMessagePart::formatName ( const QString &  sourceName,
Qt::TextFormat  format 
) const

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]

Scroll the view down a page.

Definition at line 355 of file chatmessagepart.cpp.

void ChatMessagePart::pageUp (  )  [slot]

Scroll the view up a page.

Definition at line 350 of file chatmessagepart.cpp.

void ChatMessagePart::print (  )  [slot]

Print out the contents of the chatwindow.

Definition at line 887 of file chatmessagepart.cpp.

void ChatMessagePart::save (  )  [slot]

Save the contents of the chat to a file.

Definition at line 299 of file chatmessagepart.cpp.

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.

void ChatMessagePart::tooltipEvent ( const QString &  textUnderMouse,
QString &  toolTip 
) [signal]

Emits before the tooltip is about to show.


The documentation for this class was generated from the following files:
  • chatmessagepart.h
  • chatmessagepart.cpp

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal