[vwnc] Drag and Drop for methods and categories in RB

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Drag and Drop for methods and categories in RB

Stefan Schmiedl
Every so often RB trips me up when I want to drag the current method to
another category, as the mouse-down event deselects the message name
and the remaining dotted frame won't let itself be dragged.

While I expect that messing with mouse-down and drag-detection sequence
might be somewhat bothersome, my problem would be nicely prevented by
changing the "toggle selection" action of mouse-down to "select".

Where do I need to prod and poke to make this happen?

Thanks,
s.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Drag and Drop for methods and categories in RB

Stefan Schmiedl
Stefan Schmiedl (2008-10-24 10:57):

> Where do I need to prod and poke to make this happen?

found it ...

MultiSelectionSequenceView>>useSingleSelectionIndex

change

  (self selections size = 1 and: [self isSelected: anIndex])
    ifTrue: [^self retractSelectionIndex: anIndex].

to

  (self selections size = 1 and: [self isSelected: anIndex])
    ifTrue: [^self].

Deselecting still works with Ctrl-Click, which is even consistent
with the way other apps handle lists.

just making smalltalk,
s.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc