The new FileBrowser is an improved version of the existing FileBrowser tool.
In addition to a tree-oriented presentation of the browser directory,
it offers bookmarks, improved history, multiple document editing (notebook) and other features.
A new fileBrowser can be either started via the
launcher,
or by evaluating the smalltalk expression:
FileBrowserV2 open
in a
workspace
or from within your program.
The above starts the browser in the last visited directory.
To start a browser on some other directory, evaluate:
FileBrowserV2 openOn:'someDirectory'
Typically, after startup, it looks like:
It consists of 3 subviews plus a variety of menu panels and pathFields.
These components are:
- path field
shows the name of the current directory. Also allows changing the directory.
- filter field
allows a file name match pattern to be entered.
- directory tree
displays the directory hierarchy.
- directory contents
shows the selected directory's contents.
- contents view
displays the selected file's contents.
The
directory contents list will only show files matching the pattern in
the pattern field (if a pattern was entered).
To see the contents of a file, simply double-click on the
corresponding name entry in the directory contents list.
If the selected item is a text file, its contents is shown in the
contents-view.
The contents view knows how to present certain files;
for example, if you select a bitmap file, the bitmap image is shown.
All of the above mentioned subviews provide a popup menu, which is
activated by the middle mouse button
(or the right button, if you use a 2-button mouse).
- By the way:
-
pressing an alphabetic key in the fileList will make it scroll
to the next entry whose name starts with that character.
If you press "SHIFT" at the same time, it will
find the previous entry starting with that character.
Typing "RETURN" executes the double click function
on the selected entry.
Also notice that "CURSOR_UP", "CURSOR_DOWN"
"HOME" and "END" keys
too can be used to change the selection, while "PAGE_UP"
and "PAGE_DOWN"
scroll the list.
This is true for all views which show a list to select entries from.
Doc $Revision: 1.4 $ $Date: 2005/02/19 15:48:21 $