home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / gfx / misc / imagefx_sdk / include / scan / req.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-19  |  2.6 KB  |  81 lines

  1. /*
  2.  * ImageFX Development Header File
  3.  * Copyright © 1991-1995 Nova Design, Inc.
  4.  * Written by Thomas Krehbiel
  5.  *
  6.  * Requester Definitions.
  7.  *
  8.  */
  9.  
  10. #ifndef SCAN_REQ_H
  11.  
  12.  
  13. #define FI_DIRLEN    (128)
  14. #define FI_FILELEN   (32)
  15. #define FI_PATLEN    (64)
  16.  
  17. /*
  18.  * FileInfo - used to maintain directory and filename information from
  19.  *            file requester useage to useage.  So that the user is
  20.  *            presented with the same directory and filename as the
  21.  *            last time he used this file requester.  One day might
  22.  *            buffer the directory itself, but I doubt it.
  23.  *
  24.  *            This structure is passed to the NewGetFile() function,
  25.  *            incidentally.
  26.  */
  27.  
  28. struct FileInfo
  29. {
  30.    char     Dir[FI_DIRLEN];      /* Directory last used */
  31.    char     File[FI_FILELEN];    /* File last selected */
  32.    char     Pattern[FI_PATLEN];  /* Last pattern used */
  33.    APTR     Cache;               /* Directory cache (not used) */
  34.    struct DateStamp CacheDate;   /* Date of directory cache (not used) */
  35.    BPTR     CacheLock;           /* Lock on cached directory (not used) */
  36.    struct Screen *Screen;        /* Screen on which to open */
  37.    char     Toggle[80];          /* Alternate directory */
  38.    char    *PathName;            /* Selected path (used by ComplexRequest) */
  39.    char    *HailText;            /* Hail text (also used by ComplexRequest) */
  40.    short    LE, TE, W, H;        /* Window Size (not currently used) */
  41.    UBYTE    Flags;               /* Flags bits (see below) (2.0) */
  42.    UBYTE    pad[3];
  43.    long     Reserved[1];         /* Reserved for future expansion */
  44. };
  45.  
  46. #define FIF_CACHED   (0x80)      /* Set when Cache pointer is valid */
  47.  
  48.  
  49. struct FontInfo
  50. {
  51.    char              Dir[FI_DIRLEN];      /* Directory last used */
  52.    struct TTextAttr  Attr;                /* (Extended) text attributes */
  53.    ULONG             Tags[8];             /* Tags for 2.0 TextAttr */
  54.    long              Reserved[32];        /* For future expansion */
  55. };
  56.  
  57. /*
  58.  * Flags for the NewGetFile() function...
  59.  */
  60.  
  61. #define FI_NOROLL    0x01        /* Do not roll screen up */
  62. #define FI_SAVE      0x02        /* We're saving something */
  63. #define FI_DIRONLY   0x04        /* Select directories only */
  64. #define FI_SCREEN    0x08        /* Force open on fi->Screen */
  65. #define FI_SAVEIMG   0x10        /* Saving an image (2.0) */
  66. #define FI_LOADIMG   0x20        /* Loading an image (2.0) */
  67.  
  68. /*
  69.  * ListNode for the PickFromListA() function...
  70.  */
  71. struct ListNode
  72. {
  73.    struct MinNode       Node;
  74.    char                 Label[80];
  75.    char                 Command[256];
  76.    int                  ID;
  77. };
  78.  
  79. #define SCAN_REQ_H
  80. #endif
  81.