KDE Now! Logo

File Select Window

kfileselect implements most of the features of the KDE-1.0 file select window. This version has been prepared using KDE 1.0/1.1 as a base.

The following list gives the features which are different or missing from the Ktk file select window, in order of importance;

  1. although the file select window honours your current KDE settings for the file dialogue, there is currently no way to change these settings from within Ktk
  2. due to the way filenames are stored in the text windows, filenames with tabs in their name will not be handled correctly
  3. to save scanning the entire passwd file, file owners and groups are displayed in numeric form in the Detail View if running under Tcl 7. If running under Tcl 8 these should be replaced by the symbolic names
  4. the column widths as used in the Contents window are sometimes too wide and very occasionally too narrow
  5. 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...
  6. in non-strict mode some of the toolbar icons have been changed and there is a file-delete button
  7. 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.
Ktk is maintained by Andrew F. Lack

This page was last updated on 22nd March 1999