home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / PowerPlant / AGA Classes 1.2 / AGADemo / AGADemo Sources / CAboutBoxDB.cp < prev    next >
Encoding:
Text File  |  1996-04-14  |  993 b   |  41 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    CAboutBoxDB.cp
  3. // ===========================================================================
  4.  
  5. #include "CAboutBoxDB.h"
  6.  
  7. //-------Constructors-------------------------------------------------------------------------------------------------
  8.  
  9. CAboutBoxDB::CAboutBoxDB (LStream *inStream) : LAGADialogBox(inStream)
  10.  
  11. {
  12. }
  13.  
  14. CAboutBoxDB* CAboutBoxDB::CreateAboutBoxDBStream (LStream    *inStream)
  15.  
  16. {
  17.     return (new CAboutBoxDB(inStream));
  18. }
  19.  
  20. void CAboutBoxDB::ListenToMessage (MessageT inMessage, void *ioParam)
  21.  
  22. {
  23.     switch(inMessage)
  24.         {
  25.             case 'ok  '            :
  26.                         LAGADialogBox::ListenToMessage(cmd_Close, nil);
  27.                         break;
  28.             default                    :
  29.                         LAGADialogBox::ListenToMessage(inMessage, ioParam);
  30.                         break;
  31.         }
  32. }
  33.  
  34. void CAboutBoxDB::FindCommandStatus (CommandT inCommand, Boolean &outEnabled, Boolean &outUsesMark,
  35.                                                                             Char16 &outMark, Str255 outName)
  36. {
  37.     // Disable all commands.
  38.     outEnabled = false;
  39. }
  40.  
  41.