home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Commodities / BlackHole / Source / header.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-27  |  2.1 KB  |  88 lines

  1.  
  2. /*
  3.  * Header.h -- for Black Hole. Contains general includes and defines all in
  4.  * one lump so I can precompile it.
  5.  * $Revision: 1.2
  6.  */
  7.  
  8. #include <workbench/startup.h>
  9. #include <workbench/workbench.h>
  10. #include <dos/dos.h>
  11. #include <dos/dosasl.h>
  12. #include <dos/exall.h>
  13. #include <dos/dosextens.h>
  14. #include <exec/lists.h>
  15. #include <libraries/gadtools.h>
  16. #include <graphics/view.h>
  17. #include <graphics/gfxmacros.h>
  18.  
  19. #include <stdio.h>
  20. #include <stdlib.h>
  21. #include <string.h>
  22. #include <ctype.h>
  23.  
  24. #include <clib/gadtools_protos.h>
  25. #include <clib/graphics_protos.h>
  26. #include <clib/intuition_protos.h>
  27. #include <clib/exec_protos.h>
  28. #include <clib/alib_protos.h>
  29. #include <clib/icon_protos.h>
  30. #include <clib/wb_protos.h>
  31. #include <clib/dos_protos.h>
  32.  
  33. #define Local static
  34. #define Prototype extern
  35.  
  36. /* Niceness */
  37. #define unless(x) if (!(x))
  38. #define until(x) while (!(x))
  39. #define repeat do
  40.  
  41. /* defines for set_current */
  42. #define SET_NEWFILE 1
  43. #define SET_START 2
  44. #define SET_EXIT_DIR 3
  45.  
  46. /* defines for gadgets */
  47. #define GAD_QUIT    1
  48. #define GAD_ABOUT   2
  49. #define GAD_LIMIT   3
  50. #define GAD_CONFIRM 4
  51. #define GAD_IGNORE  5
  52. #define GAD_UNSNAP  6
  53. #define GAD_SNAP    7
  54. #define GAD_SAVE    8
  55. #define GAD_USE     9
  56. #define GAD_CANCEL  10
  57.  
  58. /* Structure to hold preferences */
  59. struct HolePrefs
  60. {
  61.     BOOL ignore_prot;
  62.     BOOL confirm;
  63.     ULONG deletelimit;
  64.     LONG CurrentX;
  65.     LONG CurrentY;
  66. };
  67.  
  68. /* Structure used to hold files waiting for deletion */
  69. struct HoleArg
  70. {
  71.     struct Node node;
  72.     struct WBArg wbarg;
  73.     char *truncname;        /* truncated name for confirmation */
  74.     struct HolePrefs prefs; /* prefs at the time that icon is dropped on appicon */
  75. };
  76.  
  77. /* Structure holding everything you ever wanted to know about the control panel */
  78. struct HolePanel
  79. {
  80.     struct Window *window;
  81.     struct HolePrefs prefs; /* Preferences according to current gadget selections */
  82.     /* Next 3 fields are the gadgets that have to be read. */
  83.     struct Gadget *gad_ignore_prot; /* Ignore protection gadget's address */
  84.     struct Gadget *gad_confirm;     /* ditto for confirm gadget. */
  85.     struct Gadget *gad_limit;        /* ditto for delete limit */
  86. };
  87.  
  88.