home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Painted Black 0.91 / src / HDSdefinitions.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-27  |  1.7 KB  |  67 lines  |  [TEXT/CWIE]

  1. /*****************************************************************************
  2.  
  3. Hub's Drop Shell 1.0
  4. ©Copyright 1995, Hubert Figuière, All right reserved.
  5.  
  6. HDSdefinitions.c
  7.  
  8. January 29th 1995
  9.  
  10. Author :
  11.     Hubert Figuière                HF
  12.  
  13. Purpose :
  14.     defines all the globals (as external) and constants.
  15. 01/29/95
  16.     -First implementation (HF)
  17. 03/18/95
  18.     -Modified for Painted Black (HF)
  19.     
  20. *****************************************************************************/
  21.  
  22. #ifndef __HDSDEFINITIONS__
  23. #define __HDSDEFINITIONS__
  24.  
  25. #include "MacDefines.h"
  26.  
  27.  
  28. #define kAboutDLOGID    128                    //ID of the about box dialog
  29. #define kErrorALRTID    129                    //ID of alert ressource for an error
  30.  
  31. #define    kStringsID        128                    //ID of the STR# resource containing the error strings
  32. #define    kGestaltErrNum    1                    //num of gestalt error string in STR# resource
  33.  
  34. #define APPLTYPE        'APPL'                //generic type for applications
  35.  
  36.  
  37. #define EVTMASK            highLevelEventMask+mDownMask+keyDownMask+osMask    //event mask
  38. #define IDLETIME        60                    //60 ticks of idle time while events are not pending
  39.  
  40. extern    Boolean            finished;            //nothing else to do
  41. extern    short            gDrag_n_drop;        //<0 if application was launched instead of D n D
  42.  
  43. #define MENUNUM            2                    //number of menus
  44. #define    MAPPLEID        128
  45. #define    MFILEID            129
  46.  
  47. #define    MFileOpen        1
  48. //-----------------------
  49. #define    MFileQuit        3
  50.  
  51. extern MenuHandle    menus[MENUNUM];            //menus in menubar
  52.  
  53. //functions prototypes of functions implemented in HDSmain.c
  54. void    init();
  55. OSErr    do_it_no_param();                    //do_it() without any parameter.
  56. void    dispose_application();
  57. void    display_error (short, OSErr);
  58. void     do_about();
  59. void    handle_os_event(EventRecord*);
  60. void    handle_key(EventRecord*);
  61. void    handle_menus(long);
  62. void     handle_mousedown(EventRecord*);
  63. void    main();
  64.  
  65.  
  66. #endif
  67.