[ENH] DropFilesOnArchiveViewer-as-nk

Ned Konz ned at squeakland.org
Fri Apr 23 01:06:23 UTC 2004


"Change Set:		DragAndDropToArchiveViewer
Date:				31 October 2003
Author:			Adam Spitz
Edited Date:		21 April 2004
Edited By:			Ned Konz

Lets you drag-and-drop from the File List to the Archive Viewer.

Original code by Adam Spitz.

Ned Konz changed it to:

* accept dropping of directories too (possible from a FileList).

* remove any leading path components that are shared with the default
directory (also for 'add directory' button).

That is (assuming the default directory is '/home/ned/Squeak'):

- if you drop a file named: '/home/ned/Squeak/xyz/abc' the resultant
file will be called 'xyz/abc'.
- if you drop a directory named: '/home/ned/Squeak/xyz/abc' containing a
file named 'def' then the resultant file will be called 'xyz/abc/def'.
- if you drop a directory named: '/home/ned/xyz/abc' containing a file
named 'def' then the resultant file will be called 'xyz/abc/def'.
- if you drop a directory named: '/abc' containing a file named 'def'
then the resultant file will be called 'abc/def'.

"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DropFilesOnArchiveViewer-as-nk.cs.gz
Type: application/octet-stream
Size: 2828 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040423/f583de65/DropFilesOnArchiveViewer-as-nk.cs.obj


More information about the Squeak-dev mailing list