home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / fontutils-0.6-base.tgz / fontutils-0.6-base.tar / fsf / fontutils / xbfe / XBfe.ad < prev   
Text File  |  1992-08-10  |  5KB  |  147 lines

  1. ! If you don't have the Lucida fonts (which come with X11R4 and later),
  2. !  I suggest the commented-out alternatives here.
  3.  
  4. ! Use this font for buttons:
  5. *Command.font: *-lucida-medium-r-normal-sans-24-*
  6. !*Command.font: *-helvetica-medium-r-*--24-*
  7.  
  8. ! Use this font when messages are popped up and for the Label in the Item.
  9. *Label.font: *-lucidabright-medium-r-normal--24-*
  10. !*Label.font: *-times-medium-r-*--24-*
  11.  
  12. ! Use this font for reporting the cursor position.
  13. *position.font: *-lucidatypewriter-medium-r-normal-sans-24-*
  14. !*Item.Text*font: *-courier-medium-r-*--24-*
  15.  
  16. ! Use this font for the text they edit.
  17. *Item.Text*font: *-lucidatypewriter-medium-r-normal-sans-24-*
  18. !*Item.Text*font: *-courier-medium-r-*--24-*
  19. ! The values here depend on the font: the idea is to put the character
  20. ! code on the baseline of the prompt.
  21. *Item.Text*topMargin: 1
  22. *Item.Text*bottomMargin: 3
  23. !*Item.Text*topMargin: 7
  24. !*Item.Text*bottomMargin: 4
  25.  
  26. ! When an item value gets changed.
  27. *Item.Text*translations: #override\n\
  28.   Ctrl<Key>M: AcceptValue() \n\
  29.   <Key>Return: AcceptValue()
  30.  
  31. ! Other random preferences; these values can be changed at will.
  32. Bitmap*cursor: dot
  33. *Bitmap.expansion: 12
  34. *Scrollbar.thickness: 10
  35. *Command.internalHeight: 2
  36. *Command.internalWidth: 4
  37.  
  38. ! We only want the expanded Bitmap (named `bitmap') to be editable, not
  39. ! the true-size one.  So the bindings here can be changed, but don't say
  40. ! `Bitmap' instead of `bitmap'.  I didn't define any translations for the
  41. ! transparent AcceptPaste, since I couldn't figure out a good way to
  42. ! specify them.
  43. *bitmap.translations:                            \
  44.      <Btn1Down>:    StartSelection()                \n\
  45.      <Btn1Motion>:    AdjustSelection()                \n\
  46.      <Btn1Up>:        AcceptSelection()                \n\
  47.      <Btn2Down>:    StartPaste()                    \n\
  48.      <Btn2Motion>:    MovePaste()                    \n\
  49.   Ctrl Alt<Btn2Up>:    AcceptPaste(Opaque, FlipBoth)            \n\
  50.   Alt<Btn2Up>:        AcceptPaste(Opaque, FlipVertical)        \n\
  51.   Ctrl<Btn2Up>:        AcceptPaste(Opaque, FlipHorizontal)        \n\
  52.      <Btn2Up>:        AcceptPaste(Opaque, FlipNeither)        \n\
  53.   Alt<Btn3Down>:    FillSelection()                    \n\
  54.      <Btn3Down>:       InvertPixel(Discrete)                \n\
  55.      <Btn3Motion>:     InvertPixel(Continuous)                \n\
  56.  
  57. ! Don't leave any space between the child widgets,
  58. ! or between the Form and main window.
  59. *Form.borderWidth: 0
  60. *Form.defaultDistance: 0
  61. *Box.hSpace: 0
  62. *Box.vSpace: 0
  63.  
  64. ! Kern items inside the box don't need borders.  The others do.
  65. *Box*Item.borderWidth: 0
  66. *Item.borderWidth: 1
  67.  
  68. ! This can be changed, but I think a visible border around the true-size
  69. ! bitmap is too distracting. The extra space separates it from its
  70. ! neighbors.
  71. *Bitmap.borderWidth: 6
  72. *Bitmap.borderColor: XtDefaultBackground
  73.  
  74.  
  75.  
  76. !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  77. ! Changing anything below here should be unnecessary, and may produce
  78. ! incorrect actions or even crash the program.  It is simply more
  79. ! convenient for us to specify resources here, where they can be changed
  80. ! experimentally during development without recompilation.
  81.  
  82. ! Making these nonzero affects the Bitmap that is put inside the
  83. ! Viewport, where we don't want any extra space.
  84. *Bitmap*internalWidth: 0
  85. *Bitmap*internalHeight: 0
  86.  
  87. ! The buttons will be in a row on the first line, and won't change size.
  88. *Command.top: chaintop
  89. *Command.bottom: chaintop
  90. *Command.left: chainleft
  91. *Command.right: chainleft
  92. *Command.resizable: false
  93.  
  94. *Box.top: chaintop
  95. *Box.bottom: chaintop
  96. *Box.left: chainleft
  97. *Box.right: chainleft
  98. *Box.resizable: true
  99.  
  100. ! We don't want the position-reporting widget to change size, either.
  101. ! This starting label is a little ugly, but it is an easy way to make
  102. ! the width of the widget be right.
  103. *position.label: 000,000
  104. *position.top: chaintop
  105. *position.bottom: chaintop
  106. *position.left: chainleft
  107. *position.right: chainleft
  108.  
  109. ! We want the true-size bitmap to be completely visible if at all
  110. ! possible.  And it should always be a fixed distance from the top.
  111. *Bitmap.top: chaintop
  112. *Bitmap.bottom: chaintop
  113. *Bitmap.right: chainleft
  114.  
  115. ! The Viewport (i.e., editable bitmap) shouldn't move vertically.
  116. *Viewport.top: chaintop
  117. *Viewport.left: chainleft
  118.  
  119. ! These tell the Form we might change the sizes of the bitmap and the
  120. ! viewport (for example, when the user changes characters).
  121. *Bitmap.resizable: true
  122. *Viewport.resizable: true
  123.  
  124. ! We certainly want to allow scrollbars.
  125. *Viewport.allowHoriz: true
  126. *Viewport.allowVert: true
  127.  
  128. ! The Items aren't going to resize.
  129. *Item.top: chaintop
  130. *Item.bottom: chaintop
  131. *Item.left: chainleft
  132. *Item.right: chainleft
  133.  
  134. ! The subwidgets of the Item don't need borders.
  135. *Item.Label.borderWidth: 0
  136. *Item.Text*borderWidth: 0
  137.  
  138. ! We want the users to be able to edit the items.  Even though we create an
  139. ! `AsciiText' widget, the name of the class is `Text'.
  140. *Item.Text*editType: edit
  141. *Item.Text*type: string
  142. *Item.Text*useStringInPlace: true
  143. *Item.Text*leftMargin: 0
  144. *Item.Text*rightMargin: 0
  145. *Item.Text*dataCompression: false
  146.