• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

superkaramba

Skip::AppletAdaptor

Skip::AppletAdaptor Class Reference

#include <skappletadaptor.h>

Inheritance diagram for Skip::AppletAdaptor:

Inheritance graph
[legend]

List of all members.


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]

Return the bouding rectangle of the applet.

Definition at line 80 of file skappletadaptor.h.

QObject* Skip::AppletAdaptor::dataEngine ( const QString &  name  )  [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.

QObject* Skip::AppletAdaptor::widget ( const QString &  widgetName  )  [inline, slot]

Create and return a new Plasma::Widget instance.

Definition at line 108 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]

Enable or disable the painter.

Definition at line 132 of file skappletadaptor.h.

void Skip::AppletAdaptor::showConfigurationInterface (  )  [signal]

This signal is emitted if the configuration interface should be shown.

void Skip::AppletAdaptor::paint ( QObject *  painter,
const QRect &  rect 
) [signal]

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:
  • skappletadaptor.h

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal