home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume10 / cbw / part01 / layout.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-06-16  |  1.4 KB  |  39 lines

  1. /*
  2.  * Constants that define the layout of the screen.
  3.  *
  4.  * Robert W. Baldwin, December 1984.
  5.  */
  6.  
  7.  
  8.  
  9. /* Parameter for the screen layout. */
  10.  
  11. #define    WINDNUM        7                /* Number of windows at top level. */
  12.  
  13. #define    BANLM        21                /* Left margin of banner text. */
  14. #define    BANTEXT        "Crypt Breaker's Workbench"
  15.  
  16. #define    DBLROW        2                /* Starting row of label. */
  17. #define    DBLCOL        9                /* Column where block number starts. */
  18. #define    DBSROW        (DBLROW+1)        /* Decryption Block. */
  19. #define    DBWIDTH        65                /* Decrypted block. */
  20. #define    DBHEIGHT    11                /* Decrytped block, not incl label. */
  21. #define    DBLTEXT        "Block -"        /* Label for decrypted block. */
  22.  
  23. #define GBLROW        (DBSROW+DBHEIGHT)    /* Guess block label row. */
  24. #define    GBSROW        (GBLROW+1)        /* Guess block storage row. */
  25. #define    GBWIDTH        DBWIDTH            /* Width of same. */
  26. #define GBHEIGHT    6                /* Height of same. */
  27. #define    GBLTEXT        "Guess Window"    /* Label for guess block. */
  28.  
  29. #define    WEBROW        DBLROW            /* Starting row of history */
  30. #define    WEBCOL        (DBWIDTH+1)        /* Starting column */
  31. #define    WEBWIDTH    (MAXWIDTH-DBWIDTH)        /* Decision history. */
  32. #define    WEBHEIGHT    (DBHEIGHT+GBHEIGHT+2)    /* Includes a title line. */
  33.  
  34. #define USRROW        (GBSROW+GBHEIGHT)    /* User I/O area. */
  35. #define USRSCOL        10                /* Starting column of status msgs. */
  36. #define USRHEIGHT    (MAXHEIGHT-(GBHEIGHT+1)-(DBHEIGHT+1)-(1))
  37. /* total - guess block and title - decrypt block and title - banner */
  38. #define USRWIDTH    MAXWIDTH        /* Width of I/O window. */
  39.