| 83 | } |
| 84 | |
| 85 | var CtrlrValueTreeEditorItem::getDragSourceDescription () |
| 86 | { |
| 87 | Array <ValueTree> selectedTreeItems; |
| 88 | String returnValue; |
| 89 | |
| 90 | if (getOwnerView()) |
| 91 | { |
| 92 | for (int i=0; i<getOwnerView()->getNumSelectedItems(); i++) |
| 93 | { |
| 94 | CtrlrValueTreeEditorItem *item = dynamic_cast<CtrlrValueTreeEditorItem*>(getOwnerView()->getSelectedItem(i)); |
| 95 | selectedTreeItems.add (item->getTree()); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | if ((returnValue = provider.getDragSourceDescription(selectedTreeItems)) != "") |
| 100 | { |
| 101 | return (returnValue); |
| 102 | } |
| 103 | else |
| 104 | { |
| 105 | for (int i=0; i<selectedTreeItems.size(); i++) |
| 106 | { |
| 107 | returnValue << selectedTreeItems[i].getType().toString() + ";"; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | return (returnValue); |
| 112 | } |
| 113 | |
| 114 | bool CtrlrValueTreeEditorItem::isInterestedInDragSource (const DragAndDropTarget::SourceDetails &dragSourceDetails) |
| 115 | { |
nothing calls this directly
no test coverage detected