KTextEditor
messageinterface.cpp
void textChanged(const QString &text)
This signal is emitted whenever setText() was called.
KTextEditor::Message::AutoHideMode autoHideMode() const
Get the Message's auto hide mode.
Definition: messageinterface.cpp:102
void setIcon(const QIcon &icon)
Add an optional icon for this notification which will be shown next to the message text.
Definition: messageinterface.cpp:54
void setPriority(int priority)
Set the priority of this message to priority.
Definition: messageinterface.cpp:117
void setView(KTextEditor::View *view)
Set the associated view of the message.
Definition: messageinterface.cpp:127
AutoHideMode
The AutoHideMode determines when to trigger the autoHide timer.
Definition: message.h:135
Q_EMITQ_EMIT
void iconChanged(const QIcon &icon)
This signal is emitted whenever setIcon() was called.
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
MessageType messageType() const
Returns the message type set in the constructor.
Definition: messageinterface.cpp:65
void setDocument(KTextEditor::Document *document)
Set the document pointer to document.
Definition: messageinterface.cpp:137
void setAutoHideMode(KTextEditor::Message::AutoHideMode mode)
Sets the auto hide mode to mode.
Definition: messageinterface.cpp:97
void deleteLater()
bool wordWrap() const
Check, whether word wrap is enabled or not.
Definition: messageinterface.cpp:112
MessagePosition
Message position used to place the message either above or below of the KTextEditor::View.
Definition: message.h:117
KTextEditor::View * view() const
This function returns the view you set by setView().
Definition: messageinterface.cpp:132
void setAutoHide(int delay=0)
Set the auto hide time to delay milliseconds.
Definition: messageinterface.cpp:87
QList< QAction * > actions() const
Accessor to all actions, mainly used in the internal implementation to add the actions into the gui.
Definition: messageinterface.cpp:82
void setWordWrap(bool wordWrap)
Enabled word wrap according to wordWrap.
Definition: messageinterface.cpp:107
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition: katetextblock.h:22
Message(const QString &richtext, MessageType type=Message::Information)
Constructor for new messages.
Definition: messageinterface.cpp:27
void triggered(bool checked)
KTextEditor::Document * document() const
Returns the document pointer this message was posted in.
Definition: messageinterface.cpp:142
void setPosition(MessagePosition position)
Sets the position of the message to position.
Definition: messageinterface.cpp:147
void setParent(QObject *parent)
MessagePosition position() const
Returns the message position of this message.
Definition: messageinterface.cpp:152
void addAction(QAction *action, bool closeOnTrigger=true)
Adds an action to the message.
Definition: messageinterface.cpp:70
@ AfterUserInteraction
auto-hide is triggered only after the user interacted with the view
Definition: message.h:137
void setText(const QString &richtext)
Sets the notification contents to richtext.
Definition: messageinterface.cpp:46
void closed(KTextEditor::Message *message)
This signal is emitted before the message is deleted.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:50:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:50:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.