summaryrefslogtreecommitdiff
path: root/library/backend/rohfeedback.h
authorzecke <zecke>2004-08-24 13:38:23 (UTC)
committer zecke <zecke>2004-08-24 13:38:23 (UTC)
commit0a141c4a9719aa273867ad45c4293208545489b1 (patch) (side-by-side diff)
tree4059ae180d00d33cc31dd9083d38a14b946253a2 /library/backend/rohfeedback.h
parent102bb2b65c71da12c4f9f1ce7a5d1b37b6eb50ee (diff)
downloadopie-0a141c4a9719aa273867ad45c4293208545489b1.zip
opie-0a141c4a9719aa273867ad45c4293208545489b1.tar.gz
opie-0a141c4a9719aa273867ad45c4293208545489b1.tar.bz2
Add RightOn Hold Visual Feedback and integrate it
into QPEApplication Icons and Config Option will be comitted by WIMPIE
Diffstat (limited to 'library/backend/rohfeedback.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/rohfeedback.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/library/backend/rohfeedback.h b/library/backend/rohfeedback.h
new file mode 100644
index 0000000..f38a095
--- a/dev/null
+++ b/library/backend/rohfeedback.h
@@ -0,0 +1,62 @@
+#ifndef ROHFEEDBACK_H
+#define ROHFEEDBACK_H
+
+/*
+
+ RightOnHold feedback show
+
+*/
+
+#define NOOFICONS 5
+
+#include <qlabel.h>
+#include <qtimer.h>
+
+class QEvent;
+class QPixmap;
+class QBitmap;
+class QMouseEvent;
+
+namespace Opie {
+namespace Internal {
+
+class RoHFeedback : public QLabel {
+
+ Q_OBJECT
+
+ enum Actions {
+ FeedbackStopped = -2,
+ FeedbackTimerStart = -1,
+ FeedbackShow = 0
+ };
+public :
+
+ RoHFeedback();
+ ~RoHFeedback();
+
+
+ void init( const QPoint & P, QWidget* wid );
+ void stop( void );
+ int delay( void );
+
+public slots :
+
+ void iconShow( void );
+
+protected :
+
+ bool event( QEvent * E );
+
+ QTimer Timer;
+ int IconNr;
+ QWidget * Receiver;
+
+ static int IconWidth;
+ static int IconHeight;
+ static QPixmap * Imgs[NOOFICONS];
+ static QBitmap * Masks[NOOFICONS];
+};
+}
+}
+
+#endif