home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / incoming / jstools-.6v3 / jstools- / jstools-tk3.6v3.0 / lib / jdoc / jprefpanel.tcl.jdoc < prev    next >
Encoding:
Text File  |  1995-03-14  |  8.0 KB  |  101 lines

  1. {jprefpanel.tcl
  2.  
  3. Introduction
  4. The jprefpanel.tcl library is distributed as part of the jstools package.  It a single procedure which creates the jstools Global Preferences panel.
  5.  
  6. This document describes jprefpanel.tcl version 3.6/3.0.
  7.  
  8. Usage
  9. Accessing the Library
  10. In order to use the jprefpanel.tcl library, it (and any other libraries it depends on) must be in your Tcl auto_path, described in tclvars(n).  Information about how to arrange that, and other conventions common to the jstools libraries, is in the Usage section of The jstools Libraries.
  11.  
  12. Credits and Copyright
  13. Author
  14. Jay Sekora 
  15. js@bu.edu
  16. http://shore.net/~js/
  17.  
  18. Copyright
  19. The library is copyright ⌐ 1992-1994 by Jay Sekora, but may be freely copied and modified for non¡commercial purposes.  (Please contact me if you want to use it for a commercial purpose, this may be OK under some circumstances.)
  20.  
  21. Overview
  22. Procedures
  23. j:global_pref_panel - create the jstools Global Preferences panel
  24.  
  25. See Also
  26.     jprefs.tcl
  27.  
  28. j:global_pref_panel
  29. Usage
  30.     j:global_pref_panel [options]
  31. Option
  32.     -title title  (default Global Preferences)
  33.  
  34. Description
  35. This procedure creates a preference panel that lets users set preferences intended to be shared across multiple applications.  Global preferences are accessed by applications as elements of the global J_PREFS array, and saved in X resource format in the file ~/.tk/defaults.
  36.  
  37. The main part of the panel contains various kinds of controls to manipulate particular preferences.  At the bottom of the panel are two buttons labelled `Save' and `Done'.  (Save is the default button.)  The Done button simply dismisses the panel; the application will use whatever preferences are currently shown, but they will not be saved across sessions.  The Save button writes the current preferences into the file ~/.tk/defaults before dismissing the panel, so that they can be read in the next time the application starts, or by other applications.
  38.  
  39. If title is specified, it will be the title of the panel, for use by the window manager.
  40.  
  41. Documentation for the Global Preferences panel itself (as opposed to the library) is available in The jstools Global Preferences Panel.
  42.  
  43. Currently, the controls available and the preferences they manipulate are:
  44.  
  45. Auto¡position dialogue boxes
  46. Checkbutton; sets J_PREFS(autoposition)
  47. (Used by j:dialogue)
  48.  
  49. Confirm actions
  50. Checkbutton; sets J_PREFS(confirm)
  51. (Used by j:alert)
  52.  
  53. Fast file selector
  54. Checkbutton; sets J_PREFS(j_fs_fast)
  55. (Used by j:fs)
  56.  
  57. Visible Bell
  58. Checkbutton; sets J_PREFS(visiblebell)
  59. (Used by j:beep)
  60.  
  61. Audible Bell
  62. Checkbutton; sets J_PREFS(audiblebell)
  63. (Used by j:beep)
  64.  
  65. Strict Motif emulation
  66. Checkbutton; sets J_PREFS(tk_strictMotif) and tk_strictMotif
  67. (Used by Tk itself.  Changing this preference currently has no effect until the next time the application is run; this might be considered a bug.)
  68.  
  69. Basic bindings
  70. Radiobutton; sets J_PREFS(bindings) to basic
  71. (Used by j:init; can also be checked by your code.)
  72.  
  73. vi bindings
  74. Radiobutton; sets J_PREFS(bindings) to vi
  75. (Used by j:init; can also be checked by your code.)
  76.  
  77. EDT bindings
  78. Radiobutton; sets J_PREFS(bindings) to EDT
  79. (Used by j:init; can also be checked by your code.)
  80.  
  81. Emacs bindings
  82. Radiobutton; sets J_PREFS(bindings) to emacs
  83. (Used by j:init; can also be checked by your code.)
  84.  
  85. Printer:
  86. Entry field; sets J_PREFS(printer)
  87. (Used by j:more; can also be used by your application.  Note that in the current version of the library, it does not set the PRINTER environment variable.)
  88.  
  89. In addition to using commands in the jbindings.tcl or jinit.tcl libraries to set default text and entry bindings, your application may wish to consult the value of J_PREFS(bindings) in order to choose bindings for commands that it defines.  For instance, you may wish to use `/' (a slash) to start a search if the user has selected vi or basic bindings, but Control-s if the user has selected Emacs bindings.  Likewise, you might bind either `ZZ' or Control-x Control-q to save a document, depending on the user's preferred bindings.
  90.  
  91. Additional global preferences are likely to be defined in future versions of the library.
  92.  
  93. Evolution
  94. Feel free to report bugs (and feature requests) to me, <js@bu.edu>, and I will try to deal with them.  Also, feel free to fix bugs or add features on your own and let me know how you did it.
  95.  
  96. Future Directions
  97. I want to implement a much more general preferences mechanism along the lines of that provided by Brent Welch's exmh application.  Then there would be one Preferences panel available in each application, which would let the user get at application¡specific preferences as well as global preferences.
  98.  
  99. Changes
  100. * This procedure used to be in the jlibrary.tcl library, now it's got its own library file.
  101. } {{{display:foreground:Red {10.287 11.0}} {jdoc:xref:link {4.57 4.64 4.111 4.147 10.215 10.236 10.244 10.261 10.265 10.286 23.0 23.19 23.29 23.65 26.1 26.11 41.98 41.134}} {jdoc:xref:manpage {10.131 10.138}} {jdoc:anchor:anchorname {3.0 4.0 8.0 9.0 12.0 13.0 21.0 22.0 28.0 29.0 93.0 94.0}} {richtext:font:roman {2.0 3.0 4.0 4.4 4.18 4.57 4.64 4.115 4.122 6.24 6.38 8.0 9.21 10.20 10.34 10.107 10.116 10.131 10.138 10.219 10.226 10.248 10.253 10.265 10.286 10.287 11.0 12.0 14.0 15.0 15.9 16.0 16.21 18.0 19.0 21.0 23.19 23.33 23.40 25.0 26.0 26.1 26.11 28.0 30.21 30.22 30.29 31.0 32.15 32.24 32.42 34.0 35.0 35.201 35.208 35.259 35.273 37.421 37.435 39.3 39.8 41.98 41.134 45.0 46.0 46.18 46.39 47.9 47.19 49.0 50.0 50.18 50.34 51.9 51.16 53.0 54.0 54.18 54.36 55.9 55.13 57.0 58.0 58.18 58.38 59.9 59.15 61.0 62.0 62.18 62.38 63.9 63.15 65.0 66.0 66.18 66.41 66.46 66.60 69.0 70.0 70.18 70.35 70.39 70.44 71.9 71.15 73.0 74.0 74.18 74.35 74.39 74.41 75.9 75.15 77.0 78.0 78.18 78.35 78.39 78.42 79.9 79.15 81.0 82.0 82.18 82.35 82.39 82.44 83.9 83.15 85.0 86.0 86.18 86.34 87.9 87.15 87.125 87.132 89.37 89.50 89.54 89.63 89.164 89.181 89.276 89.277 89.358 89.367 89.443 89.445 89.450 89.459 89.460 89.469 93.0 93.9 94.55 94.66 96.0 96.17 97.112 97.116 99.0 100.0 100.35 100.47 101.0}} {richtext:font:italic {30.22 30.29 32.8 32.13 39.3 39.8}} {richtext:font:bold {4.4 4.18 4.57 4.64 4.115 4.122 6.24 6.38 10.20 10.34 10.219 10.226 26.1 26.11 35.259 35.273 37.421 37.435 89.37 89.50 89.54 89.63 89.358 89.367 89.450 89.459 89.460 89.469 100.35 100.47}} {richtext:font:bolditalic {10.248 10.253 10.265 10.286 41.98 41.134}} {richtext:font:typewriter {10.107 10.116 10.131 10.138 15.0 15.9 16.0 16.21 23.0 23.19 23.33 23.40 30.0 30.21 32.0 32.8 32.13 32.15 32.24 32.42 35.201 35.208 46.18 46.39 47.9 47.19 50.18 50.34 51.9 51.16 54.18 54.36 55.9 55.13 58.18 58.38 59.9 59.15 62.18 62.38 63.9 63.15 66.18 66.41 66.46 66.60 70.18 70.35 70.39 70.44 71.9 71.15 74.18 74.35 74.39 74.41 75.9 75.15 78.18 78.35 78.39 78.42 79.9 79.15 82.18 82.35 82.39 82.44 83.9 83.15 86.18 86.34 87.9 87.15 87.125 87.132 89.164 89.181 89.276 89.277 89.443 89.445 94.55 94.66 97.112 97.116}} {richtext:font:heading0 {1.0 2.0}} {richtext:font:heading1 {3.0 4.0 8.0 9.0 12.0 13.0 21.0 22.0 28.0 29.0 93.0 93.9}} {richtext:font:heading2 {9.0 9.21 10.287 11.0 13.0 14.0 18.0 19.0 22.0 23.0 25.0 26.0 29.0 30.0 31.0 32.0 34.0 35.0 96.0 96.17 99.0 100.0}} {richtext:font:heading3 {45.0 46.0 49.0 50.0 53.0 54.0 57.0 58.0 61.0 62.0 65.0 66.0 69.0 70.0 73.0 74.0 77.0 78.0 81.0 82.0 85.0 86.0}} {{} {10.248 10.261 12.0 23.0 27.0 28.0}} {jdoc:link:jstools.jdoc {4.57 4.64}} {jdoc:manpage:tclvars {10.131 10.138}} {jdoc:link:jslibraries.jdoc#Usage {10.244 10.261}} {jdoc:link:jslibraries.jdoc {10.265 10.286}} {jdoc:anchorname:Evolution {93.0 94.0}} {jdoc:anchorname:Credits_and_Copyright {12.0 13.0}} {jdoc:anchorname:Introduction {3.0 4.0}} {jdoc:anchorname:Overview {21.0 22.0}} {jdoc:anchorname:Usage {8.0 9.0}} {jdoc:topic:jstools {4.57 4.64}} {jdoc:link:panels/prefs.jdoc {4.111 4.147 23.29 23.65 41.98 41.134}} {jdoc:link:jslibraries.tcl {10.215 10.236}} {jdoc:link:jprefs.tcl.jdoc {26.1 26.11}} {jdoc:anchorname:j:global_pref_panel {28.0 29.0}} {jdoc:link:#j:global_pref_panel {23.0 23.19}}} {{richptr 84.0} {del_from 101.0} {matchend 101.0} {abbrevstart 100.2} {abbrevend 100.2} {insert 1.0} {del_to 4.148} {matchstart 101.0} {anchor 1.0} {emacs_mark 101.0} {current 1.0}}}