author | sandman <sandman> | 2002-04-13 00:47:20 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-04-13 00:47:20 (UTC) |
commit | 98a1e3f36567639344f12932b629e526a8783aa8 (patch) (side-by-side diff) | |
tree | 0433d296857faceeafc54f7deabddb621f45a933 /noncore/unsupported/qpdf/qbusybar.h | |
parent | 7e31b1fba119f69929d6744d7295555ff1727f4f (diff) | |
download | opie-98a1e3f36567639344f12932b629e526a8783aa8.zip opie-98a1e3f36567639344f12932b629e526a8783aa8.tar.gz opie-98a1e3f36567639344f12932b629e526a8783aa8.tar.bz2 |
CVS import of QPdf
Diffstat (limited to 'noncore/unsupported/qpdf/qbusybar.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/qpdf/qbusybar.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/noncore/unsupported/qpdf/qbusybar.h b/noncore/unsupported/qpdf/qbusybar.h new file mode 100644 index 0000000..a52094a --- a/dev/null +++ b/noncore/unsupported/qpdf/qbusybar.h @@ -0,0 +1,43 @@ +#ifndef __QBUSYBAR_H__ +#define __QBUSYBAR_H__ + +#include <qwidget.h> + +class QColor; +class QTimer; + +class QBusyBar : public QWidget { + Q_OBJECT + +public: + QBusyBar ( QWidget *parent = 0, const char *name = 0, int flags = 0 ); + virtual ~QBusyBar ( ); + + bool isBusy ( ) const; + + void setParameters ( int div, int fade, int speed ); + +public slots: + void beginBusy ( ); + void endBusy ( ); + + void setBusy ( bool b ); + +protected: + virtual void paintEvent ( QPaintEvent *e ); + +private slots: + void slotTimeout ( ); + +private: + QTimer *m_timer; + int m_busy; + + int m_div; + int m_pos; // 0 .. 2 * m_div - 1 + int m_fade; // 0 .. m_div - 1 + int m_speed; + QColor *m_fadecols; +}; + +#endif |