#include <skappletadaptor.h>
The SkAppletAdaptor class implements an adaptor for Plasma::Applet objects.
Definition at line 130 of file skappletadaptor.h.
SkAppletAdaptor::SkAppletAdaptor |
( |
Karamba * |
karamba, |
|
|
Plasma::Applet * |
applet |
|
) |
| |
|
inline |
virtual SkAppletAdaptor::~SkAppletAdaptor |
( |
| ) |
|
|
inlinevirtual |
QRectF SkAppletAdaptor::boundingRect |
( |
| ) |
|
|
inlineslot |
QString SkAppletAdaptor::category |
( |
| ) |
const |
|
inlineslot |
Return the category of the applet as defined in the plasma-skapplet-default.desktop file.
Definition at line 164 of file skappletadaptor.h.
QObject* SkAppletAdaptor::dataEngine |
( |
const QString & |
name | ) |
|
|
inlineslot |
Loads and returns the given DataEngine.
Tries to load the data engine given by name
. Each engine is only loaded once, and that instance is re-used on all subsequent requests.
- Parameters
-
name | Name of the data engine to load |
- Returns
- a EngineAdaptor object if it was loaded else NULL is returned.
Definition at line 186 of file skappletadaptor.h.
QRectF SkAppletAdaptor::geometry |
( |
| ) |
const |
|
inlineslot |
bool SkAppletAdaptor::isPainterEnabled |
( |
| ) |
|
|
inlineslot |
Return true if the painter is enabled.
If the painter is enabled this applet will emit paint() signals each time (re-)painting is requested. Please note, that while this may eat more performance, it allows you to use the Skip::Painter class to draw stuff yourself within scripts.
Definition at line 224 of file skappletadaptor.h.
QString SkAppletAdaptor::name |
( |
| ) |
const |
|
inlineslot |
Return the name of the applet as defined in the plasma-skapplet-default.desktop file.
Definition at line 159 of file skappletadaptor.h.
void SkAppletAdaptor::paint |
( |
QObject * |
painter, |
|
|
const QRect & |
rect |
|
) |
| |
|
signal |
void SkAppletAdaptor::paintInterface |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
const QRect & |
rect |
|
) |
| |
|
inline |
void SkAppletAdaptor::resize |
( |
const QSizeF & |
size | ) |
|
|
inlineslot |
void SkAppletAdaptor::setGeometry |
( |
const QRectF & |
geom | ) |
|
|
inlineslot |
void SkAppletAdaptor::setPainterEnabled |
( |
bool |
enabled | ) |
|
|
inlineslot |
void SkAppletAdaptor::showConfigurationInterface |
( |
| ) |
|
|
signal |
This signal is emitted if the configuration interface should be shown.
Plasma::Applet* SkAppletAdaptor::m_applet |
|
protected |
Karamba* SkAppletAdaptor::m_karamba |
|
protected |
bool SkAppletAdaptor::m_painterenabled |
|
protected |
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:20 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.