superkaramba
SkAppletAdaptor Class Reference
#include <skappletadaptor.h>

Detailed Description
The SkAppletAdaptor class implements an adaptor for Plasma::Applet objects.Definition at line 130 of file skappletadaptor.h.
Public Slots | |
| QRectF | boundingRect () |
| QString | category () const |
| QObject * | dataEngine (const QString &name) |
| QRectF | geometry () const |
| bool | isPainterEnabled () |
| QString | name () const |
| void | resize (const QSizeF &size) |
| void | setGeometry (const QRectF &geom) |
| void | setPainterEnabled (bool enabled) |
Signals | |
| void | paint (QObject *painter, const QRect &rect) |
| void | showConfigurationInterface () |
Public Member Functions | |
| void | paintInterface (QPainter *painter, const QStyleOptionGraphicsItem *option, const QRect &rect) |
| SkAppletAdaptor (Karamba *karamba, Plasma::Applet *applet) | |
| virtual | ~SkAppletAdaptor () |
Protected Attributes | |
| Plasma::Applet * | m_applet |
| QHash< QString, PlasmaSensor * > | m_engines |
| Karamba * | m_karamba |
| bool | m_painterenabled |
Constructor & Destructor Documentation
| SkAppletAdaptor::SkAppletAdaptor | ( | Karamba * | karamba, | |
| Plasma::Applet * | applet | |||
| ) | [inline] |
Definition at line 134 of file skappletadaptor.h.
| virtual SkAppletAdaptor::~SkAppletAdaptor | ( | ) | [inline, virtual] |
Definition at line 142 of file skappletadaptor.h.
Member Function Documentation
| QRectF SkAppletAdaptor::boundingRect | ( | ) | [inline, slot] |
| QString SkAppletAdaptor::category | ( | ) | const [inline, slot] |
Return the category of the applet as defined in the plasma-skapplet-default.desktop file.
Definition at line 163 of file skappletadaptor.h.
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 185 of file skappletadaptor.h.
| QRectF SkAppletAdaptor::geometry | ( | ) | const [inline, slot] |
Definition at line 170 of file skappletadaptor.h.
| bool SkAppletAdaptor::isPainterEnabled | ( | ) | [inline, slot] |
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 223 of file skappletadaptor.h.
| QString SkAppletAdaptor::name | ( | ) | const [inline, slot] |
Return the name of the applet as defined in the plasma-skapplet-default.desktop file.
Definition at line 158 of file skappletadaptor.h.
This signal is emitted if the painter is enabled and if (re-)painting should be done.
See also the isPainterEnabled() and the setPainterEnabled() methods.
| void SkAppletAdaptor::paintInterface | ( | QPainter * | painter, | |
| const QStyleOptionGraphicsItem * | option, | |||
| const QRect & | rect | |||
| ) | [inline] |
Definition at line 146 of file skappletadaptor.h.
| void SkAppletAdaptor::resize | ( | const QSizeF & | size | ) | [inline, slot] |
Definition at line 172 of file skappletadaptor.h.
| void SkAppletAdaptor::setGeometry | ( | const QRectF & | geom | ) | [inline, slot] |
Definition at line 171 of file skappletadaptor.h.
| void SkAppletAdaptor::setPainterEnabled | ( | bool | enabled | ) | [inline, slot] |
| void SkAppletAdaptor::showConfigurationInterface | ( | ) | [signal] |
This signal is emitted if the configuration interface should be shown.
Member Data Documentation
Plasma::Applet* SkAppletAdaptor::m_applet [protected] |
Definition at line 247 of file skappletadaptor.h.
QHash<QString, PlasmaSensor*> SkAppletAdaptor::m_engines [protected] |
Definition at line 250 of file skappletadaptor.h.
Karamba* SkAppletAdaptor::m_karamba [protected] |
Definition at line 246 of file skappletadaptor.h.
bool SkAppletAdaptor::m_painterenabled [protected] |
Definition at line 249 of file skappletadaptor.h.
The documentation for this class was generated from the following file:
KDE 4.2 API Reference