summaryrefslogtreecommitdiffstats
path: root/src/progressindicator.h
blob: b8791364bfdac8bbed06e79d379202a0acec8da3 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62


#ifndef PROGRESSINDICATOR_H
#define PROGRESSINDICATOR_H

#include <tqwidget.h>
#include <tqdatetime.h>

class TQProgressBar;
class TQLabel;
class KSystemTray;

/**
 * @short Displays the current progress
 * @author Daniel Faust <hessijames@gmail.com>
 * @version 0.3
 */
class ProgressIndicator : public TQWidget
{
    Q_OBJECT
  TQ_OBJECT
public:
    /**
     * Constructor
     */
    ProgressIndicator( KSystemTray* _systemTray, TQWidget* parent = 0, const char* name = 0 );

    /**
     * Destructor
     */
    virtual ~ProgressIndicator();

public slots:
    void increaseTime( float );
    void decreaseTime( float );
    void countTime( float );
    void uncountTime( float );
    void setTime( float );
    void finished( float );

    void update( float );

//private slots:

private:
    TQProgressBar* pBar;
    TQLabel* lSpeed;
    TQLabel* lTime;
    KSystemTray* systemTray;

    TQTime elapsedTime;
    TQTime speedTime;
    float speedProcessedTime;

    float time;
    float processedTime;

signals:
    void setTitle( const TQString& );
};

#endif // PROGRESSINDICATOR_H