blob: 873a4f9218a52dc9ac0d12c2bcf8e6598f4e2b5c (
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
|
#ifndef PROGRESSINDICATOR_H
#define PROGRESSINDICATOR_H
#include <qwidget.h>
#include <qdatetime.h>
class QProgressBar;
class QLabel;
class KSystemTray;
/**
* @short Displays the current progress
* @author Daniel Faust <[email protected]>
* @version 0.3
*/
class ProgressIndicator : public QWidget
{
Q_OBJECT
public:
/**
* Constructor
*/
ProgressIndicator( KSystemTray* _systemTray, QWidget* 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:
QProgressBar* pBar;
QLabel* lSpeed;
QLabel* lTime;
KSystemTray* systemTray;
QTime elapsedTime;
QTime speedTime;
float speedProcessedTime;
float time;
float processedTime;
signals:
void setTitle( const QString& );
};
#endif // PROGRESSINDICATOR_H
|