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

Method doubleClickCallback

hi_scripting/scripting/engine/DebugHelpers.cpp:197–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void DebugInformation::doubleClickCallback(const MouseEvent &e, Component* componentToNotify)
198{
199 auto obj = getObject();
200
201 if (auto pc = componentToNotify->findParentComponentOfClass<PanelWithProcessorConnection>())
202 {
203 auto p = pc->getConnectedProcessor();
204 DebugableObject::Helpers::gotoLocation(p, this);
205 return;
206 }
207
208
209
210 if (auto cso = dynamic_cast<ScriptingObject*>(obj))
211 {
212 auto jp = dynamic_cast<Processor*>(cso->getProcessor());
213
214 if (auto sc = dynamic_cast<ScriptingApi::Content::ScriptComponent*>(getObject()))
215 {
216 auto b = jp->getMainController()->getScriptComponentEditBroadcaster();
217 b->setSelection(sc, sendNotification);
218 }
219
220 DebugableObject::Helpers::gotoLocation(jp, this);
221 }
222}
223
224String DebugInformation::getTextForRow(Row r)
225{

Callers 1

mouseUpMethod · 0.45

Calls 5

getConnectedProcessorMethod · 0.45
getProcessorMethod · 0.45
getMainControllerMethod · 0.45
setSelectionMethod · 0.45

Tested by

no test coverage detected