home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma15.dms / ma15.adf / Yak / Source / yak.h < prev    next >
C/C++ Source or Header  |  1993-05-17  |  3KB  |  98 lines

  1. /*** external declarations for settings ***/
  2.  
  3. /***** the toggles *****/
  4. typedef struct {
  5.     BOOL    pos;        /* position of toggle (ie. off or on) */
  6.     WORD    gadid;        /* index to CheckBox gadget array */
  7. } TOGGLEDATA;
  8.  
  9. #define NUM_TOGGLES    11
  10. extern TOGGLEDATA toggles[NUM_TOGGLES];
  11.  
  12. #define clicktofront    toggles[0].pos    /* window depth-change by mouse-clicks */
  13. #define    clicktoback    toggles[1].pos    /* ditto */
  14. #define    autopoint    toggles[2].pos    /* sunmouse */
  15. #define    keyactivate    toggles[3].pos    /* key over window activates */
  16. #define    screencycle    toggles[4].pos    /* clicktoback over backdrop or no window */
  17. #define    autopop        toggles[5].pos    /* autopoptofront */
  18. #define    rmbactivate    toggles[6].pos    /* RMB activates window */
  19. /*#define mouseblank    toggles[8].pos    /* blank mouse when key pressed */
  20. #define wildstar    toggles[9].pos    /* allow '*' as wildcard */
  21. #define scractivate    toggles[10].pos    /* activate window when shuffling screens */
  22.  
  23. #define MB_NONE        0    /* mouse-blank method */
  24. #define MB_SPRITES    1
  25. #define MB_COPPER    2
  26.  
  27. #define WILDSTARON    ((struct RootNode *)(DOSBase->dl_Root))->rn_Flags |= RNF_WILDSTAR
  28. #define WILDSTAROFF    ((struct RootNode *)(DOSBase->dl_Root))->rn_Flags &= ~RNF_WILDSTAR
  29.  
  30. /***** the patterns *****/
  31. #define PATLEN 99
  32. typedef struct {
  33.     char patstr[PATLEN+1];
  34.     char *pat;
  35. } PATTERNDATA;
  36.  
  37. #define NUM_PATTERNS 4
  38. extern PATTERNDATA patterns[NUM_PATTERNS];
  39.  
  40. /* indices of patterns */
  41. #define YP_AUTOSCR_PAT    0
  42. #define YP_CLICKSCR_PAT    1
  43. #define YP_POPWIN_PAT    2
  44. #define YP_CLICKWIN_PAT    3
  45.  
  46. /* shorthand */
  47. #define autoscrpat    patterns[YP_AUTOSCR_PAT].pat
  48. #define clickscrpat    patterns[YP_CLICKSCR_PAT].pat
  49. #define popwinpat    patterns[YP_POPWIN_PAT].pat
  50. #define clickwinpat    patterns[YP_CLICKWIN_PAT].pat
  51.  
  52. /***** other settings *****/
  53. #ifdef OLD
  54. extern LONG datefmt;
  55. #endif
  56. extern LONG click_volume;
  57.  
  58. extern LONG blanktimeout;
  59. extern LONG blanksecs;
  60. extern LONG blankcount;
  61.  
  62. extern LONG mouseblank;
  63. extern LONG mblanktimeout;
  64. extern LONG mblanksecs;
  65. extern LONG mblankcount;
  66.  
  67. /* changed for 1.3 */
  68. #define CONFIG_FILE "S:Yak.prefs"
  69. /* added for 1.5 */
  70. #define HOTKEY_FILE "S:Yak.hotkeys"
  71.  
  72. /*** defines from main.c ***/ 
  73. extern struct Locale *locale;
  74. extern CxObj *broker;
  75. extern struct MsgPort *broker_mp;
  76. extern ULONG wndsigflag;
  77. extern char *PopKeyStr;
  78.  
  79. /*** defines from pri.c ***/ 
  80. /* task priority types */
  81. #define ORIGINAL    0
  82. #define ACTIVE        1
  83.  
  84. /*** defines for handler.c ***/ 
  85. /* for AutoActivateWindow - why? */
  86. #define SCREEN    0
  87. #define AUTO    1
  88. #define KEY    2
  89. #define RMBACT  3
  90.  
  91. /*** defines from help.c ***/
  92. #define HELP_ERROR    0
  93. #define HELP_OKAY    1
  94. #define HELP_HIDE    2
  95. #define HELP_QUIT    3
  96.  
  97. #include "localprotos.h"
  98.