KTextEditor
messageinterface.cpp
Go to the documentation of this file.
void setWordWrap(bool wordWrap)
Enabled word wrap according to wordWrap.
Definition: messageinterface.cpp:127
MessagePosition
Message position used to place the message either above or below of the KTextEditor::View.
Definition: messageinterface.h:115
KTextEditor::View * view() const
This function returns the view you set by setView().
Definition: messageinterface.cpp:152
void setAutoHideMode(KTextEditor::Message::AutoHideMode mode)
Sets the autoHide mode to mode.
Definition: messageinterface.cpp:117
void setAutoHide(int autoHideTimer=0)
Set the auto hide timer to autoHideTimer milliseconds.
Definition: messageinterface.cpp:107
bool wordWrap() const
Check, whether word wrap is enabled or not.
Definition: messageinterface.cpp:132
void addAction(QAction *action, bool closeOnTrigger=true)
Adds an action to the message.
Definition: messageinterface.cpp:91
void closed(KTextEditor::Message *message)
This signal is emitted before the message is deleted.
KTextEditor::Message::AutoHideMode autoHideMode() const
Get the Message's autoHide mode.
Definition: messageinterface.cpp:122
MessageType messageType() const
Returns the message type set in the constructor.
Definition: messageinterface.cpp:86
void textChanged(const QString &text)
This signal is emitted whenever setText() is called.
MessagePosition position() const
Returns the desired message position of this message.
Definition: messageinterface.cpp:172
void setIcon(const QIcon &icon)
Optionally set an icon for this notification.
Definition: messageinterface.cpp:75
void setDocument(KTextEditor::Document *document)
Set the document pointer to document.
Definition: messageinterface.cpp:157
AutoHideMode
The AutoHideMode determines when to trigger the autoHide timer.
Definition: messageinterface.h:126
@ AfterUserInteraction
auto-hide is triggered only after the user interacted with the view
Definition: messageinterface.h:128
Message(const QString &richtext, MessageType type=Message::Information)
Constructor for new messages.
Definition: messageinterface.cpp:41
void setPriority(int priority)
Set the priority of this message to priority.
Definition: messageinterface.cpp:137
void setView(KTextEditor::View *view)
Set the associated view of the message.
Definition: messageinterface.cpp:147
void setPosition(MessagePosition position)
Sets the position either to AboveView or BelowView.
Definition: messageinterface.cpp:167
void setText(const QString &richtext)
Sets the notification contents to text.
Definition: messageinterface.cpp:67
void iconChanged(const QIcon &icon)
This signal is emitted whenever setIcon() is called.
QList< QAction * > actions() const
Accessor to all actions, mainly used in the internal implementation to add the actions into the gui.
Definition: messageinterface.cpp:102
KTextEditor::Document * document() const
Returns the document pointer this message was posted in.
Definition: messageinterface.cpp:162
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.