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

kopete/kopete

Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
ChatMessagePart Class Reference

#include <chatmessagepart.h>

Inheritance diagram for ChatMessagePart:
Inheritance graph
[legend]

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

Author
Richard Smith

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

void ChatMessagePart::appendMessage ( Kopete::Message &  message,
bool  restoring = false 
)
slot

Appends a message to the messave view.

Parameters
messageThe message to be appended
restoringThis 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.

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
justselectionIf 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
contactContact to format.
formattext format, only PlainText and RichText are supported
Returns
the formatted name.

Definition at line 1250 of file chatmessagepart.cpp.

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

Format a nickname/displayname according to preferences.

Parameters
sourceNameSource name to format.
formattext 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.

void ChatMessagePart::khtmlDrawContentsEvent ( khtml::DrawContentsEvent *  event)
protectedvirtual

Definition at line 941 of file chatmessagepart.cpp.

void ChatMessagePart::messageStateChanged ( uint  messageId,
Kopete::Message::MessageState  state 
)
slot

Definition at line 452 of file chatmessagepart.cpp.

void ChatMessagePart::pageDown ( )
slot

Scroll the view down a page.

Definition at line 373 of file chatmessagepart.cpp.

void ChatMessagePart::pageUp ( )
slot

Scroll the view up a page.

Definition at line 368 of file chatmessagepart.cpp.

void ChatMessagePart::print ( )
slot

Print out the contents of the chatwindow.

Definition at line 936 of file chatmessagepart.cpp.

void ChatMessagePart::save ( )
slot

Save the contents of the chat to a file.

Definition at line 309 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
styleNamename of the style.

Definition at line 419 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
chatWindowStyleChatWindowStyle object.

Definition at line 425 of file chatmessagepart.cpp.

void ChatMessagePart::setStyleVariant ( const QString &  variantPath)
slot

Change the current variant for the current style.

Parameters
variantPathrelative path to the style variant.

Definition at line 445 of file chatmessagepart.cpp.

void ChatMessagePart::slotToggleGraphicOverride ( bool  enable)
slot
Deprecated:
does nothing

Definition at line 415 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
This file is part of the KDE documentation.
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.

kopete/kopete

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

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal