home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / PowerPlant / LProgressIndicator & Friends / LProgressDialog / LProgressDialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-20  |  1.3 KB  |  60 lines  |  [TEXT/CWIE]

  1. #pragma once
  2. #pragma once
  3. /*
  4.     File:        LProgressDialog.h
  5.  
  6.     Contains:    Progress bar dialog for PowerPlant.
  7.                 An LProgressIndicatorProxy subclass.
  8.                 
  9.     Version:    2.1
  10.  
  11.     Author:        Chris K. Thomas, ckt@best.com
  12.     
  13.     Copyright:    ©1996 Chris K. Thomas.  All Rights Reserved.
  14. */
  15.  
  16. #include "LProgressIndicatorProxy.h"
  17. #include "LDialogBox.h"
  18. #include <LCommander.h>
  19.  
  20. class LCaption;
  21. class LThermometerPane;
  22.  
  23. class LProgressDialog:
  24.     public LProgressIndicatorProxy,
  25.     public LCommander
  26. {
  27.     LDialogBox            *mDialog;
  28.     LCaption            *mCaptionOne;
  29.     LCaption            *mCaptionTwo;
  30.     LCaption            *mCaptionThree;
  31.     LThermometerPane    *mProgressBar;
  32.     Boolean                mStopClicked;
  33.     
  34. public:
  35.             LProgressDialog(Str255 inActivity, LCommander *inSuperCommander);
  36.     virtual    ~LProgressDialog();
  37.     
  38.     virtual Boolean ObeyCommand(
  39.                                 CommandT    inCommand,
  40.                                 void        *ioParam );
  41.     
  42.     //
  43.     // • Accessors
  44.     //
  45.     
  46.     virtual void SetActionDescriptor(Str255 inAction);
  47.     virtual void SetStepDescriptor(Str255 inStep);
  48.     virtual void SetCountDescriptor(Str255 inCount);
  49.     
  50.     virtual void        Show() {mDialog->Show();}
  51.     virtual void        Hide() {mDialog->Hide();}
  52.     
  53.     //
  54.     // if stop is clicked, you probably want to abort the
  55.     //
  56.     
  57.     virtual Boolean        IsStopClicked() {return mStopClicked;}
  58.     virtual void        SetStopClicked(Boolean inStopClicked) {mStopClicked = inStopClicked;}
  59. };
  60.