home *** CD-ROM | disk | FTP | other *** search
- #define MENUBARHEIGHT (* (short*) 0x0BAA)
- #define HOTBANDHEIGHT (ICONHEIGHTUSED + 0)
- #define HOTBANDBOTTOM (HOTBANDHEIGHT + MENUBARHEIGHT)
- #define ICONWIDTHUSED 84
- #define ICONHEIGHTUSED 44
- #define ICSWIDTHUSED 104
- #define ICSHEIGHTUSED 20
- #define LISTWIDTHUSED 300
- #define LISTHEIGHTUSED 20
- #define FIRSTICONX 140
- #define SCROLLITEM 9
- #define WIPEBIT 1
- #define ICONCONTROL (102 * 16)
-
- #define DISKICONNUM 100
- #define FOLDERICONNUM 101
- #define FONTICONNUM 102
- #define FONTSCICONNUM 102 /* was 103 */
- #define TTFONTICONNUM 104
- #define DAICONNUM 105
- #define DASCICONNUM 105 /* was 106 */
- #define DEFAULTAPPLICONNUM 107
- #define DEFAULTTEXTICONNUM 108
- #define DEFAULTDOCICONNUM 110
-
- typedef struct
- {
- short localid;
- short resid;
- OSType type;
- }
- iconentry;
-
- enum bandnames
- {
- VOLBAND,
- FONTBAND,
- APPBAND,
- DABAND,
- FOLDERBAND,
- DOCBAND,
- NUMBANDS, /* todo: put in a better way to figure out NUMBANDS */
- SORTBUTTON,
- HELPBUTTON
- };
-
- typedef enum sortorders
- {
- ALPHABETIC,
- SIZE,
- MODDATE
- }
- sortorders;
-
- typedef struct
- {
- sortorders sortorder;
- short view;
- short numitems;
- Handle path;
- long iodirid;
- short vrefnum;
- ControlHandle sbar;
- ControlHandle (**items)[];
- }
- opendirinfo;
-
- #define WINDOW_VREF(wp) ((*(opendirinfo **) ((WindowPeek)wp)->refCon)->vrefnum)
-
- #define WINDOW_FILENUM(wp) ((*(opendirinfo **) ((WindowPeek)wp)->refCon)->iodirid)
-
- typedef struct
- {
- sortorders sortorder;
- short numitems;
- short bandpos;
- ControlHandle (**items)[];
- }
- bandinfo;
-
- extern icn_sharp_hand g_foldericons, g_diskicons;
- extern short g_numdispinhotband;
- extern bandinfo bands[NUMBANDS];
-