-rw-r--r-- | library/backend/rohfeedback.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/backend/rohfeedback.h b/library/backend/rohfeedback.h index f38a095..9ffd35a 100644 --- a/library/backend/rohfeedback.h +++ b/library/backend/rohfeedback.h | |||
@@ -1,27 +1,29 @@ | |||
1 | #ifndef ROHFEEDBACK_H | 1 | #ifndef ROHFEEDBACK_H |
2 | #define ROHFEEDBACK_H | 2 | #define ROHFEEDBACK_H |
3 | 3 | ||
4 | #ifdef OPIE_WITHROHFEEDBACK | ||
5 | |||
4 | /* | 6 | /* |
5 | 7 | ||
6 | RightOnHold feedback show | 8 | RightOnHold feedback show |
7 | 9 | ||
8 | */ | 10 | */ |
9 | 11 | ||
10 | #define NOOFICONS 5 | 12 | #define NOOFICONS 5 |
11 | 13 | ||
12 | #include <qlabel.h> | 14 | #include <qlabel.h> |
13 | #include <qtimer.h> | 15 | #include <qtimer.h> |
14 | 16 | ||
15 | class QEvent; | 17 | class QEvent; |
16 | class QPixmap; | 18 | class QPixmap; |
17 | class QBitmap; | 19 | class QBitmap; |
18 | class QMouseEvent; | 20 | class QMouseEvent; |
19 | 21 | ||
20 | namespace Opie { | 22 | namespace Opie { |
21 | namespace Internal { | 23 | namespace Internal { |
22 | 24 | ||
23 | class RoHFeedback : public QLabel { | 25 | class RoHFeedback : public QLabel { |
24 | 26 | ||
25 | Q_OBJECT | 27 | Q_OBJECT |
26 | 28 | ||
27 | enum Actions { | 29 | enum Actions { |
@@ -39,24 +41,25 @@ public : | |||
39 | void stop( void ); | 41 | void stop( void ); |
40 | int delay( void ); | 42 | int delay( void ); |
41 | 43 | ||
42 | public slots : | 44 | public slots : |
43 | 45 | ||
44 | void iconShow( void ); | 46 | void iconShow( void ); |
45 | 47 | ||
46 | protected : | 48 | protected : |
47 | 49 | ||
48 | bool event( QEvent * E ); | 50 | bool event( QEvent * E ); |
49 | 51 | ||
50 | QTimer Timer; | 52 | QTimer Timer; |
51 | int IconNr; | 53 | int IconNr; |
52 | QWidget * Receiver; | 54 | QWidget * Receiver; |
53 | 55 | ||
54 | static int IconWidth; | 56 | static int IconWidth; |
55 | static int IconHeight; | 57 | static int IconHeight; |
56 | static QPixmap * Imgs[NOOFICONS]; | 58 | static QPixmap * Imgs[NOOFICONS]; |
57 | static QBitmap * Masks[NOOFICONS]; | 59 | static QBitmap * Masks[NOOFICONS]; |
58 | }; | 60 | }; |
59 | } | 61 | } |
60 | } | 62 | } |
61 | 63 | ||
62 | #endif | 64 | #endif |
65 | #endif | ||