home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / slider / sliddraw / taskview.hpp < prev   
Encoding:
C/C++ Source or Header  |  1996-10-29  |  1.2 KB  |  52 lines

  1. #ifndef _TASKVIEW_
  2. #define _TASKVIEW_
  3. //*********************************************************
  4. // Sliders - Progress Indicator Custom Painting Example
  5. //
  6. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  7. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  8. // All Rights Reserved.
  9. //*********************************************************
  10. #include <iframe.hpp>
  11. #include <imcelcv.hpp>
  12. #include <islider.hpp>
  13. #include <islidhdr.hpp>
  14. #include <istattxt.hpp>
  15. #include <itimer.hpp>   
  16.  
  17. // Handle custom drawing of a progress indicator.
  18. class DrawHandler : public ISliderDrawHandler {
  19. public:
  20. virtual Boolean
  21.   drawBackground  ( IDrawItemEvent& event ),
  22.   drawRibbonStrip ( IDrawItemEvent& event ),
  23.   drawShaft       ( IDrawItemEvent& event );
  24. }; // DrawHandler
  25.  
  26. // The primary window.
  27. class TaskStatusView : public IFrameWindow {
  28. public:
  29.   TaskStatusView ( const char* title );
  30.  
  31. void
  32.   taskPortionComplete ( unsigned long );
  33.  
  34. private:
  35.   TaskStatusView ( const TaskStatusView& );
  36. TaskStatusView
  37.  &operator=      ( const TaskStatusView& );
  38.  
  39. IMultiCellCanvas
  40.   canvas;
  41. IStaticText
  42.   indicatorTitle;
  43. IProgressIndicator
  44.   taskIndicator;
  45. ITimer
  46.   taskTimer;
  47. DrawHandler
  48.   drawHandler;
  49. }; // TaskStatusView
  50.  
  51. #endif // _TASKVIEW_
  52.