File Select Window
kfileselect implements most of the features of the KDE-1.0
file select window. Version 0.1 of this widget has been prepared using
KDE 1.0 as a base and the behaviour of the file select window from KDE 1.1
has not been tested.
The following list gives the features which are different or missing from the
Ktk file select window, in order of importance;
- there is currently no re-configuration menu. I plan to add a text-only
contents view in a later release
- the column widths as used in the Contents window are sometimes too
wide and very occasionally too narrow
- the folders and contents windows have permanent scrollbars, even when
there is no need. This is, according to the Tix documentation, a bug
with the Tk text widget...
- in non-strict mode some of the toolbar icons have been changed
and there is a file-delete button
- when a filename is selected in the contents window, the highlight bar
does not include the icon.
Usage
The syntax for kfileselect is;
kfileselect widget-path ?options?
The return value is a Tcl list, the first element of which is the pathname
selected by the user. This is an empty string if the user cancelled
the window. The remaining elements of the list are the contents of
the bookmarks menu. This may also be empty.
Options
The options supported kfileselect are as follows;
- -bookmarks list
- the bookmarks menu is initialised from list
- -filter list
- the initial filter patterns are set to list
- -hidden boolean
- sets the initial state of the show hidden files checkbutton
Special Considerations
The file select window changes the working directory of the application.
For this reason having two opened at once in an application will cause
indeterminate results. This may change in a later release.
Ktk is maintained by
Andrew F. Lack
This page was last updated on 20th February 1999