24 Preferences
| ||||||||||||||
Like put-preferences, but has more sophisticated error handling. In particular, it
waits for three consecutive failures before informing the user
gives the user the opportunity to “steal” the lockfile after the third failure, and
when failures occur, it remembers what its arguments were and if any preference save eventually succeeds, all of the past failures are also written at that point.
(preferences:add-panel labels f) → void? | |||||||||||||||
|
preferences:add-preference-panel adds the result of f with name labels to the preferences dialog box.
The labels determine where this preference panel is placed in the dialog. If the list is just one string, the preferences panel is placed at the top level of the dialog. If there are more strings, a hierarchy of nested panels is created and the new panel is added at the end. If multiple calls to preferences:add-preference-panel pass the same prefix of strings, those panels are placed in the same children.
When the preference dialog is opened for the first time, the function f is called with a panel, and f is expected to add a new child panel to it and add whatever preferences configuration controls it wants to that panel. Then, f’s should return the panel it added.
Adds a preferences panel for configuring options related to editing.
Adds a preferences panel for configuring options relating to warnings.
Adds a preferences panel for configuring options related to Scheme.
proc : ((is-a?/c vertical-panel%) . -> . void?) |
Saves proc until the preferences panel is created, when it is called with the Misc. panel to add new children to the panel.
proc : ((is-a?/c vertical-panel%) . -> . void?) |
Saves proc until the preferences panel is created, when it is called with the Scheme preferences panel to add new children to the panel.
proc : ((is-a?/c vertical-panel%) . -> . void?) |
Saves proc until the preferences panel is created, when it is called with the Echeme preferences panel to add new children to the panel.
Adds a font selection preferences panel to the preferences dialog.
Shows the preferences dialog.
Hides the preferences dialog.
Registers cb. Next time the user clicks the OK button the preferences dialog, all of the cb functions are called, assuming that each of the callbacks passed to preferences:add-can-close-dialog-callback succeed.
Registers cb. Next time the user clicks the OK button the preferences dialog, all of the cb functions are called. If any of them return #f, the dialog is not closed.
See also preferences:add-on-close-dialog-callback.