home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / dos / extra / source / browser / browser.hqx / Browser / display.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-29  |  1.7 KB  |  84 lines

  1. #define MENUBARHEIGHT    (* (short*) 0x0BAA)
  2. #define HOTBANDHEIGHT    (ICONHEIGHTUSED + 0)
  3. #define HOTBANDBOTTOM    (HOTBANDHEIGHT + MENUBARHEIGHT)
  4. #define ICONWIDTHUSED    84
  5. #define ICONHEIGHTUSED    44
  6. #define ICSWIDTHUSED    104
  7. #define ICSHEIGHTUSED    20
  8. #define LISTWIDTHUSED    300
  9. #define LISTHEIGHTUSED    20
  10. #define FIRSTICONX        140
  11. #define    SCROLLITEM        9
  12. #define WIPEBIT            1
  13. #define ICONCONTROL        (102 * 16)
  14.  
  15. #define DISKICONNUM            100
  16. #define FOLDERICONNUM        101
  17. #define FONTICONNUM            102
  18. #define FONTSCICONNUM        102 /* was 103 */
  19. #define TTFONTICONNUM        104
  20. #define DAICONNUM            105
  21. #define DASCICONNUM            105 /* was 106 */
  22. #define DEFAULTAPPLICONNUM    107
  23. #define DEFAULTTEXTICONNUM    108
  24. #define DEFAULTDOCICONNUM    110
  25.  
  26. typedef struct
  27.   {
  28.     short localid;
  29.     short resid;
  30.     OSType type;
  31.   }
  32. iconentry;
  33.  
  34. enum bandnames
  35.   {
  36.     VOLBAND,
  37.     FONTBAND,
  38.     APPBAND,
  39.     DABAND,
  40.     FOLDERBAND,
  41.     DOCBAND,
  42.     NUMBANDS,            /* todo: put in a better way to figure out NUMBANDS */
  43.     SORTBUTTON,
  44.     HELPBUTTON
  45.   };
  46.  
  47. typedef enum sortorders
  48.   {
  49.     ALPHABETIC,
  50.     SIZE,
  51.     MODDATE
  52.   }
  53. sortorders;
  54.  
  55. typedef struct
  56.   {
  57.     sortorders sortorder;
  58.     short view;
  59.     short numitems;
  60.     Handle path;
  61.     long iodirid;
  62.     short vrefnum;
  63.     ControlHandle sbar;
  64.     ControlHandle (**items)[];
  65.   }
  66. opendirinfo;
  67.  
  68. #define WINDOW_VREF(wp)        ((*(opendirinfo **) ((WindowPeek)wp)->refCon)->vrefnum)
  69.  
  70. #define WINDOW_FILENUM(wp)    ((*(opendirinfo **) ((WindowPeek)wp)->refCon)->iodirid)
  71.  
  72. typedef struct
  73.   {
  74.     sortorders sortorder;
  75.     short numitems;
  76.     short bandpos;
  77.     ControlHandle (**items)[];
  78.   }
  79. bandinfo;
  80.  
  81. extern icn_sharp_hand g_foldericons, g_diskicons;
  82. extern short g_numdispinhotband;
  83. extern bandinfo bands[NUMBANDS];
  84.