home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Demos / Tools / QC™ 1.1.3 / QCAPI / BadAPPL / BadAPPL src / BadAPPL.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-21  |  2.5 KB  |  121 lines  |  [TEXT/R*ch]

  1. /*________________________________________________________________________________
  2.  
  3.     BadAPPL.h
  4.  
  5.     Copyright © 1993-1995 Onyx Technology - All rights reserved
  6. ________________________________________________________________________________*/
  7.  
  8. #ifndef    _H_BadAPPL
  9. #define    _H_BadAPPL
  10.  
  11. #include "BadDefs.h"
  12.  
  13. #ifdef    applec
  14.     // We’re going to #include standard MPW headers that we need
  15.     //    because we're not using a precompiled header.
  16.     #ifndef    _H_BadIncludes
  17.     #include "BadIncludes.h"
  18.     #endif
  19. #endif
  20.  
  21. typedef    short    **shortHandle;        // used in block overwrite test
  22.  
  23. #define kTestWindowID     128
  24. #define ErrorAlert        256
  25. #define    AdviseAlert        257
  26.  
  27. //    resource IDs of menus
  28. #define    NUM_MENUS        10
  29. #define kAppleID        128
  30. #define kFileID            129
  31. #define kEditID            130
  32. #define    kControlID        131
  33. #define    kErrorsID        132
  34. #define    kStateID        133
  35.  
  36. //    heirarchial menu IDs
  37. #define    handleID        51
  38. #define    ptrID            52
  39. #define    addrZeroID        53
  40. #define    purgeID            54
  41. #define    bkOverwriteID    5
  42.  
  43. //    Apple menu command indices
  44. #define    aboutCommand    1
  45.  
  46. //    File menu command indices
  47. #define    onCommand        1
  48. #define    quitCommand        3
  49.  
  50. //    Edit menu command indices
  51. #define undoCommand     1
  52. #define cutCommand        3
  53. #define copyCommand        4
  54. #define pasteCommand    5
  55. #define clearCommand    6
  56.  
  57. // state menu command indices
  58. #define    saveCommand        1
  59. #define    restoreCommand    2
  60.  
  61. // handle menu command indices
  62. #define    createDisposHndCommand    1
  63. #define    resizeHndCommand        2
  64. #define    verifyHndCommand        3
  65.  
  66. // handle menu command indices
  67. #define    createDisposPtrCommand    1
  68. #define    resizePtrCommand        2
  69. #define    verifyPtrCommand        3
  70.  
  71. // write to zero command indices
  72. #define    write2ZeroCommand        1
  73. #define    derefZeroCommand        2
  74.  
  75. // purge menu command indices
  76. #define    purgeCommand            1
  77.  
  78.  
  79. // Menu indices
  80. #define appleM            0
  81. #define fileM            1
  82. #define editM            2
  83. #define    controlM        3
  84. #define    errorsM            4
  85. #define    stateM            5
  86.  
  87. // Heir-menu indices - these are all under the 'Errors' menu
  88. #define    handleM            6
  89. #define    ptrM            7
  90. #define    addrZeroM        8
  91. #define    purgeM            9
  92.  
  93. #define SBarWidth    15                    // width of standard scroll bar
  94.  
  95. #define    regvar    register
  96.  
  97. //    string indexes used in OutputString calls
  98. #define    kStringsID        128
  99. #define    kInitLoaded        1
  100. #define    kInitNotLoaded    2
  101. #define    kOnIndx            3
  102. #define    kOffIndx        4
  103. #define    kDebugOn        5
  104. #define    kDebugOff        6
  105. #define    kScrambleOn        7
  106. #define    kScrambleOff    8
  107. #define    kStateSaved        9
  108. #define    kStateRestored    10
  109. #define    kDetected        11
  110. #define    kNotDetected    12
  111. #define    kDetectionOff    13
  112. #define    kRunning68K        14
  113. #define    kRunningPPC        15
  114.  
  115. //    prototypes
  116.  
  117. void     main(void);
  118. void    DoBeforeQuit(void);
  119.  
  120. #endif    //_H_BadAPPL
  121.