diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:09:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:09:31 +0000 |
commit | f2cfda2a54780868dfe0af7bd652fcd4906547da (patch) | |
tree | c6ac23545528f5701818424f2af5f79ce3665e6c /src/progressindicator.h | |
download | soundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.tar.gz soundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.zip |
Added KDE3 version of SoundKonverter
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1097614 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/progressindicator.h')
-rwxr-xr-x | src/progressindicator.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/progressindicator.h b/src/progressindicator.h new file mode 100755 index 0000000..873a4f9 --- /dev/null +++ b/src/progressindicator.h @@ -0,0 +1,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 |