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

Method getSourceFile

Source/Core/CtrlrPanel/CtrlrPanelResource.cpp:203–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203File CtrlrPanelResource::getSourceFile()
204{
205 String resourceSourcePath = getProperty(Ids::resourceSourceFile);
206 if (File::isAbsolutePath(resourceSourcePath))
207 {
208 return (File(resourceSourcePath));
209 }
210 else
211 {
212 return (owner.getOwner().getPanelResourcesDir().getChildFile(resourceSourcePath));
213 }
214}
215
216void CtrlrPanelResource::setSourceFile(const File &sourceFile)
217{

Callers

nothing calls this directly

Calls 5

isAbsolutePathFunction · 0.85
FileClass · 0.85
getPanelResourcesDirMethod · 0.80
getChildFileMethod · 0.45
getOwnerMethod · 0.45

Tested by

no test coverage detected