kopete/kopete
#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.
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
-
text The 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.
|
signal |
Our send-button-enabled flag might have changed.
- Parameters
-
canSend The 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.
|
slot |
Definition at line 500 of file chattexteditpart.cpp.
|
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.
|
static |
Definition at line 505 of file chattexteditpart.cpp.
|
slot |
Go down an entry in the message history.
Definition at line 358 of file chattexteditpart.cpp.
|
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.
|
signal |
Emitted when a message is sent.
- Parameters
-
message The message sent
|
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.
|
signal |
|
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
-
enabled the 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
-
message The 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
-
format A 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.
|
signal |
|
signal |
Emitted every 4 seconds while the user is typing.
- Parameters
-
typing true
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:
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.