00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef ROHFEEDBACK_H
00021 #define ROHFEEDBACK_H
00022
00023
00024
00025
00026
00027
00028
00029
00030 #define NOOFICONS 5
00031
00032 #include <qlabel.h>
00033 #include <qtimer.h>
00034
00035 class QEvent;
00036 class QPixmap;
00037 class QBitmap;
00038 class QMouseEvent;
00039
00040 namespace Opie {
00041 namespace Internal {
00042
00043 class RoHFeedback : public QLabel {
00044
00045 Q_OBJECT
00046
00047 enum Actions {
00048 FeedbackStopped = -2,
00049 FeedbackTimerStart = -1,
00050 FeedbackShow = 0
00051 };
00052 public :
00053
00054 RoHFeedback();
00055 ~RoHFeedback();
00056
00057
00058 void init( const QPoint & P, QWidget* wid );
00059 void stop( void );
00060 int delay( void );
00061
00062 public slots :
00063
00064 void iconShow( void );
00065
00066 protected :
00067
00068 bool event( QEvent * E );
00069
00070 QTimer Timer;
00071 int IconNr;
00072 QWidget * Receiver;
00073
00074 static int IconWidth;
00075 static int IconHeight;
00076 static QPixmap * Imgs[NOOFICONS];
00077 static QBitmap * Masks[NOOFICONS];
00078 };
00079 }
00080 }
00081
00082 #endif