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

superkaramba

Public Slots | Signals | Public Member Functions | Protected Attributes | List of all members
SkAppletAdaptor Class Reference

#include <skappletadaptor.h>

Inheritance diagram for SkAppletAdaptor:
Inheritance graph
[legend]

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

 SkAppletAdaptor (Karamba *karamba, Plasma::Applet *applet)
 
virtual ~SkAppletAdaptor ()
 
void paintInterface (QPainter *painter, const QStyleOptionGraphicsItem *option, const QRect &rect)
 

Protected Attributes

Plasma::Applet * m_applet
 
QHash< QString, PlasmaSensor * > m_engines
 
Karamba * m_karamba
 
bool m_painterenabled
 

Detailed Description

The SkAppletAdaptor class implements an adaptor for Plasma::Applet objects.

Definition at line 130 of file skappletadaptor.h.

Constructor & Destructor Documentation

SkAppletAdaptor::SkAppletAdaptor ( Karamba *  karamba,
Plasma::Applet *  applet 
)
inline

Definition at line 134 of file skappletadaptor.h.

virtual SkAppletAdaptor::~SkAppletAdaptor ( )
inlinevirtual

Definition at line 143 of file skappletadaptor.h.

Member Function Documentation

QRectF SkAppletAdaptor::boundingRect ( )
inlineslot

Return the bouding rectangle of the applet.

Definition at line 169 of file skappletadaptor.h.

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
nameName 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

Definition at line 171 of file skappletadaptor.h.

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

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 147 of file skappletadaptor.h.

void SkAppletAdaptor::resize ( const QSizeF &  size)
inlineslot

Definition at line 173 of file skappletadaptor.h.

void SkAppletAdaptor::setGeometry ( const QRectF &  geom)
inlineslot

Definition at line 172 of file skappletadaptor.h.

void SkAppletAdaptor::setPainterEnabled ( bool  enabled)
inlineslot

Enable or disable the painter.

Definition at line 229 of file skappletadaptor.h.

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 248 of file skappletadaptor.h.

QHash<QString, PlasmaSensor*> SkAppletAdaptor::m_engines
protected

Definition at line 251 of file skappletadaptor.h.

Karamba* SkAppletAdaptor::m_karamba
protected

Definition at line 247 of file skappletadaptor.h.

bool SkAppletAdaptor::m_painterenabled
protected

Definition at line 250 of file skappletadaptor.h.


The documentation for this class was generated from the following file:
  • skappletadaptor.h
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.

superkaramba

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal