superkaramba
Skip::AppletAdaptor Class Reference
#include <skappletadaptor.h>

Detailed Description
The AppletAdaptor class implements an adaptor for SuperKarambaApplet Plasma::Applet objects.Definition at line 45 of file skappletadaptor.h.
Public Slots | |
| QString | name () const |
| QString | category () const |
| QRectF | boundingRect () |
| QObject * | dataEngine (const QString &name) |
| QObject * | widget (const QString &widgetName) |
| bool | isPainterEnabled () |
| void | setPainterEnabled (bool enabled) |
Signals | |
| void | showConfigurationInterface () |
| void | paint (QObject *painter, const QRect &rect) |
Public Member Functions | |
| AppletAdaptor (QObject *parent, SuperKarambaApplet *applet) | |
| virtual | ~AppletAdaptor () |
| void | paintInterface (QPainter *painter, const QStyleOptionGraphicsItem *option, const QRect &rect) |
Constructor & Destructor Documentation
| Skip::AppletAdaptor::AppletAdaptor | ( | QObject * | parent, | |
| SuperKarambaApplet * | applet | |||
| ) | [inline] |
Definition at line 49 of file skappletadaptor.h.
| virtual Skip::AppletAdaptor::~AppletAdaptor | ( | ) | [inline, virtual] |
Definition at line 52 of file skappletadaptor.h.
Member Function Documentation
| void Skip::AppletAdaptor::paintInterface | ( | QPainter * | painter, | |
| const QStyleOptionGraphicsItem * | option, | |||
| const QRect & | rect | |||
| ) | [inline] |
Definition at line 57 of file skappletadaptor.h.
| QString Skip::AppletAdaptor::name | ( | ) | const [inline, slot] |
Return the name of the applet as defined in the plasma-skapplet-default.desktop file.
Definition at line 70 of file skappletadaptor.h.
| QString Skip::AppletAdaptor::category | ( | ) | const [inline, slot] |
Return the category of the applet as defined in the plasma-skapplet-default.desktop file.
Definition at line 75 of file skappletadaptor.h.
| QRectF Skip::AppletAdaptor::boundingRect | ( | ) | [inline, slot] |
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 93 of file skappletadaptor.h.
| bool Skip::AppletAdaptor::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 127 of file skappletadaptor.h.
| void Skip::AppletAdaptor::setPainterEnabled | ( | bool | enabled | ) | [inline, slot] |
| void Skip::AppletAdaptor::showConfigurationInterface | ( | ) | [signal] |
This signal is emitted if the configuration interface should be shown.
This signal is emitted if the painter is enabled and if (re-)painting should be done.
See also the isPainterEnabled() and the setPainterEnabled() methods.
The documentation for this class was generated from the following file:
KDE 4.0 API Reference