home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xscm105.zip / xscm / xm.scm < prev    next >
Text File  |  1992-08-29  |  12KB  |  360 lines

  1. ; $Header: /home/campbell/Languages/Scheme/scm/x-scm/RCS/xm.scm,v 1.2 1992/07/08 03:20:26 campbell Beta $
  2. ;
  3. ; Various definitions from Xm.h.
  4. ;
  5. ;  Author: Larry Campbell (campbell@redsox.bsw.com)
  6. ;  Copyright 1992 by The Boston Software Works, Inc.
  7. ;  Permission to use for any purpose whatsoever granted, as long
  8. ;  as this copyright notice remains intact.  Please send bug fixes
  9. ;  or enhancements to the above email address.
  10. ;
  11. (define xm:n-accelerators "accelerators")
  12. (define xm:n-accelerator-text "acceleratorText")
  13. (define xm:n-adjustLast "adjustLast")
  14. (define xm:n-adjust-margin "adjustMargin")
  15. (define xm:n-alignment "alignment")
  16. (define xm:n-allow-horiz "allowHoriz")
  17. (define xm:n-allow-overlap "allowOverlap")
  18. (define xm:n-allow-shell-resize "allowShellResize")
  19. (define xm:n-allow-vert "allowVert")
  20. (define xm:n-arm-callback "armCallback")
  21. (define xm:n-arrow-direction "arrowDirection")
  22. (define xm:n-ancestor-sensitive "ancestorSensitive")
  23. (define xm:n-background "background")
  24. (define xm:n-background-pixmap "backgroundPixmap")
  25. (define xm:n-bitmap "bitmap")
  26. (define xm:n-border-color "borderColor")
  27. (define xm:n-border "borderColor")
  28. (define xm:n-border-pixmap "borderPixmap")
  29. (define xm:n-border-width "borderWidth")
  30. (define xm:n-browse-selection-callback "browseSelectionCallback")
  31. (define xm:n-callback "callback")
  32. (define xm:n-children "children")
  33. (define xm:n-colormap "colormap")
  34. (define xm:n-columns "columns")
  35. (define xm:n-decimal-points "decimalPoints")
  36. (define xm:n-delete-response "deleteResponse")
  37. (define xm:n-depth "depth")
  38. (define xm:n-destroy-callback "destroyCallback")
  39. (define xm:n-disarm-callback "disarmCallback")
  40. (define xm:n-drag-callback "dragCallback")
  41. (define xm:n-edit-mode "editMode")
  42. (define xm:n-edit-type "editType")
  43. (define xm:n-editable "editable")
  44. (define xm:n-expose-callback "exposeCallback")
  45. (define xm:n-file "file")
  46. (define xm:n-font "font")
  47. (define xm:n-force-bars "forceBars")
  48. (define xm:n-foreground "foreground")
  49. (define xm:n-function "function")
  50. (define xm:n-height "height")
  51. (define xm:n-highlight "highlight")
  52. (define xm:n-highlight-thickness "highlightThickness")
  53. (define xm:n-h-space "hSpace")
  54. (define xm:n-index "index")
  55. (define xm:n-initial-resources-persistent "initialResourcesPersistent")
  56. (define xm:n-inner-height "innerHeight")
  57. (define xm:n-inner-width "innerWidth")
  58. (define xm:n-inner-window "innerWindow")
  59. (define xm:n-insert-position "insertPosition")
  60. (define xm:n-internal-height "internalHeight")
  61. (define xm:n-internal-width "internalWidth")
  62. (define xm:n-items "items")
  63. (define xm:n-item-count "itemCount")
  64. (define xm:n-jump-proc "jumpProc")
  65. (define xm:n-justify "justify")
  66. (define xm:n-knob-height "knobHeight")
  67. (define xm:n-knob-indent "knobIndent")
  68. (define xm:n-knob-pixel "knobPixel")
  69. (define xm:n-knob-width "knobWidth")
  70. (define xm:n-label "label")
  71. (define xm:n-label-string "labelString")
  72. (define xm:n-length "length")
  73. (define xm:n-lower-right "lowerRight")
  74. (define xm:n-mapped-when-managed "mappedWhenManaged")
  75. (define xm:n-mapping-delay "mappingDelay")
  76. (define xm:n-margin-height "marginHeight")
  77. (define xm:n-margin-top "marginTop")
  78. (define xm:n-margin-bottom "marginBottom")
  79. (define xm:n-margin-width "marginWidth")
  80. (define xm:n-margin-right "marginRight")
  81. (define xm:n-margin-left "marginLeft")
  82. (define xm:n-maximum "maximum")
  83. (define xm:n-menu-accelerator "menuAccelerator")
  84. (define xm:n-menu-bar "menuBar")
  85. (define xm:n-menu-cursor "menuCursor")
  86. (define xm:n-menu-entry "menuEntry")
  87. (define xm:n-menu-help-widget "menuHelpWidget")
  88. (define xm:n-minimum "minimum")
  89. (define xm:n-multiple-selection-callback "multipleSelectionCallback")
  90. (define xm:n-name "name")
  91. (define xm:n-notify "notify")
  92. (define xm:n-num-children "numChildren")
  93. (define xm:n-num-columns "numColumns")
  94. (define xm:n-orientation "orientation")
  95. (define xm:n-packing "packing")
  96. (define xm:n-parameter "parameter")
  97. (define xm:n-pixmap "pixmap")
  98. (define xm:n-popup-callback "popupCallback")
  99. (define xm:n-popdown-callback "popdownCallback")
  100. (define xm:n-processing-direction "processingDirection")
  101. (define xm:n-recompute-size "recomputeSize")
  102. (define xm:n-resize "resize")
  103. (define xm:n-resize-callback "resizeCallback")
  104. (define xm:n-reverse-video "reverseVideo")
  105. (define xm:n-row-column-type "rowColumnType")
  106. (define xm:n-rows "rows")
  107. (define xm:n-scale-height "scaleHeight")
  108. (define xm:n-scale-multiple "scaleMultiple")
  109. (define xm:n-scale-width "scaleWidth")
  110. (define xm:n-screen "screen")
  111. (define xm:n-scroll-proc "scrollProc")
  112. (define xm:n-scroll-d-cursor "scrollDCursor")
  113. (define xm:n-scroll-h-cursor "scrollHCursor")
  114. (define xm:n-scroll-l-cursor "scrollLCursor")
  115. (define xm:n-scroll-r-cursor "scrollRCursor")
  116. (define xm:n-scroll-u-cursor "scrollUCursor")
  117. (define xm:n-scroll-v-cursor "scrollVCursor")
  118. (define xm:n-selected-items "selectedItems")
  119. (define xm:n-selected-item-count "selectedItemCount")
  120. (define xm:n-selection "selection")
  121. (define xm:n-selection-array "selectionArray")
  122. (define xm:n-selection-policy "selectionPolicy")
  123. (define xm:n-sensitive "sensitive")
  124. (define xm:n-set "set")
  125. (define xm:n-shadow-thickness "shadowThickness")
  126. (define xm:n-show-as-default "showAsDefault")
  127. (define xm:n-show-separator "showSeparator")
  128. (define xm:n-show-value "showValue")
  129. (define xm:n-shown "shown")
  130. (define xm:n-single-selection-callback "singleSelectionCallback")
  131. (define xm:n-space "space")
  132. (define xm:n-spacing "spacing")
  133. (define xm:n-string "string")
  134. (define xm:n-string-direction "stringDirection")
  135. (define xm:n-sub-menu-id "subMenuId")
  136. (define xm:n-text-options "textOptions")
  137. (define xm:n-text-sink "textSink")
  138. (define xm:n-text-source "textSource")
  139. (define xm:n-text-string "textString")
  140. (define xm:n-thickness "thickness")
  141. (define xm:n-thumb "thumb")
  142. (define xm:n-thumb-proc "thumbProc")
  143. (define xm:n-title "title")
  144. (define xm:n-title-string "titleString")
  145. (define xm:n-top "top")
  146. (define xm:n-translations "translations")
  147. (define xm:n-traversal-on "traversalOn")
  148. (define xm:n-unrealize-callback "unrealizeCallback")
  149. (define xm:n-update "update")
  150. (define xm:n-use-bottom "useBottom")
  151. (define xm:n-use-right "useRight")
  152. (define xm:n-value "value")
  153. (define xm:n-value-changed-callback "valueChangedCallback")
  154. (define xm:n-visible-item-count "visibleItemCount")
  155. (define xm:n-visible-when-off "visibleWhenOff")
  156. (define xm:n-v-space "vSpace")
  157. (define xm:n-which-button "whichButton")
  158. (define xm:n-width "width")
  159. (define xm:n-window "window")
  160. (define xm:n-x "x")
  161. (define xm:n-y "y")
  162.  
  163. ; Other miscellaneous definitions from Xm.h
  164.  
  165. (define xm:n-activate-callback "activateCallback")
  166.  
  167. (define xm:work-area           0)
  168. (define xm:menu-bar           1)
  169. (define xm:menu-pulldown       2)
  170. (define xm:menu-popup          3)
  171. (define xm:menu-option         4)
  172.  
  173.  
  174. ; Menu defines
  175.  
  176. (define xm:no-orientation    0)
  177. (define xm:vertical        1)
  178. (define xm:horizontal        2)
  179.  
  180. (define xm:work-area        0)
  181. (define xm:menu-bar        1)
  182. (define xm:menu-pulldown    2)
  183. (define xm:menu-popup        3)
  184. (define xm:menu-option        4)
  185.  
  186. (define xm:no-packing        0)
  187. (define xm:pack-tight        1)
  188. (define xm:pack-column        2)
  189. (define xm:pack-none        3)
  190.  
  191.  
  192. ; Label defines
  193.  
  194. (define xm:alignment-beginning    0)
  195. (define xm:alignment-center    1)
  196. (define xm:alignment-end    2)
  197.  
  198.  
  199. ; ToggleButton defines
  200.  
  201. (define xm:n-of-many        1)
  202. (define xm:one-of-many        2)
  203.  
  204. ; Form constraint resources
  205.  
  206. (define xm:n-top-attachment    "topAttachment")
  207. (define xm:n-bottom-attachment    "bottomAttachment")
  208. (define xm:n-left-attachment    "leftAttachment")
  209. (define xm:n-right-attachment    "rightAttachment")
  210.  
  211. (define xm:n-top-widget        "topWidget")
  212. (define xm:n-bottom-widget    "bottomWidget")
  213. (define xm:n-left-widget    "leftWidget")
  214. (define xm:n-right-widget    "rightWidget")
  215.  
  216. (define xm:n-top-position    "topPosition")
  217. (define xm:n-bottom-position    "bottomPosition")
  218. (define xm:n-left-position    "leftPosition")
  219. (define xm:n-right-position    "rightPosition")
  220. (define xm:n-top-offset        "topOffset")
  221. (define xm:n-bottom-offset    "bottomOffset")
  222. (define xm:n-left-offset    "leftOffset")
  223. (define xm:n-right-offset    "rightOffset")
  224.  
  225. (define xm:n-resizable        "resizable")
  226.  
  227.  
  228. ; Form defines
  229.  
  230. (define xm:attach-none            0)
  231. (define xm:attach-form            1)
  232. (define xm:attach-opposite-form        2)
  233. (define xm:attach-widget        3)
  234. (define xm:attach-opposite-widget    4)
  235. (define xm:attach-position        5)
  236. (define xm:attach-self            6)
  237.  
  238. (define xm:resize-none    0)
  239. (define xm:resize-grow    1)
  240. (define xm:resize-any    2)
  241.  
  242. ; XmMessageBox           stuff not common to other dialogs
  243.  
  244. (define xm:n-default-button-type    "defaultButtonType")
  245. (define xm:n-minimize-buttons        "minimizeButtons")
  246. (define xm:n-message-string        "messageString")
  247. (define xm:n-message-alignment        "messageAlignment")
  248. (define xm:n-symbol-pixmap        "symbolPixmap")
  249. (define xm:n-dialog-type        "dialogType")
  250.  
  251. ; DeleteResponse values
  252. (define xm:destroy     0)
  253. (define xm:unmap     1)
  254. (define xm:do-nothing    2)
  255.  
  256. ; defines for dialog type
  257.  
  258. (define xm:dialog-error        1)
  259. (define xm:dialog-information  2)
  260. (define xm:dialog-message      3)
  261. (define xm:dialog-question     4)
  262. (define xm:dialog-warning      5)
  263. (define xm:dialog-working      6)
  264.  
  265.  
  266. ; defines for callbacks
  267.  
  268. (define xm:n-apply-callback        "applyCallback")
  269. (define xm:n-cancel-callback        "cancelCallback")
  270. (define xm:n-command-entered-callback    "commandEnteredCallback")
  271. (define xm:n-command-changed-callback    "commandChangedCallback")
  272. (define xm:n-default-action-callback    "defaultActionCallback")
  273. (define xm:n-ok-callback        "okCallback")
  274. (define xm:n-no-match-callback        "noMatchCallback")
  275.  
  276.  
  277. ; XmN defines for subwidgets
  278.  
  279. (define xm:n-ok-label-string        "okLabelString")
  280. (define xm:n-cancel-label-string    "cancelLabelString")
  281. (define xm:n-help-label-string        "helpLabelString")
  282. (define xm:n-apply-label-string        "applyLabelString")
  283. (define xm:n-selection-label-string    "selectionLabelString")
  284. (define xm:n-list-label-string        "listLabelString")
  285. (define xm:n-prompt-string        "promptString")
  286.  
  287. ; Text mode stuff
  288.  
  289. (define xm:multi-line-edit    0)
  290. (define xm:single-line-edit    1)
  291.  
  292. (define xm:n-auto-show-cursor-position    "autoShowCursorPosition")
  293. (define xm:n-resize-width        "resizeWidth")
  294. (define xm:n-scroll-horizontal        "scrollHorizontal")
  295. (define xm:n-scroll-vertical        "scrollVertical")
  296.  
  297. ; ArrowButton stuff
  298.  
  299. (define xm:arrow-up    0)
  300. (define xm:arrow-down    1)
  301. (define xm:arrow-left    2)
  302. (define xm:arrow-right    3)
  303.  
  304. ; Selection types
  305.  
  306. (define xm:single-select    0)
  307. (define xm:multiple-select    1)
  308. (define xm:extended-select    2)
  309. (define xm:browse-select    3)
  310.  
  311. ; Scrolled Window defines.
  312.  
  313. (define xm:n-horizontal-scroll-bar    "horizontalScrollBar")
  314. (define xm:n-vertical-scroll-bar    "verticalScrollBar")
  315. (define xm:n-work-window        "workWindow")
  316. (define xm:n-clip-window        "clipWindow")
  317. (define xm:n-scrolling-policy        "scrollingPolicy")
  318. (define xm:n-visual-policy        "visualPolicy")
  319. (define xm:n-scroll-bar-display-policy    "scrollBarDisplayPolicy")
  320. (define xm:n-scroll-bar-placement    "scrollBarPlacement")
  321. (define xm:n-update-slider-size        "updateSliderSize")
  322. (define xm:n-scrolled-window-margin-height    "scrolledWindowMarginHeight")
  323. (define xm:n-scrolled-window-margin-width    "scrolledWindowMarginWidth")
  324.  
  325. (define xm:variable            0)
  326. (define xm:constant            1)
  327. (define xm:resize-if-possible    2)
  328.  
  329. (define xm:automatic        0)
  330. (define xm:application-defined    1)
  331.  
  332. (define xm:as-needed        1)
  333.  
  334. ; Defined values for scrollbar
  335.  
  336. (define xm:max-on-top        0)
  337. (define xm:max-on-bottom    1)
  338. (define xm:max-on-left        2)
  339. (define xm:max-on-right        3)
  340.  
  341.  
  342. ; Resources for vertical paned window
  343.  
  344. (define xm:n-refigure-mode        "refigureMode")
  345. (define xm:n-separator-on        "separatorOn")
  346. (define xm:n-sash-indent        "sashIndent")
  347. (define xm:n-sash-width            "sashWidth")
  348. (define xm:n-sash-height        "sashHeight")
  349. (define xm:n-sash-shadow-thickness    "sashShadowThickness")
  350.  
  351.  
  352. ; Constraint Resources for Vertical Paned Window
  353.  
  354. (define xm:n-allow-resize    "allowResize")
  355. (define xm:n-skip-adjust    "skipAdjust")
  356. (define xm:n-pane-minimum       "paneMinimum")
  357. (define xm:n-pane-maximum       "paneMaximum")
  358.  
  359.