home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume19 / xfig / part01 / w_setup.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-27  |  1.8 KB  |  60 lines

  1. /*
  2.  * FIG : Facility for Interactive Generation of figures
  3.  * Copyright (c) 1985 by Supoj Sutanthavibul
  4.  *
  5.  * "Permission to use, copy, modify, distribute, and sell this software and its
  6.  * documentation for any purpose is hereby granted without fee, provided that
  7.  * the above copyright notice appear in all copies and that both the copyright
  8.  * notice and this permission notice appear in supporting documentation. 
  9.  * No representations are made about the suitability of this software for 
  10.  * any purpose.  It is provided "as is" without express or implied warranty."
  11.  */
  12.  
  13. #define        PIX_PER_INCH        80
  14. #define        PIX_PER_CM        30    /* ((int)(PIX_PER_INCH / 2.54
  15.                          * + (5.0/2))) */
  16.  
  17. /* Portrait dimensions */
  18. #define        DEF_CANVAS_HT_PORT    9*PIX_PER_INCH
  19. #define        DEF_CANVAS_WD_PORT    8*PIX_PER_INCH
  20.  
  21. /* Landscape dimensions */
  22. #define        DEF_CANVAS_HT_LAND    8*PIX_PER_INCH
  23. #define        DEF_CANVAS_WD_LAND    10*PIX_PER_INCH
  24.  
  25. #define        RULER_WD        24
  26. #ifndef MAX_TOPRULER_WD
  27. #define        MAX_TOPRULER_WD        1020
  28. #endif
  29. #ifndef MAX_SIDERULER_HT
  30. #define        MAX_SIDERULER_HT    860
  31. #endif
  32. #define        MIN_MOUSEFUN_WD        240
  33.  
  34. #define        MAXDEPTH        999
  35.  
  36. #define        SW_PER_ROW_PORT 2    /* switches/row in mode panel */
  37. #define        SW_PER_ROW_LAND 2    /* same for landscape mode */
  38. #define        SW_PER_COL_PORT 17
  39. #define        SW_PER_COL_LAND 17
  40.  
  41. #define        MODE_SW_HT    32    /* height of a mode switch icon */
  42. #define        MODE_SW_WD    36    /* width of a mode switch icon */
  43.  
  44. #define        DEF_INTERNAL_BW        1
  45. #define        POPUP_BW        2
  46.  
  47. extern int    TOOL_WD, TOOL_HT;
  48. extern int    CMDPANEL_WD, CMDPANEL_HT;
  49. extern int    MODEPANEL_WD, MODEPANEL_HT;
  50. extern int    MODEPANEL_SPACE;
  51. extern int    MSGFORM_WD, MSGFORM_HT;
  52. extern int    MSGPANEL_WD;
  53. extern int    MOUSEFUN_WD, MOUSEFUN_HT;
  54. extern int    INDPANEL_WD;
  55. extern int    CANVAS_WD, CANVAS_HT;
  56. extern int    INTERNAL_BW;
  57. extern int    TOPRULER_WD, TOPRULER_HT;
  58. extern int    SIDERULER_WD, SIDERULER_HT;
  59. extern int    SW_PER_ROW, SW_PER_COL;
  60.