• 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 | Static Public Member Functions | List of all members
ChatTextEditPart Class Reference

#include <chattexteditpart.h>

Inherits ReadOnlyPart.

Public Slots

void checkToolbarEnabled ()
 
void complete ()
 
void historyDown ()
 
void historyUp ()
 
void sendMessage ()
 

Signals

void canSendChanged (bool canSend)
 
void messageSent (Kopete::Message &message)
 
void richTextChanged ()
 
void toolbarToggled (bool enabled)
 
void typing (bool typing)
 

Public Member Functions

 ChatTextEditPart (Kopete::ChatSession *session, QWidget *parent)
 
 ChatTextEditPart (QWidget *parent, QObject *, const QStringList &)
 
 ~ChatTextEditPart ()
 
void addText (const QString &text)
 
bool canSend ()
 
bool checkSpellingEnabled () const
 
Kopete::Message contents ()
 
bool isRichTextEnabled () const
 
bool isTyping ()
 
virtual bool openFile ()
 
void readConfig (KConfigGroup &config)
 
void resetConfig (KConfigGroup &config)
 
void setCheckSpellingEnabled (bool enabled)
 
void setContents (const Kopete::Message &message)
 
QString text (Qt::TextFormat format=Qt::AutoText) const
 
KopeteRichTextWidget * textEdit ()
 
void writeConfig (KConfigGroup &config)
 

Static Public Member Functions

static KAboutData * createAboutData ()
 

Detailed Description

An instant message composition part.

This class provides an input part suitable for the composition of instant messages. It provides command history, nickname completion and typing notifications. It is also able to determine whether the send button should be enabled.

Author
Richard Smith

Definition at line 61 of file chattexteditpart.h.

Constructor & Destructor Documentation

ChatTextEditPart::ChatTextEditPart ( Kopete::ChatSession *  session,
QWidget *  parent 
)

Definition at line 59 of file chattexteditpart.cpp.

ChatTextEditPart::ChatTextEditPart ( QWidget *  parent,
QObject *  ,
const QStringList &   
)

Definition at line 65 of file chattexteditpart.cpp.

ChatTextEditPart::~ChatTextEditPart ( )

Definition at line 126 of file chattexteditpart.cpp.

Member Function Documentation

void ChatTextEditPart::addText ( const QString &  text)

Adds text into the edit area.

Used when an emoticon is selected.

Parameters
textThe text to be inserted

Definition at line 382 of file chattexteditpart.cpp.

bool ChatTextEditPart::canSend ( )

Can we send messages now?

Definition at line 220 of file chattexteditpart.cpp.

void ChatTextEditPart::canSendChanged ( bool  canSend)
signal

Our send-button-enabled flag might have changed.

Parameters
canSendThe return value of canSend().
bool ChatTextEditPart::checkSpellingEnabled ( ) const

Get the state of auto spell checking.

Returns
true if auto spell checking is turned on, false otherwise

Definition at line 495 of file chattexteditpart.cpp.

void ChatTextEditPart::checkToolbarEnabled ( )
slot

Definition at line 500 of file chattexteditpart.cpp.

void ChatTextEditPart::complete ( )
slot

Try to complete the word under the cursor.

Definition at line 131 of file chattexteditpart.cpp.

Kopete::Message ChatTextEditPart::contents ( )

Returns the message currently in the edit area.

Returns
The Kopete::Message object for the message

Definition at line 412 of file chattexteditpart.cpp.

KAboutData * ChatTextEditPart::createAboutData ( )
static

Definition at line 505 of file chattexteditpart.cpp.

void ChatTextEditPart::historyDown ( )
slot

Go down an entry in the message history.

Definition at line 358 of file chattexteditpart.cpp.

void ChatTextEditPart::historyUp ( )
slot

Go up an entry in the message history.

Definition at line 328 of file chattexteditpart.cpp.

bool ChatTextEditPart::isRichTextEnabled ( ) const

Is rich text is currently enabled.

Definition at line 569 of file chattexteditpart.cpp.

bool ChatTextEditPart::isTyping ( )

Is the user typing right now?

Definition at line 298 of file chattexteditpart.cpp.

void ChatTextEditPart::messageSent ( Kopete::Message &  message)
signal

Emitted when a message is sent.

Parameters
messageThe message sent
virtual bool ChatTextEditPart::openFile ( )
inlinevirtual

Disable file open, because it's not used by this part.

Definition at line 96 of file chattexteditpart.h.

void ChatTextEditPart::readConfig ( KConfigGroup &  config)

Definition at line 518 of file chattexteditpart.cpp.

void ChatTextEditPart::resetConfig ( KConfigGroup &  config)

Definition at line 547 of file chattexteditpart.cpp.

void ChatTextEditPart::richTextChanged ( )
signal
void ChatTextEditPart::sendMessage ( )
slot

Sends the text currently entered into the edit area.

Definition at line 263 of file chattexteditpart.cpp.

void ChatTextEditPart::setCheckSpellingEnabled ( bool  enabled)

Enable or Disable the automatic spell checking.

Parameters
enabledthe state that auto spell checking should beee

Definition at line 490 of file chattexteditpart.cpp.

void ChatTextEditPart::setContents ( const Kopete::Message &  message)

Sets the message in the edit field.

Parameters
messageThe message to display

Definition at line 403 of file chattexteditpart.cpp.

QString ChatTextEditPart::text ( Qt::TextFormat  format = Qt::AutoText) const

Get the text in the editor in the given format.

By default if return the text using the most appropriate format.

Parameters
formatA value in Qt::TextFormat enum.
Returns
text using the given format

Definition at line 561 of file chattexteditpart.cpp.

KopeteRichTextWidget * ChatTextEditPart::textEdit ( )

Get the inside KTextEdit.

Returns
instance of KTextEdit

Definition at line 485 of file chattexteditpart.cpp.

void ChatTextEditPart::toolbarToggled ( bool  enabled)
signal
void ChatTextEditPart::typing ( bool  typing)
signal

Emitted every 4 seconds while the user is typing.

Parameters
typingtrue if the user is typing, false otherwise
void ChatTextEditPart::writeConfig ( KConfigGroup &  config)

Definition at line 537 of file chattexteditpart.cpp.


The documentation for this class was generated from the following files:
  • chattexteditpart.h
  • chattexteditpart.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