MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / setSourceFile

Method setSourceFile

Source/Core/CtrlrPanel/CtrlrPanelResource.cpp:216–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void CtrlrPanelResource::setSourceFile(const File &sourceFile)
217{
218 File panelResourceDir = owner.getOwner().getPanelResourcesDir();
219 if (sourceFile.isAChildOf(panelResourceDir))
220 {
221 setProperty(Ids::resourceSourceFile, sourceFile.getRelativePathFrom(panelResourceDir), false);
222 }
223 else
224 {
225 setProperty(Ids::resourceSourceFile, sourceFile.getFullPathName(), false);
226 }
227
228}
229
230const String CtrlrPanelResource::getTypeDescription()
231{

Callers 1

moveResourcesMethod · 0.80

Calls 5

setPropertyFunction · 0.85
getPanelResourcesDirMethod · 0.80
isAChildOfMethod · 0.80
getRelativePathFromMethod · 0.80
getOwnerMethod · 0.45

Tested by

no test coverage detected