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

Method addRelativeFile

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

Source from the content-addressed store, hash-verified

1908}
1909
1910bool Project::Item::addRelativeFile (const build_tools::RelativePath& file, int insertIndex, bool shouldCompile)
1911{
1912 Item item (project, ValueTree (Ids::FILE), belongsToModule);
1913 item.initialiseMissingProperties();
1914 item.getNameValue() = file.getFileName();
1915 item.getShouldCompileValue() = shouldCompile;
1916 item.getShouldAddToBinaryResourcesValue() = project.shouldBeAddedToBinaryResourcesByDefault (file);
1917
1918 if (canContain (item))
1919 {
1920 item.setFile (file);
1921 addChild (item, insertIndex);
1922 return true;
1923 }
1924
1925 return false;
1926}
1927
1928Icon Project::Item::getIcon (bool isOpen) const
1929{

Callers 1

addFileWithGroupsFunction · 0.80

Calls 7

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

Tested by

no test coverage detected