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

Alain Plantec alain.plantec at univ-brest.fr
Fri Mar 25 15:09:22 UTC 2005


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 green italic for example.

How to test it:
First, close all your browser.
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).
then item under mouse pointer is inserted in a red  sublist.
Then with cmd-x, all red sublist items will be removed.
for now it work with selectors and class list.

alain



 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: MultiSelectionInLists.9.cs.gz
Type: application/x-tar
Size: 11222 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20050325/b7ee187f/MultiSelectionInLists.9.cs.tar


More information about the Squeak-dev mailing list