[ENH] FileListDnD-nk

ned at bike-nomad.com ned at bike-nomad.com
Thu Jun 19 17:09:58 UTC 2003


from preamble:

"Change Set:		FileListDnD-nk
Date:			19 June 2003
Author:			Ned Konz

rev. 4: made drops into current directory work right.

rev. 3: added keyboard handling.

The TransferMorph now polls the shift state in its step method to update
its copy state (shift pressed = should copy).

And if you hit the Escape key while dragging, it aborts the drag
operation.

rev. 2: made drop on file list be ignored.

Adds drag'n'drop to the FileList2 and FileList. You can drag from the
file list (the upper right list) to the directory/volume list (the upper
left list) to move or copy files.
Hold down the SHIFT key before you start dragging if you want to copy.
You can also drag between two different FileLists.
Use with a single list is probably more useful with FileList2 because
you can see more directories at once.

(note: this CS also incorporates FileList2Pref-nk, which had the
following comments:)

This also adds a Preference (general/useFileList2) that lets you use the
enhanced file browser from the World menu.
It also allows entry of multiple patterns into a file list browser.
You can separate patterns by newlines (like in a FileList2),
or by a semicolon ($;), like in a FileList.

So for instance you could view any .changes or .image files at once.
"

Preferences addPreference: #useFileList2 categories: #(general) default:
true balloonHelp: 'if true, then when you open a file list from the
World menu, it''ll be an enhanced one'!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FileListDnD-nk.cs.gz
Type: application/octet-stream
Size: 6443 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030619/c6592b9d/FileListDnD-nk.cs.obj


More information about the Squeak-dev mailing list