• 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 Slots | Protected Member Functions | List of all members
KopeteRichTextWidget Class Reference

#include <kopeterichtextwidget.h>

Inheritance diagram for KopeteRichTextWidget:
Inheritance graph
[legend]

Public Slots

void setFontFamily (QString family)
 
void setFontSize (int size)
 
void setRichTextEnabled (bool enable)
 
void setSendKeySequenceList (const QList< QKeySequence > &keySequenceList)
 
void setTextBold (bool bold)
 
void setTextItalic (bool italic)
 
void setTextStrikeOut (bool strikeout)
 
void setTextUnderline (bool underline)
 
void slotCheckSpellingChanged (bool b)
 
void slotDocumentSizeUpdated ()
 
void slotEnableAutoResize (bool enable)
 
void slotResetFontAndColor ()
 

Signals

void documentSizeUpdated (int difference)
 
void richTextSupportChanged ()
 

Public Member Functions

 KopeteRichTextWidget (QWidget *parent, Kopete::Protocol::Capabilities protocolCaps, KActionCollection *actionCollection)
 
 ~KopeteRichTextWidget ()
 
virtual void createActions (KActionCollection *actionCollection)
 
QTextCharFormat currentRichFormat () const
 
QTextCharFormat defaultPlainFormat () const
 
QTextCharFormat defaultRichFormat () const
 
bool isRichTextEnabled () const
 
void setCurrentRichCharFormat (const QTextCharFormat &format)
 
void setDefaultPlainCharFormat (const QTextCharFormat &format)
 
void setDefaultRichCharFormat (const QTextCharFormat &format)
 
void setTextOrHtml (const QString &text)
 

Protected Slots

void slotTextModeChanged (KRichTextEdit::Mode mode)
 
void updateCharFormat (const QTextCharFormat &)
 
void updateTextFormat ()
 

Protected Member Functions

virtual bool event (QEvent *event)
 
virtual void insertFromMimeData (const QMimeData *source)
 

Detailed Description

A KopeteRichTextWidget with overridden behaviors.

This class overrides the default behavior of fonts when cleared, pasted, etc to match the expected behavior of the user.

Note
Make sure to use only text format setters from this class and not parent otherwise you most likely will accidentally enable richtext. KRichTextWidget changes mode to richtext automatically if you change text format.
Author
Benson Tsai btsai.nosp@m.@vrw.nosp@m.arp.c.nosp@m.om
Since
4.2

Definition at line 44 of file kopeterichtextwidget.h.

Constructor & Destructor Documentation

KopeteRichTextWidget::KopeteRichTextWidget ( QWidget *  parent,
Kopete::Protocol::Capabilities  protocolCaps,
KActionCollection *  actionCollection 
)
explicit

Private class that helps to provide binary compatibility between releases.

Definition at line 87 of file kopeterichtextwidget.cpp.

KopeteRichTextWidget::~KopeteRichTextWidget ( )

Definition at line 109 of file kopeterichtextwidget.cpp.

Member Function Documentation

void KopeteRichTextWidget::createActions ( KActionCollection *  actionCollection)
virtual

Definition at line 162 of file kopeterichtextwidget.cpp.

QTextCharFormat KopeteRichTextWidget::currentRichFormat ( ) const

Definition at line 564 of file kopeterichtextwidget.cpp.

QTextCharFormat KopeteRichTextWidget::defaultPlainFormat ( ) const

Definition at line 554 of file kopeterichtextwidget.cpp.

QTextCharFormat KopeteRichTextWidget::defaultRichFormat ( ) const

Definition at line 559 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::documentSizeUpdated ( int  difference)
signal
bool KopeteRichTextWidget::event ( QEvent *  event)
protectedvirtual

Definition at line 452 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::insertFromMimeData ( const QMimeData *  source)
protectedvirtual

Definition at line 425 of file kopeterichtextwidget.cpp.

bool KopeteRichTextWidget::isRichTextEnabled ( ) const

Definition at line 569 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::richTextSupportChanged ( )
signal
void KopeteRichTextWidget::setCurrentRichCharFormat ( const QTextCharFormat &  format)

Definition at line 529 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::setDefaultPlainCharFormat ( const QTextCharFormat &  format)

Definition at line 499 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::setDefaultRichCharFormat ( const QTextCharFormat &  format)

Definition at line 520 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::setFontFamily ( QString  family)
slot

Definition at line 254 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::setFontSize ( int  size)
slot

Definition at line 272 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::setRichTextEnabled ( bool  enable)
slot

enable/disable rich text support

Parameters
enable

Definition at line 215 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::setSendKeySequenceList ( const QList< QKeySequence > &  keySequenceList)
slot

Definition at line 494 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::setTextBold ( bool  bold)
slot

Definition at line 290 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::setTextItalic ( bool  italic)
slot

Definition at line 311 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::setTextOrHtml ( const QString &  text)

Definition at line 118 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::setTextStrikeOut ( bool  strikeout)
slot

Definition at line 347 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::setTextUnderline ( bool  underline)
slot

Definition at line 329 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::slotCheckSpellingChanged ( bool  b)
slot

Definition at line 137 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::slotDocumentSizeUpdated ( )
slot

Definition at line 142 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::slotEnableAutoResize ( bool  enable)
slot

Definition at line 149 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::slotResetFontAndColor ( )
slot

Definition at line 249 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::slotTextModeChanged ( KRichTextEdit::Mode  mode)
protectedslot

Definition at line 574 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::updateCharFormat ( const QTextCharFormat &  f)
protectedslot

Definition at line 358 of file kopeterichtextwidget.cpp.

void KopeteRichTextWidget::updateTextFormat ( )
protectedslot

Definition at line 404 of file kopeterichtextwidget.cpp.


The documentation for this class was generated from the following files:
  • kopeterichtextwidget.h
  • kopeterichtextwidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:41 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