You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.0 KiB
62 lines
1.0 KiB
15 years ago
|
|
||
|
|
||
|
#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 <hessijames@gmail.com>
|
||
|
* @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
|