Thumbnail me  3.0
D:/Thumbnail/Thumbnailme/ProcessingStatusBar.h
Go to the documentation of this file.
00001 /***************************************************************************/
00021 #ifndef HEADER_PROCESSINGSTATUSBAR
00022 #define HEADER_PROCESSINGSTATUSBAR
00023 
00024 #include "defines.h"
00025 #include <QtGui/QStatusBar>
00026 #include <QEvent>
00027 #include <QLabel>
00028 #include <QProgressBar>
00029 
00030 
00031 class ProcessingStatusBar : public QStatusBar
00032 {
00033 
00034     Q_OBJECT
00035 
00036     public:
00037     explicit ProcessingStatusBar(QWidget *parent = 0);
00038     virtual ~ProcessingStatusBar();
00039 
00040     private:
00041     int          i; // current file's number
00042     int          total; // number of files to process
00043     QString      fileName; // current file's name
00044     QLabel       *progressionlabel;
00045     QLabel       *statusLabel;
00046     QProgressBar *progressBar;
00047 
00048     private:
00049     void retranslate();
00050 
00051     public:
00052     void setFilesCount(int count);
00053 
00054     protected:
00055     void changeEvent(QEvent* event);
00056 
00057     public slots:
00058     void setStatus(int current, QString fileName);
00059 };
00060 
00061 #endif // HEADER_PROCESSINGSTATUSBAR
 All Classes Files Functions Enumerations