summaryrefslogtreecommitdiffstats
path: root/kicker/extensions/kasbar/kasclockitem.h
blob: 380901765f12f8f5f279936241c12146c9eb5421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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( QPainter *p );

public slots:
    void updateTime();

    void showMenuAt( QMouseEvent *ev );
    void showMenuAt( QPoint p );

protected:
    /** Reimplemented from KasItem to create a date picker. */
    virtual KasPopup *createPopup();

private:
    class LCD *lcd;
};

#endif // KASCLOCKITEM_H