summaryrefslogtreecommitdiffstats
path: root/kicker/extensions/kasbar/kasclockitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'kicker/extensions/kasbar/kasclockitem.h')
-rw-r--r--kicker/extensions/kasbar/kasclockitem.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/kicker/extensions/kasbar/kasclockitem.h b/kicker/extensions/kasbar/kasclockitem.h
new file mode 100644
index 000000000..a95ebac7b
--- /dev/null
+++ b/kicker/extensions/kasbar/kasclockitem.h
@@ -0,0 +1,37 @@
+// -*- c++ -*-
+
+
+#ifndef KASCLOCKITEM_H
+#define KASCLOCKITEM_H
+
+#include "kasitem.h"
+
+/**
+ * An item that displays a clock.
+ */
+class KDE_EXPORT KasClockItem : public KasItem
+{
+ Q_OBJECT
+
+public:
+ KasClockItem( KasBar *parent );
+ virtual ~KasClockItem();
+
+ void paint( TQPainter *p );
+
+public slots:
+ void updateTime();
+
+ void showMenuAt( TQMouseEvent *ev );
+ void showMenuAt( TQPoint p );
+
+protected:
+ /** Reimplemented from KasItem to create a date picker. */
+ virtual KasPopup *createPopup();
+
+private:
+ class LCD *lcd;
+};
+
+#endif // KASCLOCKITEM_H
+