Plasma
appletscript.h
Go to the documentation of this file.
virtual void showConfigurationInterface()
Show a configuration dialog.
Definition appletscript.cpp:130
virtual QList< QAction * > contextualActions()
Returns a list of context-related QAction instances.
Definition appletscript.cpp:86
KConfigDialog * standardConfigurationDialog()
Definition appletscript.cpp:139
Containment::Type containmentType() const
Definition appletscript.cpp:278
void registerAsDragHandle(QGraphicsItem *item)
Definition appletscript.cpp:162
AppletScript(QObject *parent=0)
Default constructor for an AppletScript.
Definition appletscript.cpp:40
void showMessage(const QIcon &icon, const QString &message, const MessageButtons buttons)
Definition appletscript.cpp:155
Animation * loadAnimationFromPackage(const QString &name, QObject *parent)
Loads an animation from the applet package.
Definition appletscript.cpp:184
void addStandardConfigurationPages(KConfigDialog *dialog)
This method should be called after a scripting applet has added its own pages to a configuration dial...
Definition appletscript.cpp:148
Q_INVOKABLE QSizeF size() const
Returns the area within which contents can be painted.
Definition appletscript.cpp:72
void configNeedsSaving() const
Definition appletscript.cpp:123
virtual QPainterPath shape() const
Returns the shape of the widget, defaults to the bounding rect.
Definition appletscript.cpp:91
Q_INVOKABLE DataEngine * dataEngine(const QString &engine) const
Definition appletscript.cpp:228
virtual void paintInterface(QPainter *painter, const QStyleOptionGraphicsItem *option, const QRect &contentsRect)
Called when the script should paint the applet.
Definition appletscript.cpp:63
void setHasConfigurationInterface(bool hasInterface)
Sets whether or not this script has a configuration interface or not.
Definition appletscript.cpp:102
void popupEvent(bool popped) const
Plasma::Applet * applet() const
Returns the Plasma::Applet associated with this script component.
Definition appletscript.cpp:57
virtual void constraintsEvent(Plasma::Constraints constraints)
Called when any of the geometry constraints have been updated.
Definition appletscript.cpp:81
void unregisterAsDragHandle(QGraphicsItem *item)
Definition appletscript.cpp:169
void setConfigurationRequired(bool req, const QString &reason=QString())
Definition appletscript.cpp:109
void setApplet(Plasma::Applet *applet)
Sets the applet associated with this AppletScript.
Definition appletscript.cpp:52
void setContainmentType(Containment::Type type)
Definition appletscript.cpp:289
void setDrawWallpaper(bool drawWallpaper)
set if the containment draws its own wallpaper: it has no effect if the applet is not a containment
Definition appletscript.cpp:269
void setFailedToLaunch(bool failed, const QString &reason=QString())
Definition appletscript.cpp:116
void saveState(KConfigGroup &group) const
bool isRegisteredAsDragHandle(QGraphicsItem *item)
Definition appletscript.cpp:176
static QScriptValue type(QScriptContext *ctx, QScriptEngine *eng)
Definition easingcurve.cpp:63
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.13.2 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.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.