summaryrefslogtreecommitdiffstats
path: root/kicker/extensions/kasbar/kasloaditem.h
blob: 0c0d179e7310b82a1b988b5efa7b1cf534c3dd9f (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
#ifndef KASLOADITEM_H
#define KASLOADITEM_H

#include "kasitem.h"

#include <kdemacros.h>

/**
 * An item that displays the system load.
 */
class TDE_EXPORT KasLoadItem : public KasItem
{
    TQ_OBJECT

public:
    KasLoadItem( KasBar *parent );
    virtual ~KasLoadItem();

    void paint( TQPainter *p );

public slots:
    void updateDisplay();
    void showMenuAt( TQMouseEvent *ev );
    void showMenuAt( TQPoint p );

private:
    TQValueList<double> valuesOne;
    TQValueList<double> valuesFive;
    TQValueList<double> valuesFifteen;
};

#endif // KASLOADITEM_H