summaryrefslogtreecommitdiffstats
path: root/kicker/extensions/kasbar/kasclockitem.h
blob: a95ebac7b969a871cdce5b37986674005d104b7b (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( 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