15 Handler
This predicate determines if its input is a handler.
Extracts the name from a handler.
Extracts the extension from a handler.
Extracts the handler’s handling function.
This function inserts a format handler.
The string, name names the format handler for use with
handler:find-named-format-handler. If pred is a string,
it is matched with the extension of a filename by
handler:find-format-handler. If pred is a list of
strings, they are each matched with the extension of a filename by
handler:find-format-handler. If it is a function, the filename is
applied to the function and the functions result determines if this is the
handler to use.
The most recently added format handler takes precedence over all other
format handlers.
It finds a handler based on name.
It finds a handler based on filename.
This function creates a frame or re-uses an existing frame to edit a file.
If the preference 'framework:open-here is set to #t, and
(send (group:get-the-frame-group) get-open-here-frame) returns a
frame, the open-here method of that frame is
used to load the file in the existing frame.
Otherwise, it invokes the appropriate format handler to open the file (see
handler:insert-format-handler).
This is a parameter that controls how the framework creates new application
windows.
The default setting is this:
(λ (filename) |
(let ([frame (make-object frame:text-info-file% filename)]) |
(send frame show #t) |
frame)) |
This function queries the user for a filename and opens the file for
editing. It uses
handler:edit-file to open the file, once the
user has chosen it.
This function deletes all of the items in the given menu and adds one menu
item for each recently opened file. These menu items, when selected, call
handler:edit-file with the filename of the recently opened file.
The menu’s size is limited to 10.
Sets the superclass for the recently opened files frame. It must be
derived from frame:standard-menus.
Adds a filename to the list of recently opened files.
Sets the selection of the recently opened file to start and
end.
Sizes the 'framework:recently-opened-files/pos preference list
length to num.