summaryrefslogtreecommitdiffstats
path: root/kicker/extensions/kasbar/kasclockitem.h
blob: d81815c7f368587309ee63f5dac7dfc91d48c13a (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
#ifndef KASCLOCKITEM_H
#define KASCLOCKITEM_H

#include "kasitem.h"

/**
 * An item that displays a clock.
 */
class TDE_EXPORT KasClockItem : public KasItem
{
    TQ_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