home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / BSP Tree 1.2 / Sources / Core / include / menu.h < prev    next >
Encoding:
Text File  |  1995-03-26  |  1.3 KB  |  38 lines  |  [TEXT/MMCC]

  1. //------------------------------------------------------------------------------
  2. //    File:                    menu.h
  3. //    Date:                    7/18/94
  4. //    Author:                Bretton Wade
  5. //
  6. //    Description:    this file contains declarations related to menu handling
  7. //
  8. //------------------------------------------------------------------------------
  9.  
  10. #ifndef    MENU
  11. #define    MENU
  12.  
  13. //------------------------------------------------------------------------------
  14. //    constants
  15. //------------------------------------------------------------------------------
  16. const    ulong    kAppleMenu = 128;
  17. const    ulong    kAboutItemEvent = 1;
  18.  
  19. const    ulong    kFileMenu = 129;
  20. const    ulong    kQuitItemEvent = 1;
  21.  
  22. const    ulong    kEditMenu = 130;
  23. const    ulong    kUndoItemEvent = 1;
  24. const    ulong    kCutItemEvent = 3;
  25. const    ulong    kCopyItemEvent = 4;
  26. const    ulong    kPasteItemEvent = 5;
  27. const    ulong    kClearItemEvent = 6;
  28.  
  29. //------------------------------------------------------------------------------
  30. //    functions
  31. //------------------------------------------------------------------------------
  32. void    InitAppMenus (void);                                                                                                            //    set up the menu bar
  33. bool    HandleMenu (long);                                                                                                                //    handle a menu event
  34. void    AdjustMenus (void);                                                                                                                //    adjust the menus for processing
  35.  
  36. //------------------------------------------------------------------------------
  37.  
  38. #endif    //MENU