Plasma
Go to the documentation of this file.
21 #ifndef PLASMA_WALLPAPERSCRIPT_H
22 #define PLASMA_WALLPAPERSCRIPT_H
24 #include <kgenericfactory.h>
25 #include <kplugininfo.h>
34 class WallpaperScriptPrivate;
74 virtual void initWallpaper(
const KConfigGroup &config);
82 virtual void paint(QPainter *painter,
const QRectF &exposedRect);
88 virtual void save(KConfigGroup &config);
114 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
122 virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
130 virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
138 virtual void wheelEvent(QGraphicsSceneWheelEvent *event);
144 void setUrls(
const KUrl::List urls);
150 QString mainScript()
const;
157 const Package *package()
const;
162 KPluginInfo description()
const;
164 bool isInitialized()
const;
165 QRectF boundingRect()
const;
166 DataEngine *dataEngine(
const QString &name)
const;
168 void setTargetSizeHint(
const QSizeF &targetSize);
169 void setConfigurationRequired(
bool needsConfiguring,
const QString &reason = QString());
170 void render(
const QString &sourceImagePath,
const QSize &size,
172 const QColor &color = QColor(0, 0, 0));
173 void setUsingRenderingCache(
bool useCache);
174 bool findInCache(
const QString &key, QImage &image,
unsigned int lastModified = 0);
175 void insertIntoCache(
const QString& key,
const QImage &image);
176 void setContextualActions(
const QList<QAction*> &actions);
177 void update(
const QRectF &exposedArea);
178 void configNeedsSaving();
181 virtual void renderCompleted(
const QImage &image);
182 virtual void urlDropped(
const KUrl &url);
185 WallpaperScriptPrivate *
const d;
188 #define K_EXPORT_PLASMA_WALLPAPERSCRIPTENGINE(libname, classname) \
189 K_PLUGIN_FACTORY(factory, registerPlugin<classname>();) \
190 K_EXPORT_PLUGIN(factory("plasma_wallpaperscriptengine_" #libname))
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 11:44:59 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.