Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

simpleimpl.h

Go to the documentation of this file.
00001 /*
00002  * You may use, modify and distribute without any limitation
00003  */
00004 
00023 #ifndef SIMPLE_OPIE_EXAMPLE_APPLET_H
00024 #define SIMPLE_OPIE_EXAMPLE_APPLET_H
00025 
00026 /*
00027  * The taskbar applet interfaces wants us to implement position() and applet()
00028  * additionally we need to implement add(), release() and queryInterface for QUnknownInterface
00029  * luckiy there is a macro for the reference counting
00030  * We provide an Implementation of the interface.
00031  */
00032 #include <qwidget.h>
00033 #include <qlist.h>
00034 
00035 #include <qpe/taskbarappletinterface.h>
00036 
00037 
00038 /*
00039  * Because we only draw an Icon in a fixed width and height
00040  * we declare and define SimpleApplet here and you could use QLabel
00041  * setPixmap or use QWidget and draw yourself.
00042  * You might also want to reimplement mouse*Event to use some simple actions
00043  */
00044 class SimpleApplet : public QWidget {
00045     Q_OBJECT
00046 public:
00047     SimpleApplet(QWidget *parent);
00048     ~SimpleApplet();
00049     static int position();
00050 private:
00051     void mousePressEvent( QMouseEvent* );
00052     void paintEvent( QPaintEvent* );
00053     QPixmap *m_pix;
00054 };
00055 
00056 
00057 
00058 #endif

Generated on Sat Nov 5 16:15:58 2005 for OPIE by  doxygen 1.4.2