home *** CD-ROM | disk | FTP | other *** search
- /*
- * ImageFX Development Header File
- * Copyright © 1991-1995 Nova Design, Inc.
- * Written by Thomas Krehbiel
- *
- * Requester Definitions.
- *
- */
-
- #ifndef SCAN_REQ_H
-
-
- #define FI_DIRLEN (128)
- #define FI_FILELEN (32)
- #define FI_PATLEN (64)
-
- /*
- * FileInfo - used to maintain directory and filename information from
- * file requester useage to useage. So that the user is
- * presented with the same directory and filename as the
- * last time he used this file requester. One day might
- * buffer the directory itself, but I doubt it.
- *
- * This structure is passed to the NewGetFile() function,
- * incidentally.
- */
-
- struct FileInfo
- {
- char Dir[FI_DIRLEN]; /* Directory last used */
- char File[FI_FILELEN]; /* File last selected */
- char Pattern[FI_PATLEN]; /* Last pattern used */
- APTR Cache; /* Directory cache (not used) */
- struct DateStamp CacheDate; /* Date of directory cache (not used) */
- BPTR CacheLock; /* Lock on cached directory (not used) */
- struct Screen *Screen; /* Screen on which to open */
- char Toggle[80]; /* Alternate directory */
- char *PathName; /* Selected path (used by ComplexRequest) */
- char *HailText; /* Hail text (also used by ComplexRequest) */
- short LE, TE, W, H; /* Window Size (not currently used) */
- UBYTE Flags; /* Flags bits (see below) (2.0) */
- UBYTE pad[3];
- long Reserved[1]; /* Reserved for future expansion */
- };
-
- #define FIF_CACHED (0x80) /* Set when Cache pointer is valid */
-
-
- struct FontInfo
- {
- char Dir[FI_DIRLEN]; /* Directory last used */
- struct TTextAttr Attr; /* (Extended) text attributes */
- ULONG Tags[8]; /* Tags for 2.0 TextAttr */
- long Reserved[32]; /* For future expansion */
- };
-
- /*
- * Flags for the NewGetFile() function...
- */
-
- #define FI_NOROLL 0x01 /* Do not roll screen up */
- #define FI_SAVE 0x02 /* We're saving something */
- #define FI_DIRONLY 0x04 /* Select directories only */
- #define FI_SCREEN 0x08 /* Force open on fi->Screen */
- #define FI_SAVEIMG 0x10 /* Saving an image (2.0) */
- #define FI_LOADIMG 0x20 /* Loading an image (2.0) */
-
- /*
- * ListNode for the PickFromListA() function...
- */
- struct ListNode
- {
- struct MinNode Node;
- char Label[80];
- char Command[256];
- int ID;
- };
-
- #define SCAN_REQ_H
- #endif
-