home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / moldyn / source / CBasicApp.h < prev    next >
Encoding:
Text File  |  1999-06-25  |  939 b   |  29 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    CBasicApp.h                    ©1994-1998 Metrowerks Inc. All rights reserved.
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. #include <PP_Prefix.h>
  8. #include <LApplication.h>
  9. #include <LPeriodical.h>
  10.  
  11. class    CBasicApp : public PP_PowerPlant::LApplication {
  12.  
  13. public:
  14.                             CBasicApp();        // constructor registers PPobs
  15.         virtual                ~CBasicApp();        // stub destructor
  16.     
  17.     
  18.         // this overriding method handles application commands
  19.         virtual Boolean        ObeyCommand(PP_PowerPlant::CommandT inCommand, void* ioParam);    
  20.     
  21.     
  22.         // this overriding method returns the status of menu items
  23.         virtual void        FindCommandStatus(PP_PowerPlant::CommandT inCommand,
  24.                                     Boolean &outEnabled, Boolean &outUsesMark,
  25.                                     PP_PowerPlant::Char16 &outMark, Str255 outName);
  26. protected:
  27.  
  28.         virtual void        StartUp();            // override startup functions
  29. };