drag and drop cleanup
authorClaus Gittinger <cg@exept.de>
Fri, 13 Oct 2006 17:58:13 +0200
changeset 2117 3d456b890124
parent 2116 90fc11105f36
child 2118 caee73c7b7dd
drag and drop cleanup
UIPainter.st
--- a/UIPainter.st	Fri Oct 13 17:58:10 2006 +0200
+++ b/UIPainter.st	Fri Oct 13 17:58:13 2006 +0200
@@ -4871,32 +4871,70 @@
 
 !UIPainter::TreeView methodsFor:'drag & drop'!
 
-canDrop:aCollectionOfDropObjects
+canDrop:aDropContext
     "can drop ? -> delegate to canvas"
 
-    ^ self canvas canDrop:aCollectionOfDropObjects
+    ^ self canvas canDrop:aDropContext
+
+    "Modified: / 13-10-2006 / 16:08:43 / cg"
 !
 
-canDrop:aCollectionOfDropObjects at:aPoint
+canDrop:aDropContext at:aPoint
     "can drop ? -> delegate to canvas"
 
-    ^ self canvas canDrop:aCollectionOfDropObjects at:aPoint
+    ^ self canvas canDrop:aDropContext at:aPoint
 
     "Created: / 13-10-2006 / 12:35:53 / cg"
+    "Modified: / 13-10-2006 / 16:08:46 / cg"
 !
 
-drop:aCollectionOfDropObjects
+canDropObjects:aCollectionOfDropObjects
+    "can drop ? -> delegate to canvas"
+
+    ^ self canvas canDropObjects:aCollectionOfDropObjects
+
+    "Created: / 13-10-2006 / 16:08:31 / cg"
+!
+
+canDropObjects:aCollectionOfDropObjects at:aPoint
+    "can drop ? -> delegate to canvas"
+
+    ^ self canvas canDropObjects:aCollectionOfDropObjects at:aPoint
+
+    "Created: / 13-10-2006 / 16:08:35 / cg"
+!
+
+drop:aDropContext
     "drop objects -> delegate to canvas"
 
-    self canvas drop:aCollectionOfDropObjects
+    self canvas drop:aDropContext
 
     "Created: / 13-10-2006 / 12:35:59 / cg"
+    "Modified: / 13-10-2006 / 16:09:04 / cg"
 !
 
-drop:aCollectionOfDropObjects at:aPoint
+drop:aDropContext at:aPoint
+    "drop objects -> delegate to canvas"
+
+    self canvas drop:aDropContext at:aPoint
+
+    "Modified: / 13-10-2006 / 16:09:07 / cg"
+!
+
+dropObjects:aCollectionOfDropObjects
     "drop objects -> delegate to canvas"
 
-    self canvas drop:aCollectionOfDropObjects at:aPoint
+    self canvas dropObjects:aCollectionOfDropObjects
+
+    "Created: / 13-10-2006 / 16:08:51 / cg"
+!
+
+dropObjects:aCollectionOfDropObjects at:aPoint
+    "drop objects -> delegate to canvas"
+
+    self canvas dropObjects:aCollectionOfDropObjects at:aPoint
+
+    "Created: / 13-10-2006 / 16:08:56 / cg"
 ! !
 
 !UIPainter::TreeView methodsFor:'enumerating'!