• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kalzium

didyouknow.h

Go to the documentation of this file.
00001 #ifndef DIDYOUKNOW_H
00002 #define DIDYOUKNOW_H
00003 /***************************************************************************
00004     copyright            : (C) 2008 by Carsten Niehaus
00005     email                : cniehaus@kde.org
00006  ***************************************************************************/
00007 /***************************************************************************
00008  *                                                                         *
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; either version 2 of the License, or     *
00012  *   (at your option) any later version.                                   *
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

kalzium

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

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu 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