home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / online / source / cpp / graphics / Conics.sit.hqx / Conics / Include / MenuHandler.h < prev    next >
Text File  |  1996-11-08  |  762b  |  37 lines

  1. //Copyright 1996 Aidan Cully
  2. //All rights reserved
  3.  
  4. #ifndef __CONICMENUS_H
  5. #define __CONICMENUS_H
  6.  
  7. #include "ActionHandler.h"
  8. #include "conic.h"
  9. #include "WindowTypes.h"
  10.  
  11. #define m_APPLE 128
  12. #define     ma_ABOUT 1
  13. #define m_FILE 129
  14. #define     mf_CLOSE 1
  15. #define     mf_QUIT 2
  16. #define m_EDIT 130
  17. #define     me_COPY 1
  18. #define m_WINDOW 131
  19. #define     mw_CONIC 1
  20. #define     mw_PLOT 2
  21. #define     mw_EQU 3
  22. #define     mw_INSTRUCT 4
  23.  
  24. class TConicHandler:public MEventHandler {
  25. protected:
  26.     TConic conic;
  27.     TPlane plane;
  28.     TBaseWindow *conicWindow, *plotWindow, *instructWindow, *equWindow;
  29. public:
  30.     TConicHandler();
  31.     virtual ~TConicHandler();
  32.     virtual SInt8 Init( MActionHandler* );
  33.     virtual SInt8 HandleAction( UInt32 action );
  34.     virtual SInt8 ProcessEvent( const EventRecord& );
  35. };
  36.  
  37. #endif