home *** CD-ROM | disk | FTP | other *** search
/ Mac Expert 1995 Winter / Mac Expert - Winter 95.iso / Les fichiers / Communications / Divers / DinkClass ƒ / DC Template App / DHLApp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-10  |  1.2 KB  |  44 lines  |  [TEXT/KAHL]

  1. /*
  2.     This is the class declaration for the DHLApp subclass of DApplication.
  3.     It is responcible for creating the correct document subclass, holding 
  4.     the test results and doing the tests whose results get held.
  5.     Mark Gross 10/10/92
  6. */
  7.  
  8. #ifndef __DHLAPP__
  9. #define __DHLAPP__
  10.  
  11. #include <DApplication.h>
  12.  
  13. class DHLApp : public DApplication
  14. {
  15. public:
  16.  
  17.     DHLApp(void);
  18.     ~DHLApp(void);
  19.         // just stubs for now... (and perhaps always for this application.
  20.  
  21.     virtual DDocument* MakeDDoc(Boolean OpenFromFile);
  22.         // needed to instaniate the correct document subclass for
  23.         // this application.
  24.  
  25.     virtual void HandleMenuChoice(short menuID, short menuItem);
  26.         // needed to fire off the tests in responce to the users
  27.         // menu selections...
  28.     virtual void SetUpMenues(void);
  29.         // needed for the design concept, if a test can't be run 
  30.         // becuase something isn't set up (like PPC addresses or 
  31.         // something) then I don't want the menu to be enabled
  32.     
  33. protected:
  34.     
  35.     virtual void ClearMenus(void);
  36.         // needed to simplify the logic in SetUpMenus
  37.         // if this guy clears the DHLEvent spacific items, then
  38.         // SetUpMenus only needs to turn ON items, as aposed to
  39.         // turning the OFF or ON as needed.
  40.  
  41. };//end of DHLApp class declaration
  42.  
  43. #endif __DHLAPP__
  44.