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

Method addFileUnchecked

JUCE/extras/Projucer/Source/Project/jucer_Project.cpp:1895–1908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1893}
1894
1895void Project::Item::addFileUnchecked (const File& file, int insertIndex, const bool shouldCompile)
1896{
1897 Item item (project, ValueTree (Ids::FILE), belongsToModule);
1898 item.initialiseMissingProperties();
1899 item.getNameValue() = file.getFileName();
1900 item.getShouldCompileValue() = shouldCompile && file.hasFileExtension (fileTypesToCompileByDefault);
1901 item.getShouldAddToBinaryResourcesValue() = project.shouldBeAddedToBinaryResourcesByDefault (file);
1902
1903 if (canContain (item))
1904 {
1905 item.setFile (file);
1906 addChild (item, insertIndex);
1907 }
1908}
1909
1910bool Project::Item::addRelativeFile (const build_tools::RelativePath& file, int insertIndex, bool shouldCompile)
1911{

Callers

nothing calls this directly

Calls 8

addChildFunction · 0.85
getNameValueMethod · 0.80
getShouldCompileValueMethod · 0.80
getFileNameMethod · 0.45
hasFileExtensionMethod · 0.45
setFileMethod · 0.45

Tested by

no test coverage detected