Plasma
applet.h
Go to the documentation of this file.
1003 void showMessage(const QIcon &icon, const QString &message, const Plasma::MessageButtons buttons);
void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Reimplemented from QGraphicsLayoutItem.
Definition applet.cpp:2543
void appletTransformedItself()
Emitted when the applet changes its own geometry or transform.
@ NoBackground
Not drawing a background under the applet, the applet has its own implementation.
Definition applet.h:104
@ TranslucentBackground
An alternate version of the background is drawn, usually more translucent.
Definition applet.h:107
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Reimplemented from QGraphicsItem.
Definition applet.cpp:2436
void setHasConfigurationInterface(bool hasInterface)
Sets whether or not this applet provides a user interface for configuring the applet.
Definition applet.cpp:1724
virtual void showConfigurationInterface()
Lets the user interact with the plasmoid options.
Definition applet.cpp:1898
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Reimplemented from QGraphicsLayoutItem.
Definition applet.cpp:2548
KConfigGroup config() const
Returns the KConfigGroup to access the applets configuration.
Definition applet.cpp:450
void messageButtonPressed(const Plasma::MessageButton button)
Emitted when the user clicked on a button of the message overlay.
void showMessage(const QIcon &icon, const QString &message, const Plasma::MessageButtons buttons)
Shows a message as an overlay of the applet: the message has an icon, text and (optional) buttons.
Definition applet.cpp:1062
void setConfigurationRequired(bool needsConfiguring, const QString &reason=QString())
When the applet needs to be configured before being usable, this method can be called to show a stand...
Definition applet.cpp:1010
virtual void destroy()
Destroys the applet; it will be removed nicely and deleted.
Definition applet.cpp:479
bool sceneEventFilter(QGraphicsItem *watched, QEvent *event)
Definition applet.cpp:1779
void resizeEvent(QGraphicsSceneResizeEvent *event)
Reimplemented from QGraphicsItem.
Definition applet.cpp:1879
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition applet.cpp:1862
void newStatus(Plasma::ItemStatus status)
Emitted when the applet status changes.
void setBackgroundHints(const BackgroundHints hints)
Sets the BackgroundHints for this applet.
Definition applet.cpp:938
void configNeedsSaving()
Emitted when an applet has changed values in its configuration and wishes for them to be saved at the...
friend class AssociatedApplicationManager
Definition applet.h:1153
virtual void init()
This method is called once the applet is loaded and added to a Corona.
Definition applet.cpp:243
virtual void configChanged()
Called when applet configuration values have changed.
Definition applet.cpp:2198
void publish(Plasma::AnnouncementMethods methods, const QString &resourceName)
Publishes and optionally announces this applet on the network for remote access.
Definition applet.cpp:1680
void unregisterAsDragHandle(QGraphicsItem *item)
Unregister a widget registered with registerAsDragHandle.
Definition applet.cpp:1657
void runAssociatedApplication()
Open the application associated to this applet, if it's not set but some urls are,...
Definition applet.cpp:2257
void releaseVisualFocus()
This signal indicates that an application launch, window creation or window focus event was triggered...
virtual void saveState(KConfigGroup &config) const
When called, the Applet should write any information needed as part of the Applet's running state to ...
Definition applet.cpp:426
bool isRegisteredAsDragHandle(QGraphicsItem *item)
Definition applet.cpp:1670
void registerAsDragHandle(QGraphicsItem *item)
Register the widgets that manage mouse clicks but you still want to be able to drag the applet around...
Definition applet.cpp:1647
void setImmutability(const ImmutabilityType immutable)
Sets the immutability type for this applet (not immutable, user immutable or system immutable)
Definition applet.cpp:919
void flushPendingConstraintsEvents()
Sends all pending contraints updates to the applet.
Definition applet.cpp:1204
void geometryChanged()
Emitted whenever the applet makes a geometry change, so that views can coordinate themselves with the...
QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const
Reimplemented from QGraphicsLayoutItem.
Definition applet.cpp:2509
void setFailedToLaunch(bool failed, const QString &reason=QString())
Call this method when the applet fails to launch properly.
Definition applet.cpp:366
void sizeHintChanged(Qt::SizeHint which)
Emitted by Applet subclasses when they change a sizeHint and wants to announce the change.
Applet(QGraphicsItem *parent=0, const QString &serviceId=QString(), uint appletId=0)
Definition applet.cpp:136
void activate()
Emitted when activation is requested due to, for example, a global keyboard shortcut.
void appletDestroyed(Plasma::Applet *applet)
Emitted when the applet is deleted.
void extenderItemRestored(Plasma::ExtenderItem *item)
Emitted when an ExtenderItem in a scripting applet needs to be initialized.
void immutabilityChanged(Plasma::ImmutabilityType immutable)
Emitted when the immutability changes.
void appletTransformedByUser()
Emitted when the user completes a transformation of the applet.
virtual void constraintsEvent(Plasma::Constraints constraints)
Definition applet.cpp:755
Definition configloader.h:76
The base class for plugins that provide backgrounds and applet grouping containers.
Definition containment.h:73
Definition context.h:34
ImmutabilityType
Defines the immutability of items like applets, corona and containments they can be free to modify,...
Definition plasma.h:197
PackageStructure::Ptr packageStructure(const QString &language, ComponentType type)
Loads an appropriate PackageStructure for the given language and type.
Definition scriptengine.cpp:274
Location
The Location enumeration describes where on screen an element, such as an Applet or its managing cont...
Definition plasma.h:108
static QScriptValue type(QScriptContext *ctx, QScriptEngine *eng)
Definition easingcurve.cpp:63
FormFactor
The FormFactor enumeration describes how a Plasma::Applet should arrange itself.
Definition plasma.h:64
<Plasma/Version>
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.