]> git.zerfleddert.de Git - micropolis/blob - src/tk/default.h
handle spaces in filenames
[micropolis] / src / tk / default.h
1 /*
2 * default.h --
3 *
4 * This file defines the defaults for all options for all of
5 * the Tk widgets.
6 *
7 * Copyright 1991-1992 Regents of the University of California
8 * Permission to use, copy, modify, and distribute this
9 * software and its documentation for any purpose and without
10 * fee is hereby granted, provided that this copyright
11 * notice appears in all copies. The University of California
12 * makes no representations about the suitability of this
13 * software for any purpose. It is provided "as is" without
14 * express or implied warranty.
15 *
16 * $Header: /user6/ouster/wish/RCS/default.h,v 1.31 92/08/21 11:45:19 ouster Exp $ SPRITE (Berkeley)
17 */
18
19 #ifndef _DEFAULT
20 #define _DEFAULT
21
22 /*
23 * The definitions below provide the absolute values for certain colors.
24 * The values should be the same as in the color database, but hard-coding
25 * them here allows Tk to run smoothly at sites that have an incomplete
26 * or non-standard color database.
27 */
28
29 #define BLACK "Black"
30 #define WHITE "White"
31 #define GRAY "#b0b0b0"
32
33 #define BISQUE1 "#ffe4c4"
34 #define BISQUE2 "#eed5b7"
35 #define BISQUE3 "#cdb79e"
36
37 #define LIGHTBLUE2 "#b2dfee"
38
39 #define LIGHTPINK1 "#ffaeb9"
40
41 #define MAROON "#b03060"
42
43 /*
44 * Defaults for labels, buttons, checkbuttons, and radiobuttons:
45 */
46
47 #define DEF_BUTTON_ANCHOR "center"
48 #define DEF_BUTTON_ACTIVE_BG_COLOR BISQUE2
49 #define DEF_BUTTON_ACTIVE_BG_MONO BLACK
50 #define DEF_BUTTON_ACTIVE_FG_COLOR BLACK
51 #define DEF_BUTTON_ACTIVE_FG_MONO WHITE
52 #define DEF_BUTTON_BG_COLOR BISQUE1
53 #define DEF_BUTTON_BG_MONO WHITE
54 #define DEF_BUTTON_BITMAP ((char *) NULL)
55 #define DEF_BUTTON_BORDER_WIDTH "2"
56 #define DEF_BUTTON_CURSOR ((char *) NULL)
57 #define DEF_BUTTON_COMMAND ((char *) NULL)
58 #define DEF_BUTTON_DISABLED_FG_COLOR GRAY
59 #define DEF_BUTTON_DISABLED_FG_MONO ((char *) NULL)
60 #define DEF_BUTTON_FONT "-Adobe-Helvetica-Bold-R-Normal-*-120-*"
61 #define DEF_BUTTON_FG BLACK
62 #define DEF_BUTTON_HEIGHT "0"
63 #define DEF_BUTTON_OFF_VALUE "0"
64 #define DEF_BUTTON_ON_VALUE "1"
65 #define DEF_BUTTON_PADX "1"
66 #define DEF_BUTTON_PADY "1"
67 #define DEF_BUTTON_RELIEF "raised"
68 #define DEF_LABEL_RELIEF "flat"
69 #define DEF_BUTTON_SELECTOR_COLOR MAROON
70 #define DEF_BUTTON_SELECTOR_MONO BLACK
71 #define DEF_BUTTON_STATE "normal"
72 #define DEF_BUTTON_TEXT " "
73 #define DEF_BUTTON_TEXT_VARIABLE ((char *) NULL)
74 #define DEF_BUTTON_VALUE ((char *) NULL)
75 #define DEF_BUTTON_WIDTH "0"
76 #define DEF_RADIOBUTTON_VARIABLE "selectedButton"
77 #define DEF_CHECKBUTTON_VARIABLE ((char *) NULL)
78
79 /*
80 * Defaults for canvases:
81 */
82
83 #define DEF_CANVAS_BG_COLOR BISQUE1
84 #define DEF_CANVAS_BG_MONO WHITE
85 #define DEF_CANVAS_BORDER_WIDTH "2"
86 #define DEF_CANVAS_CLOSE_ENOUGH "1"
87 #define DEF_CANVAS_CONFINE "1"
88 #define DEF_CANVAS_CURSOR ((char *) NULL)
89 #define DEF_CANVAS_CURSOR_BG BLACK
90 #define DEF_CANVAS_CURSOR_BD_COLOR "0"
91 #define DEF_CANVAS_CURSOR_BD_MONO "0"
92 #define DEF_CANVAS_CURSOR_OFF_TIME "300"
93 #define DEF_CANVAS_CURSOR_ON_TIME "600"
94 #define DEF_CANVAS_CURSOR_WIDTH "2"
95 #define DEF_CANVAS_HEIGHT "7c"
96 #define DEF_CANVAS_RELIEF "flat"
97 #define DEF_CANVAS_SCROLL_INCREMENT "10"
98 #define DEF_CANVAS_SCROLL_REGION ((char *) NULL)
99 #define DEF_CANVAS_SELECT_COLOR LIGHTBLUE2
100 #define DEF_CANVAS_SELECT_MONO BLACK
101 #define DEF_CANVAS_SELECT_BD_COLOR "1"
102 #define DEF_CANVAS_SELECT_BD_MONO "0"
103 #define DEF_CANVAS_SELECT_FG_COLOR BLACK
104 #define DEF_CANVAS_SELECT_FG_MONO WHITE
105 #define DEF_CANVAS_WIDTH "10c"
106 #define DEF_CANVAS_X_SCROLL_CMD ((char *) NULL)
107 #define DEF_CANVAS_Y_SCROLL_CMD ((char *) NULL)
108
109 /*
110 * Defaults for entries:
111 */
112
113 #define DEF_ENTRY_BG_COLOR BISQUE1
114 #define DEF_ENTRY_BG_MONO WHITE
115 #define DEF_ENTRY_BORDER_WIDTH "2"
116 #define DEF_ENTRY_CURSOR "xterm"
117 #define DEF_ENTRY_CURSOR_BG BLACK
118 #define DEF_ENTRY_CURSOR_BD_COLOR "0"
119 #define DEF_ENTRY_CURSOR_BD_MONO "0"
120 #define DEF_ENTRY_CURSOR_OFF_TIME "300"
121 #define DEF_ENTRY_CURSOR_ON_TIME "600"
122 #define DEF_ENTRY_CURSOR_WIDTH "2"
123 #define DEF_ENTRY_EXPORT_SELECTION "yes"
124 #define DEF_ENTRY_FONT "-Adobe-Helvetica-Medium-R-Normal-*-120-*"
125 #define DEF_ENTRY_FG BLACK
126 #define DEF_ENTRY_RELIEF "flat"
127 #define DEF_ENTRY_SCROLL_COMMAND ((char *) NULL)
128 #define DEF_ENTRY_SELECT_COLOR LIGHTBLUE2
129 #define DEF_ENTRY_SELECT_MONO BLACK
130 #define DEF_ENTRY_SELECT_BD_COLOR "1"
131 #define DEF_ENTRY_SELECT_BD_MONO "0"
132 #define DEF_ENTRY_SELECT_FG_COLOR BLACK
133 #define DEF_ENTRY_SELECT_FG_MONO WHITE
134 #define DEF_ENTRY_STATE "normal"
135 #define DEF_ENTRY_TEXT_VARIABLE ((char *) NULL)
136 #define DEF_ENTRY_WIDTH "20"
137
138 /*
139 * Defaults for frames:
140 */
141
142 #define DEF_FRAME_BG_COLOR BISQUE1
143 #define DEF_FRAME_BG_MONO WHITE
144 #define DEF_FRAME_BORDER_WIDTH "0"
145 #define DEF_FRAME_CURSOR ((char *) NULL)
146 #define DEF_FRAME_GEOMETRY ((char *) NULL)
147 #define DEF_FRAME_HEIGHT "0"
148 #define DEF_FRAME_RELIEF "flat"
149 #define DEF_FRAME_WIDTH "0"
150
151 /*
152 * Defaults for listboxes:
153 */
154
155 #define DEF_LISTBOX_BG_COLOR BISQUE1
156 #define DEF_LISTBOX_BG_MONO WHITE
157 #define DEF_LISTBOX_BORDER_WIDTH "2"
158 #define DEF_LISTBOX_CURSOR ((char *) NULL)
159 #define DEF_LISTBOX_EXPORT_SELECTION "yes"
160 #define DEF_LISTBOX_FONT "-Adobe-Helvetica-Bold-R-Normal-*-120-*"
161 #define DEF_LISTBOX_FG BLACK
162 #define DEF_LISTBOX_GEOMETRY "20x10"
163 #define DEF_LISTBOX_RELIEF "flat"
164 #define DEF_LISTBOX_SCROLL_COMMAND ((char *) NULL)
165 #define DEF_LISTBOX_SELECT_COLOR LIGHTBLUE2
166 #define DEF_LISTBOX_SELECT_MONO BLACK
167 #define DEF_LISTBOX_SELECT_BD "1"
168 #define DEF_LISTBOX_SELECT_FG_COLOR BLACK
169 #define DEF_LISTBOX_SELECT_FG_MONO WHITE
170
171 /*
172 * Defaults for individual entries of menus:
173 */
174
175 #define DEF_MENU_ENTRY_ACTIVE_BG ((char *) NULL)
176 #define DEF_MENU_ENTRY_ACCELERATOR ((char *) NULL)
177 #define DEF_MENU_ENTRY_BG ((char *) NULL)
178 #define DEF_MENU_ENTRY_BITMAP ((char *) NULL)
179 #define DEF_MENU_ENTRY_COMMAND ((char *) NULL)
180 #define DEF_MENU_ENTRY_FONT ((char *) NULL)
181 #define DEF_MENU_ENTRY_LABEL ""
182 #define DEF_MENU_ENTRY_MENU ((char *) NULL)
183 #define DEF_MENU_ENTRY_OFF_VALUE "0"
184 #define DEF_MENU_ENTRY_ON_VALUE "1"
185 #define DEF_MENU_ENTRY_VALUE ((char *) NULL)
186 #define DEF_MENU_ENTRY_CHECK_VARIABLE ((char *) NULL)
187 #define DEF_MENU_ENTRY_RADIO_VARIABLE "selectedButton"
188 #define DEF_MENU_ENTRY_STATE "normal"
189 #define DEF_MENU_ENTRY_UNDERLINE "-1"
190
191 /*
192 * Defaults for menus overall:
193 */
194
195 #define DEF_MENU_ACTIVE_BG_COLOR BISQUE2
196 #define DEF_MENU_ACTIVE_BG_MONO BLACK
197 #define DEF_MENU_ACTIVE_BORDER_WIDTH "1"
198 #define DEF_MENU_ACTIVE_FG_COLOR BLACK
199 #define DEF_MENU_ACTIVE_FG_MONO WHITE
200 #define DEF_MENU_BG_COLOR BISQUE1
201 #define DEF_MENU_BG_MONO WHITE
202 #define DEF_MENU_BORDER_WIDTH "2"
203 #define DEF_MENU_CURSOR "arrow"
204 #define DEF_MENU_DISABLED_FG_COLOR GRAY
205 #define DEF_MENU_DISABLED_FG_MONO ((char *) NULL)
206 #define DEF_MENU_FONT "-Adobe-Helvetica-Bold-R-Normal-*-120-*"
207 #define DEF_MENU_FG BLACK
208 #define DEF_MENU_SELECTOR_COLOR MAROON
209 #define DEF_MENU_SELECTOR_MONO BLACK
210
211 /*
212 * Defaults for menubuttons:
213 */
214
215 #define DEF_MENUBUTTON_ANCHOR "center"
216 #define DEF_MENUBUTTON_ACTIVE_BG_COLOR BISQUE2
217 #define DEF_MENUBUTTON_ACTIVE_BG_MONO BLACK
218 #define DEF_MENUBUTTON_ACTIVE_FG_COLOR BLACK
219 #define DEF_MENUBUTTON_ACTIVE_FG_MONO WHITE
220 #define DEF_MENUBUTTON_BG_COLOR BISQUE1
221 #define DEF_MENUBUTTON_BG_MONO WHITE
222 #define DEF_MENUBUTTON_BITMAP ((char *) NULL)
223 #define DEF_MENUBUTTON_BORDER_WIDTH "2"
224 #define DEF_MENUBUTTON_CURSOR ((char *) NULL)
225 #define DEF_MENUBUTTON_DISABLED_FG_COLOR GRAY
226 #define DEF_MENUBUTTON_DISABLED_FG_MONO ((char *) NULL)
227 #define DEF_MENUBUTTON_FONT "-Adobe-Helvetica-Bold-R-Normal-*-120-*"
228 #define DEF_MENUBUTTON_FG BLACK
229 #define DEF_MENUBUTTON_HEIGHT "0"
230 #define DEF_MENUBUTTON_MENU ((char *) NULL)
231 #define DEF_MENUBUTTON_PADX "2"
232 #define DEF_MENUBUTTON_PADY "2"
233 #define DEF_MENUBUTTON_RELIEF "flat"
234 #define DEF_MENUBUTTON_STATE "normal"
235 #define DEF_MENUBUTTON_TEXT " "
236 #define DEF_MENUBUTTON_TEXT_VARIABLE ((char *) NULL)
237 #define DEF_MENUBUTTON_VARIABLE "postedMenu"
238 #define DEF_MENUBUTTON_UNDERLINE "-1"
239 #define DEF_MENUBUTTON_WIDTH "0"
240
241 /*
242 * Defaults for messages:
243 */
244
245 #define DEF_MESSAGE_ANCHOR "center"
246 #define DEF_MESSAGE_ASPECT "150"
247 #define DEF_MESSAGE_BG_COLOR BISQUE1
248 #define DEF_MESSAGE_BG_MONO WHITE
249 #define DEF_MESSAGE_BORDER_WIDTH "2"
250 #define DEF_MESSAGE_CURSOR ((char *) NULL)
251 #define DEF_MESSAGE_FONT "-Adobe-Helvetica-Bold-R-Normal-*-120-*"
252 #define DEF_MESSAGE_FG BLACK
253 #define DEF_MESSAGE_JUSTIFY ((char *) NULL)
254 #define DEF_MESSAGE_PADX "-1"
255 #define DEF_MESSAGE_PADY "-1"
256 #define DEF_MESSAGE_RELIEF "flat"
257 #define DEF_MESSAGE_TEXT " "
258 #define DEF_MESSAGE_TEXT_VARIABLE ((char *) NULL)
259 #define DEF_MESSAGE_WIDTH "0"
260
261 /*
262 * Defaults for scales:
263 */
264
265 #define DEF_SCALE_ACTIVE_FG_COLOR LIGHTPINK1
266 #define DEF_SCALE_ACTIVE_FG_MONO WHITE
267 #define DEF_SCALE_BG_COLOR BISQUE2
268 #define DEF_SCALE_BG_MONO WHITE
269 #define DEF_SCALE_BORDER_WIDTH "2"
270 #define DEF_SCALE_CURSOR ((char *) NULL)
271 #define DEF_SCALE_FONT "-Adobe-Helvetica-Bold-R-Normal-*-120-*"
272 #define DEF_SCALE_FG_COLOR BLACK
273 #define DEF_SCALE_FG_MONO BLACK
274 #define DEF_SCALE_FROM "0"
275 #define DEF_SCALE_LABEL ((char *) NULL)
276 #define DEF_SCALE_LENGTH "100"
277 #define DEF_SCALE_ORIENT "vertical"
278 #define DEF_SCALE_RELIEF "flat"
279 #define DEF_SCALE_SHOW_VALUE "1"
280 #define DEF_SCALE_SLIDER_FG_COLOR BISQUE3
281 #define DEF_SCALE_SLIDER_FG_MONO WHITE
282 #define DEF_SCALE_SLIDER_LENGTH "30"
283 #define DEF_SCALE_STATE "normal"
284 #define DEF_SCALE_TICK_INTERVAL "0"
285 #define DEF_SCALE_TO "100"
286 #define DEF_SCALE_WIDTH "15"
287
288 /*
289 * Defaults for scrollbars:
290 */
291
292 #define DEF_SCROLLBAR_ACTIVE_FG_COLOR LIGHTPINK1
293 #define DEF_SCROLLBAR_ACTIVE_FG_MONO BLACK
294 #define DEF_SCROLLBAR_BG_COLOR BISQUE3
295 #define DEF_SCROLLBAR_BG_MONO WHITE
296 #define DEF_SCROLLBAR_BORDER_WIDTH "2"
297 #define DEF_SCROLLBAR_COMMAND ((char *) NULL)
298 #define DEF_SCROLLBAR_CURSOR ((char *) NULL)
299 #define DEF_SCROLLBAR_FG_COLOR BISQUE1
300 #define DEF_SCROLLBAR_FG_MONO WHITE
301 #define DEF_SCROLLBAR_ORIENT "vertical"
302 #define DEF_SCROLLBAR_RELIEF "flat"
303 #define DEF_SCROLLBAR_REPEAT_DELAY "300"
304 #define DEF_SCROLLBAR_REPEAT_INTERVAL "100"
305 #define DEF_SCROLLBAR_WIDTH "15"
306
307 /*
308 * Defaults for texts:
309 */
310
311 #define DEF_TEXT_BG_COLOR BISQUE1
312 #define DEF_TEXT_BG_MONO WHITE
313 #define DEF_TEXT_BORDER_WIDTH "0"
314 #define DEF_TEXT_CURSOR "xterm"
315 #define DEF_TEXT_FG BLACK
316 #define DEF_TEXT_EXPORT_SELECTION "yes"
317 #define DEF_TEXT_FONT "*-Courier-Medium-R-Normal-*-120-*"
318 #define DEF_TEXT_FOREGROUND BLACK
319 #define DEF_TEXT_HEIGHT "24"
320 #define DEF_TEXT_INSERT_BG BLACK
321 #define DEF_TEXT_INSERT_BD_COLOR "0"
322 #define DEF_TEXT_INSERT_BD_MONO "0"
323 #define DEF_TEXT_INSERT_OFF_TIME "300"
324 #define DEF_TEXT_INSERT_ON_TIME "600"
325 #define DEF_TEXT_INSERT_WIDTH "2"
326 #define DEF_TEXT_PADX "1"
327 #define DEF_TEXT_PADY "1"
328 #define DEF_TEXT_RELIEF "flat"
329 #define DEF_TEXT_SELECT_COLOR LIGHTBLUE2
330 #define DEF_TEXT_SELECT_MONO BLACK
331 #define DEF_TEXT_SELECT_BD_COLOR "1"
332 #define DEF_TEXT_SELECT_BD_MONO "0"
333 #define DEF_TEXT_SELECT_FG_COLOR BLACK
334 #define DEF_TEXT_SELECT_FG_MONO WHITE
335 #define DEF_TEXT_SET_GRID "false"
336 #define DEF_TEXT_STATE "normal"
337 #define DEF_TEXT_WIDTH "80"
338 #define DEF_TEXT_WRAP "char"
339 #define DEF_TEXT_YSCROLL_COMMAND ((char *) NULL)
340
341 #endif /* _DEFAULT */
Impressum, Datenschutz