home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / software / sviluppo / snoopdos_source / icon.h < prev    next >
C/C++ Source or Header  |  1994-09-17  |  3KB  |  103 lines

  1. /*
  2.  *        ICON.H                                            vi:ts=4
  3.  *
  4.  *      Copyright (c) Eddy Carroll, September 1994.
  5.  *
  6.  *        Header file containing icon data ... kept in a separate file to make
  7.  *        it easier to update (this is taken straight from IconEdit's SAVE AS C
  8.  *        output -- to access this, set SRC=YES in the IconEdit tooltypes).
  9.  */
  10.  
  11. /*
  12.  *        We define some standard names here to make life easier and to
  13.  *        save lots of editing of the IconEdit-produced code.
  14.  */
  15. #define DefSnoopDosIcon        SnoopDos_Project
  16. #define DefToolTypes        SnoopDos_ProjectTools
  17.  
  18. /*
  19.  *        Next, some stuff that IconEdit gets wrong (1.3 vs 2.0 includes)
  20.  */
  21. #ifndef GADGIMAGE
  22. #define GADGIMAGE            GFLG_GADGIMAGE
  23. #define GADGHCOMP            GFLG_GADGHCOMP
  24. #define GADGIMMEDIATE        GACT_IMMEDIATE
  25. #define RELVERIFY            GACT_RELVERIFY
  26. #define BOOLGADGET            GTYP_BOOLGADGET
  27.  
  28. #endif
  29.  
  30. /*
  31.  *        Now over to IconEdit...
  32.  */
  33. UWORD chip SnoopDos_ProjectI1Data[] =
  34. {
  35. /* Plane 0 */
  36.     0x0000,0x0000,0x0000,0x0400,0x0000,0x0003,0xF000,0x0C00,
  37.     0x0000,0x000F,0xFC00,0x0C00,0x0000,0x003E,0x1F00,0x0C00,
  38.     0x0000,0x0078,0x1F80,0x0C00,0x001F,0x8070,0x7FC0,0x0C00,
  39.     0x0018,0xE1F8,0xF1F0,0x0C00,0x0018,0x61F8,0xE0F0,0x0C00,
  40.     0x0018,0x33FC,0xF0E0,0x0C00,0x0018,0x339C,0x7E60,0x0C00,
  41.     0x0018,0x339C,0x1FE0,0x0C00,0x0018,0x339C,0x03F0,0x0C00,
  42.     0x0018,0x339C,0x00F0,0x0C00,0x0018,0x61FC,0x00F0,0x0C00,
  43.     0x0018,0xE1F8,0xE0F0,0x0C00,0x001F,0x83F8,0xF1C0,0x0C00,
  44.     0x0000,0x7FF0,0x7F80,0x0C00,0x0007,0xFFF8,0x3F80,0x0C00,
  45.     0x007F,0xFC3E,0x1F00,0x0C00,0x07FF,0x800F,0xFC00,0x0C00,
  46.     0x07F8,0x0003,0xF000,0x0C00,0x7FFF,0xFFFF,0xFFFF,0xFC00,
  47. /* Plane 1 */
  48.     0xFFFF,0xFFFF,0xFFFF,0xF800,0xD555,0x5557,0xF555,0x5000,
  49.     0xD555,0x555F,0xFD55,0x5000,0xD555,0x557F,0x5F55,0x5000,
  50.     0xD555,0x557D,0x47D5,0x5000,0xD540,0x5565,0x0195,0x5000,
  51.     0xD545,0x14E5,0x05C5,0x5000,0xD545,0x14C5,0x15C5,0x5000,
  52.     0xD545,0x45C1,0x05F5,0x5000,0xD545,0x45C1,0x0175,0x5000,
  53.     0xD545,0x45C1,0x4075,0x5000,0xD545,0x45C1,0x5465,0x5000,
  54.     0xD545,0x45C1,0x5565,0x5000,0xD545,0x15C1,0x55E5,0x5000,
  55.     0xD545,0x14C5,0x15C5,0x5000,0xD540,0x57E5,0x05D5,0x5000,
  56.     0xD555,0x7FE5,0x01D5,0x5000,0xD557,0xFFFD,0x47D5,0x5000,
  57.     0xD57F,0xFD7F,0x5F55,0x5000,0xD7FF,0xD55F,0xFD55,0x5000,
  58.     0xD7FD,0x5557,0xF555,0x5000,0x8000,0x0000,0x0000,0x0000,
  59. };
  60.  
  61. struct Image SnoopDos_ProjectI1 =
  62. {
  63.     0, 0,            /* Upper left corner */
  64.     54, 22, 2,            /* Width, Height, Depth */
  65.     SnoopDos_ProjectI1Data,        /* Image data */
  66.     0x0003, 0x0000,        /* PlanePick, PlaneOnOff */
  67.     NULL            /* Next image */
  68. };
  69.  
  70. UBYTE *SnoopDos_ProjectTools[] =
  71. {
  72.     "AUTHOR=Eddy Carroll",
  73.     NULL
  74. };
  75.  
  76. struct DiskObject SnoopDos_Project =
  77. {
  78.     WB_DISKMAGIC,        /* Magic Number */
  79.     WB_DISKVERSION,        /* Version */
  80.     {                /* Embedded Gadget Structure */
  81.     NULL,            /* Next Gadget Pointer */
  82.     0, 0, 54, 23,        /* Left,Top,Width,Height */
  83.     GADGIMAGE | GADGHCOMP,    /* Flags */
  84.     RELVERIFY | GADGIMMEDIATE,        /* Activation Flags */
  85.     BOOLGADGET,        /* Gadget Type */
  86.     (APTR)&SnoopDos_ProjectI1,    /* Render Image */
  87.     NULL,            /* Select Image */
  88.     NULL,            /* Gadget Text */
  89.     NULL,            /* Mutual Exclude */
  90.     NULL,            /* Special Info */
  91.     0,            /* Gadget ID */
  92.     (APTR) 0x0001,        /* User Data (Revision) */
  93.     },
  94.     WBPROJECT,            /* Icon Type */
  95.     NULL,            /* Default Tool */
  96.     SnoopDos_ProjectTools,            /* Tool Type Array */
  97.     NO_ICON_POSITION,        /* Current X */
  98.     NO_ICON_POSITION,        /* Current Y */
  99.     NULL,            /* Drawer Structure */
  100.     NULL,            /* Tool Window */
  101.     12288                /* Stack Size */
  102. };
  103.