Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef PAINTPROGRESS_H
00029 #define PAINTPROGRESS_H
00030
00031 #include <QtGui>
00032 #include <QGpCoreTools.h>
00033 #include "SciFigsDLLExport.h"
00034
00035 namespace SciFigs {
00036
00037 class SCIFIGS_EXPORT PaintProgress: public QObject, public AbstractProgress
00038 {
00039 Q_OBJECT
00040 public:
00041 PaintProgress(QObject * parent=0);
00042
00043 void paint(QPainter& p, int w, int h);
00044 const QRect& boundingRect() const {return _updateRect;}
00045
00046 void setActive(bool a) {_active=a;}
00047 bool isActive() const {return _active;}
00048
00049 QString message() const {return _msg;}
00050 protected:
00051 virtual void paint(QString caption, int value, int maximum);
00052 signals:
00053 void repaint();
00054 private:
00055 QRect _updateRect;
00056 QString _msg;
00057
00058 bool _active;
00059 };
00060
00061 }
00062
00063 #endif // PAINTPROGRESS_H