kalzium
didyouknow.h
Go to the documentation of this file.00001 #ifndef DIDYOUKNOW_H
00002 #define DIDYOUKNOW_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include <Plasma/Applet>
00017 #include <Plasma/Svg>
00018
00019 #include <plasma/dataengine.h>
00020
00021 #include <QGraphicsTextItem>
00022
00023 #include <KRandomSequence>
00024
00025 class QSizeF;
00026
00027 class KalziumDidyouknow : public Plasma::Applet
00028 {
00029 Q_OBJECT
00030
00031 public:
00032 KalziumDidyouknow(QObject *parent, const QVariantList &args);
00033 ~KalziumDidyouknow();
00034 void init();
00035
00036 void paintInterface(QPainter *painter,
00037 const QStyleOptionGraphicsItem *option,
00038 const QRect& contentsRect);
00039 void constraintsUpdated(Plasma::Constraints constraints);
00040
00041 public slots:
00042 void dataUpdated(const QString &name, const Plasma::DataEngine::Data &data);
00043
00044 private:
00045 Plasma::Svg m_theme;
00046 QGraphicsTextItem *m_label1;
00047 Plasma::DataEngine* m_engine;
00048
00049 KRandomSequence * m_random;
00050
00051 QSizeF m_size;
00052 };
00053
00054 K_EXPORT_PLASMA_APPLET(didyouknow_kalzium, KalziumDidyouknow)
00055
00056 #endif // DIDYOUKNOW_H