home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March / PCWK3A99.iso / Linux / DDD331 / DDD-3_1_.000 / DDD-3_1_ / ddd-3.1.1 / doc / sample.dddinit < prev   
Encoding:
Text File  |  1998-06-29  |  11.2 KB  |  309 lines

  1. ! $Id: sample.dddinit,v 1.16 1998/06/29 17:36:30 zeller Exp $ -*- xrdb -*-
  2. ! Sample DDD initialization file.  To be copied in `~/.ddd/init'.
  3.  
  4. ! Copyright (C) 1997 Technische Universitaet Braunschweig, Germany.
  5. ! Written by Andreas Zeller <zeller@ips.cs.tu-bs.de>.
  6. ! This file is part of DDD.
  7. ! DDD is free software; you can redistribute it and/or
  8. ! modify it under the terms of the GNU General Public
  9. ! License as published by the Free Software Foundation; either
  10. ! version 2 of the License, or (at your option) any later version.
  11. ! DDD is distributed in the hope that it will be useful,
  12. ! but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. ! See the GNU General Public License for more details.
  15. ! You should have received a copy of the GNU General Public
  16. ! License along with DDD -- see the file COPYING.
  17. ! If not, write to the Free Software Foundation, Inc.,
  18. ! 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19. ! DDD is the data display debugger.
  20. ! For details, see the DDD World-Wide-Web page, 
  21. ! `http://www.cs.tu-bs.de/softech/ddd/',
  22. ! or send a mail to the DDD developers <ddd@ips.cs.tu-bs.de>.
  23.  
  24. ! This file contains alternate resource settings for your personal
  25. ! `~/.ddd/init' file.  Most of these resources are documented either in
  26. ! the DDD manual or in the `Ddd.in' resource file shipped with the
  27. ! DDD source distribution.  To activate any of these resources, remove
  28. ! the `! ' prefixes in the lines beginning with `Ddd' (as well as
  29. ! in the next line(s), if the previous line ends in `\').
  30. !
  31. ! Please let us know what you like!  Tell us your preferences such
  32. ! that other users can pick their choice.
  33.  
  34.  
  35. ! ----------------------------------------------------------------------------
  36. ! GEOMETRY
  37. ! ----------------------------------------------------------------------------
  38.  
  39. ! Set the geometry for separate DDD windows.
  40. ! Ddd*command_shell.geometry: +0+0
  41. ! Ddd*source_view_shell.geometry: +0+220
  42. ! Ddd*data_disp_shell.geometry: +0+670
  43.  
  44.  
  45. ! Enable DDD 2.x style window layout
  46. ! Ddd*commonToolBar:    off
  47. ! Ddd*toolbarsAtBottom: on
  48.  
  49. ! Enable DDD 2.x style labels
  50. ! Ddd*buttonImages:    off
  51. ! Ddd*buttonCaptions:  off
  52.  
  53.  
  54. ! ----------------------------------------------------------------------------
  55. ! BUTTONS
  56. ! ----------------------------------------------------------------------------
  57.  
  58. ! Some useful buttons to be added below the source.
  59. ! Ddd*sourceButtons: \
  60. ! print *(())           // Print *()\n\
  61. ! graph display *(())    // Display *()\n\
  62. ! print /x ()\n\
  63. ! whatis ()        // What is ()\n\
  64. ! ptype ()\n\
  65. ! watch ()\n\
  66. ! until\n\
  67. ! shell
  68.  
  69. ! Show whenever a button is armed.
  70. ! Ddd*highlightOnEnter: true
  71.  
  72.  
  73. ! ----------------------------------------------------------------------------
  74. ! REMOTE STUFF
  75. ! ----------------------------------------------------------------------------
  76.  
  77. ! Commands to be issued whenever logging on remote machine using `--rhost'.
  78. ! Ddd*rHostInitCommands: stty -echo -onlcr; jobs
  79.  
  80.  
  81. ! ----------------------------------------------------------------------------
  82. ! VSL STUFF
  83. ! ----------------------------------------------------------------------------
  84.  
  85. ! Specify an individual VSL library.
  86. ! Ddd*vslLibrary:         /home/zeller/ddd/ddd/ddd.vsl
  87. ! Ddd*vslPath:             /home/zeller/ddd/ddd:/home/zeller/ddd/vsllib
  88.  
  89.  
  90. ! ----------------------------------------------------------------------------
  91. ! DATA DISPLAYS
  92. ! ----------------------------------------------------------------------------
  93.  
  94. ! Here is an alternate highlighting scheme for selected data displays.
  95. ! Ddd*graph_edit.selectTile:    25_foreground
  96.  
  97.  
  98. ! ----------------------------------------------------------------------------
  99. ! STRINGS
  100. ! ----------------------------------------------------------------------------
  101.  
  102. ! Michael.Taeschner@dlr.de (Michael Taeschner) suggests improved tip strings
  103. ! for the `next' and `step' buttons.
  104. ! Ddd*next.tipString: 1 step over
  105. ! Ddd*step.tipString: 1 step into
  106.  
  107.  
  108.  
  109. ! ----------------------------------------------------------------------------
  110. ! KEYBOARD
  111. ! ----------------------------------------------------------------------------
  112.  
  113. ! Assign Ctrl+A to beginning-of-line.  This scheme can be used
  114. ! for arbitrary new key bindings.
  115. ! Here's the general scheme for multi-line text and text fields:
  116. !     Ddd*XmText.translations: \
  117. !       #override\n\
  118. !     Ctrl<Key>A: beginning-of-line()
  119. !     Ddd*XmTextField.translations: \
  120. !       #override\n\
  121. !     Ctrl<Key>A: beginning-of-line()
  122. ! The debugger console needs a special action, since the prompt must be
  123. ! accounted for:
  124. !     Ddd*gdb_w.translations: \
  125. !       #override\n\
  126. !     Ctrl<Key>A: gdb-beginning-of-line()
  127. !
  128. ! The DDD manual and the XmText documentation
  129. ! contain a list of all available actions.
  130.  
  131. ! Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de> suggests the
  132. ! following accelerators (taken from the Borland Delphi debugger):
  133. ! Ddd*menubar*programMenu.step.accelerator:       ~Shift<Key>F7
  134. ! Ddd*menubar*programMenu.step.acceleratorText:   F7
  135. ! Ddd*menubar*programMenu.stepi.accelerator:      Shift<Key>F7
  136. ! Ddd*menubar*programMenu.stepi.acceleratorText:  Shift+F7
  137. ! Ddd*menubar*programMenu.next.accelerator:       ~Shift<Key>F8
  138. ! Ddd*menubar*programMenu.next.acceleratorText:   F8
  139. ! Ddd*menubar*programMenu.nexti.accelerator:      Shift<Key>F8
  140. ! Ddd*menubar*programMenu.nexti.acceleratorText:  Shift+F8
  141. ! Ddd*menubar*programMenu.kill.accelerator:       Ctrl ~Shift<Key>F2
  142. ! Ddd*menubar*programMenu.kill.acceleratorText:   Ctrl+F2
  143. ! Ddd*menubar*programMenu.cont.accelerator:       ~Ctrl ~Shift<Key>F9
  144. ! Ddd*menubar*programMenu.cont.acceleratorText:   F9
  145. ! ! This does not exist in the Borland debugger; `cont' also made run.
  146. ! Ddd*menubar*programMenu.run.accelerator:        Ctrl ~Shift<Key>F9
  147. ! Ddd*menubar*programMenu.run.acceleratorText:    Ctrl+F9
  148. ! ! There is no such thing in the Borland debugger, but seems useful to me
  149. ! Ddd*menubar*programMenu.finish.accelerator:     ~Shift<Key>F5
  150. ! Ddd*menubar*programMenu.finish.acceleratorText: F5
  151. ! Ddd*menubar*programMenu.run_again.accelerator:  Ctrl Shift<Key>F9
  152. ! Ddd*menubar*programMenu.run_again.acceleratorText:      Ctrl+Shift+F9
  153. ! Ddd*menubar*programMenu.separateExecWindow.accelerator:         Meta<Key>F9
  154. ! Ddd*menubar*programMenu.separateExecWindow.acceleratorText:     Alt+F9
  155. ! Ddd*menubar*programMenu.until.accelerator:     <Key>F4
  156. ! Ddd*menubar*programMenu.until.acceleratorText: F4    
  157.  
  158.  
  159. ! ----------------------------------------------------------------------------
  160. ! MENUS
  161. ! ----------------------------------------------------------------------------
  162.  
  163. ! Auto-raise menu panels.  This is useful if you have a window manager
  164. ! that auto-raises windows - and sometimes raises an application above
  165. ! its own menus.  This is off by default, since it may interfere with Motif.
  166. ! Ddd*autoRaiseMenu: true
  167.  
  168.  
  169.  
  170. ! ----------------------------------------------------------------------------
  171. ! COLORS
  172. ! ----------------------------------------------------------------------------
  173.  
  174. ! Use white background for text and lists.
  175. ! Ddd*XmText.background:      white
  176. ! Ddd*XmTextField.background: white
  177. ! Ddd*XmList.background:      white
  178.  
  179. ! Make activated toggle buttons shine in red.  Tcl/Tk people like this.
  180. ! Ddd*XmToggleButton.fillOnSelect: true
  181. ! Ddd*XmToggleButton.selectColor: red4
  182.  
  183. ! Here are some alternate color preferences submitted by Sasvata
  184. ! [Shash-wata] Chatterjee <Shash.Chatterjee@aud.alcatel.com>.
  185. !
  186. ! Ddd*run.foreground: yellow
  187. ! Ddd*run_again.foreground: yellow
  188. ! Ddd*break.foreground: tomato3
  189. ! Ddd*quit.foreground: tomato3
  190. ! Ddd*status_form.led.selectColor: olivedrab
  191. ! Ddd*foreground: papayawhip
  192. ! Ddd*background: dodgerblue4
  193. ! Ddd*XmText.background: tomato3
  194. ! Ddd*XmTextField.background: olivedrab
  195. ! Ddd*graphEdit.background: olivedrab
  196. ! Ddd*graphEdit.foreground: pink
  197. ! Ddd*XmList.background: tomato3
  198. ! Ddd*graph_edit.nodeColor: papayawhip
  199. ! Ddd*graph_edit.edgeColor: papayawhip
  200. ! Ddd*graph_edit.selectColor: papayawhip
  201. ! Ddd*graph_edit.gridColor: yellow
  202. ! Ddd*graph_edit.frameColor: lightblue1
  203. ! Ddd*graph_edit.outlineColor: seagreen2
  204. ! Ddd*graph_edit.background: tomato3
  205. ! Ddd*graph_edit.foreground: papayawhip
  206. ! Ddd*graph_edit.shadowColor: yellow
  207. ! Ddd*graph_edit_panner.background: tomato3
  208. ! Ddd*graph_edit_panner.foreground: papayawhip
  209. ! Ddd*graph_edit_panner.shadowColor: yellow
  210. ! Ddd*vslDefs:\
  211. ! #pragma replace display_color\n\
  212. ! #pragma replace title_color\n\
  213. ! #pragma replace disabled_color\n\
  214. ! #pragma replace simple_color\n\
  215. ! #pragma replace pointer_color\n\
  216. ! #pragma replace struct_color\n\
  217. ! #pragma replace array_color\n\
  218. ! #pragma replace reference_color\n\
  219. ! display_color(box) = color(box,"papayawhip","grey50");\n\
  220. ! title_color(box) = color(box,"mediumaquamarine");\n\
  221. ! disabled_color(box) = color(box,"ivory4");\n\
  222. ! simple_color(box) = color(box,"palegreen");\n\
  223. ! pointer_color(box) = color(box,"orchid");\n\
  224. ! struct_color(box) = color(box,"aquamarine");\n\
  225. ! array_color(box) = color(box,"orange");\n\
  226. ! reference_color(box) = color(box,"indianred");\n
  227.  
  228.  
  229. ! Matt Maika <mmajka@cs5.dasd.honeywell.com> wonders if
  230. ! anyone has a list of resources to give DDD the "SGI look".
  231. ! Here's what he's got so far:
  232. ! Ddd*sgiMode:                    True
  233. ! Ddd*useSchemes:                 All
  234. ! Ddd*baseScheme:                 Base
  235. ! Ddd*schemeFileList:             Base
  236. ! Ddd*paletteFileList:            BaseColorPalette
  237. ! Ddd*useEnhancedFSB:             True
  238. ! Ddd*background:                 SGI_DYNAMIC BasicBackground
  239. ! Ddd*XmText.background:          SGI_DYNAMIC TextFieldBackground
  240. ! Ddd*XmTextField.background:     SGI_DYNAMIC TextFieldBackground
  241. ! Ddd*GraphEdit.background:       grey90
  242. ! Ddd*XmList.background:          SGI_DYNAMIC ScrolledListBackground
  243. ! Ddd*graph_edit.nodeColor:       black
  244. ! Ddd*graph_edit.edgeColor:       SGI_DYNAMIC BlueColor
  245. ! Ddd*graph_edit.selectColor:     black
  246. ! Ddd*graph_edit.gridColor:       black
  247. ! Ddd*graph_edit.frameColor:      grey50
  248. ! Ddd*graph_edit.outlineColor:    grey50
  249. ! Some other useful SGI settings (your mileage may vary)
  250. ! Ddd*editCommand:              nedit_color -line @LINE@ @FILE@
  251. ! Ddd*printCommand:             lp -dPS_LPS_X17
  252. ! Ddd*termCommand:                \
  253. ! winterm -title 'DDD: Execution Window' -e /bin/sh -c
  254. ! Ddd*termType:                   iris-ansi
  255.  
  256.  
  257.  
  258. ! ----------------------------------------------------------------------------
  259. ! FONTS
  260. ! ----------------------------------------------------------------------------
  261.  
  262. ! Here are some nice alternatives to the predefined DDD fonts.  Try these.
  263.  
  264. ! Ddd*defaultFont:       helvetica-medium
  265. ! Ddd*fixedWidthFont:    courier
  266. ! Ddd*variableWidthFont: times
  267.  
  268.  
  269.  
  270. ! ----------------------------------------------------------------------------
  271. ! OBSCURE AND DANGEROUS STUFF
  272. ! ----------------------------------------------------------------------------
  273.  
  274. ! When DDD interrupts a program while it has grabbed the pointer,
  275. ! DDD 3.0 by default continues it.  Earlier DDD releases attempted
  276. ! to make the debuggee ungrab its pointer instead.  This setting
  277. ! will emulate the DDD 2.x behavior.  Use at your own risk!
  278.  
  279. ! Note: This assumes the global variable _XHeadOfDisplayList contains
  280. ! the most recently opened display; as in X11 with MOTIF_BC enabled.
  281. ! Originally suggested by Vadim Rogozin  <dima@mercury.co.il>
  282.  
  283. ! Ddd*grabAction: \
  284. ! print XUngrabPointer(_XHeadOfDisplayList, 0L)\n
  285. ! print XFlush(_XHeadOfDisplayList)
  286.