kopete/kopete
ChatTextEditPart Class Reference
#include <chattexteditpart.h>

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.
Definition at line 53 of file chattexteditpart.h.
Public Slots | |
| void | historyUp () |
| void | historyDown () |
| void | complete () |
| void | sendMessage () |
Signals | |
| void | messageSent (Kopete::Message &message) |
| void | typing (bool typing) |
| void | canSendChanged (bool canSend) |
Public Member Functions | |
| ChatTextEditPart (Kopete::ChatSession *session, QWidget *parent) | |
| ~ChatTextEditPart () | |
| Kopete::Message | contents () |
| void | setContents (const Kopete::Message &message) |
| void | addText (const QString &text) |
| bool | canSend () |
| bool | isTyping () |
| void | toggleAutoSpellCheck (bool enabled) |
| bool | autoSpellCheckEnabled () const |
Constructor & Destructor Documentation
| ChatTextEditPart::ChatTextEditPart | ( | Kopete::ChatSession * | session, | |
| QWidget * | parent | |||
| ) |
Definition at line 35 of file chattexteditpart.cpp.
| ChatTextEditPart::~ChatTextEditPart | ( | ) |
Definition at line 82 of file chattexteditpart.cpp.
Member Function Documentation
| Kopete::Message ChatTextEditPart::contents | ( | ) |
Returns the message currently in the edit area.
- Returns:
- The Kopete::Message object for the message
Definition at line 414 of file chattexteditpart.cpp.
| void ChatTextEditPart::setContents | ( | const Kopete::Message & | message | ) |
Sets the message in the edit field.
- Parameters:
-
message The message to display
Definition at line 402 of file chattexteditpart.cpp.
| void ChatTextEditPart::addText | ( | const QString & | text | ) |
Adds text into the edit area.
Used when an emoticon is selected.
- Parameters:
-
text The text to be inserted
Definition at line 390 of file chattexteditpart.cpp.
| bool ChatTextEditPart::canSend | ( | ) |
| bool ChatTextEditPart::isTyping | ( | ) |
| void ChatTextEditPart::toggleAutoSpellCheck | ( | bool | enabled | ) |
Enable or Disable the automatic spell checking.
- Parameters:
-
enabled the state that auto spell checking should beee
Definition at line 87 of file chattexteditpart.cpp.
| bool ChatTextEditPart::autoSpellCheckEnabled | ( | ) | const |
Get the state of auto spell checking.
- Returns:
- true if auto spell checking is turned on, false otherwise
Definition at line 101 of file chattexteditpart.cpp.
| void ChatTextEditPart::historyUp | ( | ) | [slot] |
| void ChatTextEditPart::historyDown | ( | ) | [slot] |
| void ChatTextEditPart::complete | ( | ) | [slot] |
| void ChatTextEditPart::sendMessage | ( | ) | [slot] |
Sends the text currently entered into the edit area.
Definition at line 268 of file chattexteditpart.cpp.
| void ChatTextEditPart::messageSent | ( | Kopete::Message & | message | ) | [signal] |
Emitted when a message is sent.
- Parameters:
-
message The message sent
| void ChatTextEditPart::typing | ( | bool | typing | ) | [signal] |
Emitted every 4 seconds while the user is typing.
- Parameters:
-
typing trueif the user is typing,falseotherwise
| void ChatTextEditPart::canSendChanged | ( | bool | canSend | ) | [signal] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference