KTextEditor
messageinterface.cpp
Go to the documentation of this file.
KTextEditor::View * view() const
This function returns the view you set by setView().
Definition: messageinterface.cpp:152
auto-hide is triggered only after the user interacted with the view
Definition: messageinterface.h:128
void setDocument(KTextEditor::Document *document)
Set the document pointer to document.
Definition: messageinterface.cpp:157
void setIcon(const QIcon &icon)
Optionally set an icon for this notification.
Definition: messageinterface.cpp:75
void iconChanged(const QIcon &icon)
This signal is emitted whenever setIcon() is called.
void setView(KTextEditor::View *view)
Set the associated view of the message.
Definition: messageinterface.cpp:147
void textChanged(const QString &text)
This signal is emitted whenever setText() is called.
bool wordWrap() const
Check, whether word wrap is enabled or not.
Definition: messageinterface.cpp:132
MessagePosition position() const
Returns the desired message position of this message.
Definition: messageinterface.cpp:172
void setAutoHide(int autoHideTimer=0)
Set the auto hide timer to autoHideTimer milliseconds.
Definition: messageinterface.cpp:107
A KParts derived class representing a text document.
Definition: document.h:111
KTextEditor::Document * document() const
Returns the document pointer this message was posted in.
Definition: messageinterface.cpp:162
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
void deleteLater()
void setPosition(MessagePosition position)
Sets the position either to AboveView or BelowView.
Definition: messageinterface.cpp:167
MessagePosition
Message position used to place the message either above or below of the KTextEditor::View.
Definition: messageinterface.h:115
void setParent(QObject *parent)
void setAutoHideMode(KTextEditor::Message::AutoHideMode mode)
Sets the autoHide mode to mode.
Definition: messageinterface.cpp:117
KTextEditor::Message::AutoHideMode autoHideMode() const
Get the Message's autoHide mode.
Definition: messageinterface.cpp:122
Message(const QString &richtext, MessageType type=Message::Information)
Constructor for new messages.
Definition: messageinterface.cpp:41
int autoHide() const
Returns the auto hide time in milliseconds.
Definition: messageinterface.cpp:112
void setWordWrap(bool wordWrap)
Enabled word wrap according to wordWrap.
Definition: messageinterface.cpp:127
MessageType messageType() const
Returns the message type set in the constructor.
Definition: messageinterface.cpp:86
AutoHideMode
The AutoHideMode determines when to trigger the autoHide timer.
Definition: messageinterface.h:126
A text widget with KXMLGUIClient that represents a Document.
Definition: view.h:145
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setPriority(int priority)
Set the priority of this message to priority.
Definition: messageinterface.cpp:137
void closed(KTextEditor::Message *message)
This signal is emitted before the message is deleted.
void setText(const QString &richtext)
Sets the notification contents to text.
Definition: messageinterface.cpp:67
void addAction(QAction *action, bool closeOnTrigger=true)
Adds an action to the message.
Definition: messageinterface.cpp:91
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.