home *** CD-ROM | disk | FTP | other *** search
/ Geek 6 / Geek-006.iso / linux / video / xmovie-1.5.3.tar.gz / xmovie-1.5.3.tar / xmovie-1.5.3 / guicast / bcprogressbox.h < prev    next >
C/C++ Source or Header  |  2000-11-29  |  917b  |  50 lines

  1. #ifndef BCPROGRESSBOX_H
  2. #define BCPROGRESSBOX_H
  3.  
  4. #include "bcprogress.inc"
  5. #include "bcprogressbox.inc"
  6. #include "bctitle.inc"
  7. #include "bcwindow.h"
  8. #include "thread.h"
  9.  
  10. class BC_ProgressBox : public Thread
  11. {
  12. public:
  13.     BC_ProgressBox(int x, int y, char *text, long length);
  14.     virtual ~BC_ProgressBox();
  15.     
  16.     friend BC_ProgressWindow;
  17.  
  18.     void run();
  19.     int update(long position);    // return 1 if cancelled
  20.     int update_title(char *title);
  21.     int update_length(long length);
  22.     int is_cancelled();      // return 1 if cancelled
  23.     int stop_progress();
  24.     void lock_window();
  25.     void unlock_window();
  26.  
  27. private:
  28.     BC_ProgressWindow *pwindow;
  29.     char *display;
  30.     char *text;
  31.     int cancelled;
  32.     long length;
  33. };
  34.  
  35.  
  36. class BC_ProgressWindow : public BC_Window
  37. {
  38. public:
  39.     BC_ProgressWindow(int x, int y);
  40.     virtual ~BC_ProgressWindow();
  41.  
  42.     int create_objects(char *text, long length);
  43.  
  44.     char *text;
  45.     BC_ProgressBar *bar;
  46.     BC_Title *caption;
  47. };
  48.  
  49. #endif
  50.