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 / BadUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-21  |  1.4 KB  |  62 lines  |  [TEXT/R*ch]

  1. /* _____________________________________________________________________
  2.  
  3.     BadUtils.h
  4.  
  5.     Copyright © 1993-1995 Onyx Technology - All rights reserved
  6. _____________________________________________________________________ */
  7.  
  8. #ifndef    _H_BadUtils
  9. #define    _H_BadUtils
  10.  
  11. #ifndef    _H_BadAPPL
  12. #include "BadAPPL.h"
  13. #endif
  14. #ifndef    _H_BadMacros
  15. #include "BadMacros.h"
  16. #endif
  17.  
  18. #define    aboutDLOG        128
  19.  
  20. // the following are defines used in DoTEDialog calls
  21. #define    settingsDLOG    130
  22.  
  23. // generic dialog template id’s
  24.  
  25. #define    badDLOG            254
  26. #define    errorDLOG        256
  27. #define    testNamesSTR    256
  28.  
  29. enum    {
  30.         iOkay    = 1,
  31.         iCancel,
  32.         iTEBox
  33.         };
  34.  
  35. enum    {
  36.         kCheckMenus = 1,
  37.         kDoState
  38.         };
  39.  
  40. #ifdef    powerc
  41. #define    kPowerPCLogo    130
  42. enum    {iPowerPCLogo = 5};
  43. #endif
  44.  
  45. //    Prototypes
  46. void    MaintainCursor(void);
  47. short    SetUpMenus(void);
  48. void    MaintainMenus(void);
  49. void    MaintainControlMenu(short theItem, short controlCmd);
  50. short     DoDialog(short DLOGid);
  51. short     DoTEDialog( short testNum);
  52. short    ValidRange(short testNum, long theLongNum);
  53. short    CenterDialog( regvar long templateType, regvar short templateID, Point *dlgOrigin);
  54. void    FrameDefault( Rect *r);
  55. void    HexToString (regvar ulong number, uchar *hex);
  56. void    AppendString( regvar uchar *origStr, regvar uchar *addStr);
  57. void    BadAlert(StringPtr theString0, StringPtr theString1, StringPtr theString2);
  58. void     SetUpCursors(void);
  59. void     CantOpen(void);
  60.  
  61. #endif    //_H_BadUtils
  62.