| 269 | } |
| 270 | |
| 271 | void CtrlrPanelCanvas::editMenuCopy(const MouseEvent *e) |
| 272 | { |
| 273 | if (getOwner().getSelection() == nullptr) |
| 274 | return; |
| 275 | |
| 276 | ValueTree clipboardTree(Ids::uiPanelClipboardTree); |
| 277 | RectangleList<int> list; |
| 278 | |
| 279 | for (int i=0; i<getOwner().getSelection()->getNumSelected(); i++) |
| 280 | { |
| 281 | CtrlrModulator &m = getOwner().getSelection()->getSelectedItem(i)->getOwner(); |
| 282 | ValueTree modulatorTreeCopy = m.getModulatorTree().createCopy(); |
| 283 | modulatorTreeCopy.removeProperty(Ids::vstIndex, nullptr); |
| 284 | clipboardTree.addChild (modulatorTreeCopy, -1, nullptr); |
| 285 | |
| 286 | list.add (m.getComponent()->getBounds()); |
| 287 | } |
| 288 | |
| 289 | clipboardTree.setProperty ("selectionRect", list.getBounds().toString(),0); |
| 290 | SystemClipboard::copyTextToClipboard (XML2STR(clipboardTree)); |
| 291 | } |
| 292 | |
| 293 | void CtrlrPanelCanvas::cut() |
| 294 | { |
nothing calls this directly
no test coverage detected