| 1893 | } |
| 1894 | |
| 1895 | void 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 | |
| 1910 | bool Project::Item::addRelativeFile (const build_tools::RelativePath& file, int insertIndex, bool shouldCompile) |
| 1911 | { |
nothing calls this directly
no test coverage detected