mirror of
https://github.com/sheumann/DiskBrowser.git
synced 2024-12-21 04:29:48 +00:00
999b6130a4
There are only a few minor code changes, and nothing that should have an effect on functionality. This is basically just rearranging the code.
54 lines
1.2 KiB
C
54 lines
1.2 KiB
C
#ifndef DISKBROWSER_H
|
|
#define DISKBROWSER_H
|
|
|
|
/* Resource/control IDs */
|
|
#define winDiskBrowser 1001
|
|
|
|
#define searchLine 1002
|
|
#define searchButton 1003
|
|
#define findDisksForText 1004
|
|
#define forIIGSRadio 1005
|
|
#define forAnyAppleIIRadio 1006
|
|
#define disksList 1007
|
|
#define mountDiskButton 1008
|
|
|
|
#define searchErrorAlert 3000
|
|
#define mountErrorAlert 3001
|
|
|
|
|
|
/* The browser window */
|
|
extern GrafPortPtr window;
|
|
|
|
/* Is the window open? */
|
|
extern Boolean windowOpened;
|
|
|
|
/* User preference: IIGS disks or all Apple II disks? */
|
|
extern boolean gsDisksOnly;
|
|
|
|
/* Disks list control */
|
|
extern CtlRecHndl disksListHandle;
|
|
|
|
/* Length of disks list */
|
|
#define DISK_LIST_LENGTH 30
|
|
|
|
struct diskListEntry {
|
|
char *memPtr;
|
|
Byte memFlag;
|
|
char *idPtr;
|
|
char *extPtr;
|
|
};
|
|
|
|
/* List of disks, used for list control & mounting disks */
|
|
extern struct diskListEntry diskList[DISK_LIST_LENGTH];
|
|
|
|
/* Do we want to open a window with disk contents? Counts down until ready. */
|
|
extern int wantToOpenWindow;
|
|
|
|
/* JSON for current disk list (needs to be kept in memory while it's shown) */
|
|
extern json_value *json;
|
|
|
|
/* User ID of this program */
|
|
extern Word myUserID;
|
|
|
|
#endif
|