home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / msdos / compresn / hv11 / src / viewer.h < prev   
Encoding:
C/C++ Source or Header  |  1992-07-07  |  1.7 KB  |  64 lines

  1. typedef enum
  2. {
  3.   FMT_UNKNOWN,            /* unknown format */
  4.   FMT_GIF,            /* GIF format */
  5.   FMT_JFIF,            /* JFIF format */
  6.   FMT_PPM,            /* PPM/PGM (PBMPLUS formats) */
  7.   FMT_RLE,            /* RLE format */
  8.   FMT_TARGA,            /* Targa format */
  9.   FMT_TIFF            /* TIFF format */
  10. } IMAGE_FORMATS;
  11.  
  12. typedef struct moh_files_hell
  13. {
  14.   char name[100];        /* for path information as well */
  15.   IMAGE_FORMATS type;        /* image type */
  16.   int selected;
  17. } Files;
  18. #define MaxWidth        800
  19. #define VERSION         "1.1" 
  20. #ifdef OLD_DRIVERS
  21. #define PROGNAME "Jview"
  22. #else
  23. #define PROGNAME "Hiview"
  24. #endif
  25. #define MAXROWREAD      8
  26. #define prints(x,y,a,args) {sprintf args;mr_prints(x,y,a,PB);}
  27. /* to use prints, one would issue e.g. prints(x,y,attr,(PB,"hello %d\n",hell));
  28. */
  29. #define MAXFILES                200    /* max files to allocate space for */
  30. #define SC_HEADER        3
  31. #define SC_FOOTER        3
  32. #define SC_HEIGHT        25
  33. #define SC_WIDTH        80
  34. #define SC_COLS            5
  35. #define SC_COL_WIDTH    15
  36. #define UP                      584
  37. #define DOWN                    592
  38. #define RIGHT                   589
  39. #define LEFT                    587
  40. #define ESC                27
  41. #define RETURN            13
  42. #define FILE_FCOLOR        LIGHTGRAY
  43. #define FILE_BCOLOR             BLACK
  44. #define BORDER_FCOLOR             BLACK
  45. #define BORDER_BCOLOR             MAGENTA
  46. #define MESSAGE_FCOLOR          LIGHTGRAY
  47. #define MESSAGE_BCOLOR          BLACK
  48. #define MESSAGE_HIGHLIGHT       RED
  49. #define MESSAGE_HEADER          LIGHTBLUE
  50. #define MAXDRIVE 4
  51. #define MAXDIR  64
  52. #define MAXFILE  10
  53. #define MAXEXT   5
  54. #ifndef EXIT_FAILURE
  55. #define EXIT_FAILURE 1
  56. #endif
  57. #ifndef ulong
  58. #define ulong unsigned long
  59. #endif
  60.  
  61. #define InflateBase     19
  62. #define ColorBase       22
  63. #define BaseDiff        3    /* ColorBase-InflateBase */
  64.