home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / progressbar / progressbar.h < prev    next >
C/C++ Source or Header  |  2001-10-11  |  936b  |  42 lines

  1. /****************************************************************************
  2. ** $Id:  qt/progressbar.h   3.0.0   edited Jun 22 13:24 $
  3. **
  4. ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of an example program for Qt.  This example
  7. ** program may be used, distributed and modified without limitation.
  8. **
  9. *****************************************************************************/
  10.  
  11. #ifndef PROGRESSBAR_H
  12. #define PROGRESSBAR_H
  13.  
  14. #include <qbuttongroup.h>
  15. #include <qtimer.h>
  16.  
  17. class QRadioButton;
  18. class QPushButton;
  19. class QProgressBar;
  20.  
  21. class ProgressBar : public QButtonGroup
  22. {
  23.     Q_OBJECT
  24.  
  25. public:
  26.     ProgressBar( QWidget *parent = 0, const char *name = 0 );
  27.  
  28. protected:
  29.     QRadioButton *slow, *normal, *fast;
  30.     QPushButton *start, *pause, *reset;
  31.     QProgressBar *progress;
  32.     QTimer timer;
  33.  
  34. protected slots:
  35.     void slotStart();
  36.     void slotReset();
  37.     void slotTimeout();
  38.  
  39. };
  40.  
  41. #endif
  42.