drscheme:language-configuration:fill-language-dialog in DrScheme Tools Functions
(drscheme:language-configuration:fill-language-dialog-> drscheme:language-configuration:language-settings?panelbutton-panellanguage-settingre-centermanuals?ok-handler)
panel: (is-a?/cvertical-panel%)
button-panel: (is-a?/carea-container<%>)
language-setting: drscheme:language-configuration:language-settings?
re-center=#f: (or/c false/c (is-a?/c top-level-window<%>))
manuals?=#f: boolean?
ok-handler=void: (symbol? . -> . void?)This procedure accepts two parent panels and fills them with the contents of the language dialog. It is used to include language configuration controls in some larger context in another dialog.
The
panelargument is the main panel where the language controls will be placed. The function adds buttons to thebutton-panelto revert a language to its default settings and to show the details of a language.The
language-settingis the default language to show in the dialog.The
re-centerargument is used when the Show Details button is clicked. If that argument is atop-level-window<%>, the Show Details callback will recenter the window each time it is clicked. Otherwise, the argument is not used.If
manuals?is#fthe usual language dialog (as seen in the start up drscheme window and from the Choose Language dialog created when drscheme is started up) is shown. If it isn't, the dialog does not have the details and on the right-hand side shows the manual ordering for the chosen language. This is used in Help Desk.ok-handleris a function that is in charge of interfacing the OK button. It should accept a symbol message:'enableand'disableto toggle the button, and'to run the desired operation. (The language selection dialog also uses an internalexecute'enable-syncmessage.)