Multi-selection in lists, 2nd try (enh, goodie, SM or trash ?)

Alain Plantec alain.plantec at univ-brest.fr
Fri Mar 25 18:44:01 UTC 2005


it seems ok now.
tested on 3.7 and 3.8 (6548)
hope it will be useful.
alain


> well, it's trash ...
> sorry but because of a bad cr/lf convertion (I think) attached cs is 
> unuseable.
> I will send it again soon.
> sorry again
> alain


>> hi all,
>>
>> Here is a cs that implements multi-selection for ScrollPanes.
>> It allow handling of (a priori) an unlimited number of  sublists.
>> Each sublist is marked with an "emphasis" (a 
>> ListItemMorphEmphasisModel) which is
>> a textColor, a font and an emphasis code.
>>
>> In this cs one have two sublist kinds : a bold blue and a bold red one.
>> bold blue is for drag and drop, bold red is for item removal.
>> It it designed so that one can easily (I hope) integrate other sublist
>> kinds (as a green italic one for example).
>>
>> How to test it:
>> First, close all your browsers.
>> install the cs from a file list.
>> now you have to close your file list which is no more useable.
>>
>> Bold blue list test : for drag and drop
>> Open a browser. In the selector list, you can collect a blue sublist 
>> with shift+left button (red button?).
>> Now you can drag blue selection (all selectors in one drag)  and drop 
>> it into another category for example.
>> Drag and drop is also working on class list : you can drag and drop a
>> list of classes from one system category to another for example.
>>
>> Bold red list test :  for item removing
>> In order to insert an item in a red sublist : capslock and cmd-x (it's 
>> cmd-X).
>> Item under mouse pointer is inserted in a red  sublist.
>> Then with cmd-x, all red sublist items will be removed (after a 
>> confirmation).
>> for now it work with selectors and class list.
>>
>>
>> alain
>>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: MultiSelectionInLists.10.cs.gz
Type: application/x-gzip
Size: 11080 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20050325/6c7510a1/MultiSelectionInLists.10.cs.bin


More information about the Squeak-dev mailing list