home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / tcl / tk3.3b1 / default.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-16  |  11.0 KB  |  355 lines

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