1 /*
2  * FIG : Facility for Interactive Generation of figures
3  * Copyright (c) 1985-1988 by Supoj Sutanthavibul
4  * Parts Copyright (c) 1989-2007 by Brian V. Smith
5  * Parts Copyright (c) 1991 by Paul King
6  *
7  * Any party obtaining a copy of these files is granted, free of charge, a
8  * full and unrestricted irrevocable, world-wide, paid up, royalty-free,
9  * nonexclusive right and license to deal in this software and documentation
10  * files (the "Software"), including without limitation the rights to use,
11  * copy, modify, merge, publish, distribute, sublicense and/or sell copies of
12  * the Software, and to permit persons who receive copies from any such
13  * party to do so, with the only requirement being that the above copyright
14  * and this permission notice remain intact.
15  *
16  */
17 
18 #ifndef W_SETUP_H
19 #define W_SETUP_H
20 
21 #define		PIX_PER_INCH		1200
22 #define		PIX_PER_CM		450	/* closest to correct (472.4) and still
23 						   have the rulers look good */
24 
25 /* shorthand */
26 #define		PPI PIX_PER_INCH
27 #define		PPCM PIX_PER_CM
28 
29 #define DISPLAY_PIX_PER_INCH 80
30 
31 /* Portrait dimensions */
32 #define		DEF_CANVAS_HT_PORT	9.5*DISPLAY_PIX_PER_INCH+1
33 #define		DEF_CANVAS_WD_PORT	8.5*DISPLAY_PIX_PER_INCH+1
34 
35 /* Landscape dimensions (allow enough height for the mode panel) */
36 #define		DEF_CANVAS_HT_LAND	9.0*DISPLAY_PIX_PER_INCH+1
37 #define		DEF_CANVAS_WD_LAND	11*DISPLAY_PIX_PER_INCH+1
38 
39 #define		DEF_RULER_WD		24
40 #define		UNITBOX_WD		95
41 
42 #ifndef MAX_TOPRULER_WD
43 #define		MAX_TOPRULER_WD		1600
44 #endif
45 #ifndef MAX_SIDERULER_HT
46 #define		MAX_SIDERULER_HT	1280
47 #endif
48 #define		MOUSEFUN_WD		275
49 
50 #define		DEF_SW_PER_ROW		2	/* def num of buttons per row in mode panel */
51 
52 #define		DEF_INTERNAL_BW		1
53 #define		POPUP_BW		2
54 #define		DEF_LAYER_WD		64	/* default width of the depth panel */
55 
56 extern int	TOOL_WD, TOOL_HT;
57 extern int	CMDFORM_WD, CMDFORM_HT;
58 extern int	NAMEPANEL_WD;
59 extern int	MODEPANEL_WD;
60 extern int	MODEPANEL_SPACE;
61 extern int	MSGPANEL_WD, MSGPANEL_HT;
62 extern int	MOUSEFUN_HT;
63 extern int	INDPANEL_WD;
64 extern int	CANVAS_WD, CANVAS_HT;
65 extern int	CANVAS_WD_LAND, CANVAS_HT_LAND;
66 extern int	CANVAS_WD_PORT, CANVAS_HT_PORT;
67 extern int	INTERNAL_BW;
68 extern int	TOPRULER_WD, TOPRULER_HT;
69 extern int	SIDERULER_WD, SIDERULER_HT;
70 extern int	LAYER_WD, LAYER_HT;
71 extern int	SW_PER_ROW;
72 extern int	NUM_MODE_SW;
73 
74 extern void setup_sizes (int new_canv_wd, int new_canv_ht);
75 
76 #endif /* W_SETUP_H */
77