home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / TurboTCP 1.0.1 / Aliases / About box classes / CAboutDirector.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-10  |  969 b   |  47 lines  |  [TEXT/KAHL]

  1. /*
  2. ** CAboutDirector.h
  3. **
  4. **    About box library
  5. **    Dialog director class
  6. **
  7. **    Copyright © 1993, FrostByte Design / Eric Scouten
  8. **
  9. */
  10.  
  11.  
  12. #pragma once
  13.  
  14. #include <CDLOGDirector.h>
  15.  
  16.  
  17. /*______________________________________________________________________
  18. **
  19. ** CAboutDirector
  20. **
  21. **    Dialog director for our snazzy about box class. Provides a specialized modal dialog box
  22. **    method (DoAbout) which can remove all button items from the dialog and remove the
  23. **    dialog after a set number of clock ticks.
  24. **
  25. **    This class works in tandem with the CAboutDialog class.
  26. **
  27. */
  28.  
  29. class CAboutDirector : public CDLOGDirector {
  30.  
  31.     long        expireTicks;                    // tick count at end of dialog
  32.     Boolean    hasButtons;                    // flag: do we have any buttons in this window?
  33.  
  34.  
  35.     // construction/destruction
  36.  
  37. public:
  38.     void IAboutDirector (short DLOGid, CDirectorOwner *aSupervisor);
  39.  
  40.  
  41.     // displaying methods
  42.     
  43.     void DoAbout (Boolean killButtons, short maxTicks);
  44.     void PseudoModalGetNextEvent (void);
  45.  
  46. };
  47.