MCPcopy Create free account
hub / github.com/christophhart/HISE / addToSelection

Method addToSelection

hi_scripting/scripting/scriptnode/api/DspNetwork.cpp:1024–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1022}
1023
1024void DspNetwork::addToSelection(NodeBase* node, ModifierKeys mods)
1025{
1026 auto pNode = node->getParentNode();
1027
1028 while (mods.isAnyModifierKeyDown() && pNode != nullptr)
1029 {
1030 if (isSelected(pNode))
1031 return;
1032
1033 pNode = pNode->getParentNode();
1034 }
1035
1036 if(selection.getSelectedItem(0) == node && selection.getNumSelected() == 1)
1037 selection.deselectAll();
1038 else
1039 selection.addToSelectionBasedOnModifiers(node, mods);
1040}
1041
1042
1043void DspNetwork::zoomToSelection(Component* c)

Callers 15

rebuildMethod · 0.45
rebuildAndRecompileMethod · 0.45
showAllOccurrencesMethod · 0.45
buttonClickedMethod · 0.45
keyPressedMethod · 0.45
mouseUpMethod · 0.45
selectAndScrollToNodeMethod · 0.45
freezeNodeMethod · 0.45
unfreezeNodeMethod · 0.45
addNodeAndCloseMethod · 0.45
bookmarkUpdatedMethod · 0.45
addButtonMethod · 0.45

Calls 6

isSelectedFunction · 0.85
getSelectedItemMethod · 0.80
getParentNodeMethod · 0.45
getNumSelectedMethod · 0.45
deselectAllMethod · 0.45

Tested by

no test coverage detected