1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

Changed the way module code is wrapped by the Introjucer.

This commit is contained in:
Julian Storer 2011-08-15 19:40:50 +01:00
parent 4808d9c318
commit 693132a6e5
252 changed files with 15540 additions and 17524 deletions

View file

@ -494,8 +494,8 @@ bool Project::Item::shouldBeAddedToTargetProject() const
return isFile();
}
bool Project::Item::shouldBeCompiled() const { return getShouldCompileValue().getValue(); }
Value Project::Item::getShouldCompileValue() const { return node.getPropertyAsValue (Ids::compile, getUndoManager()); }
bool Project::Item::shouldBeCompiled() const { return getShouldCompileValue().getValue(); }
Value Project::Item::getShouldCompileValue() const { return node.getPropertyAsValue (Ids::compile, getUndoManager()); }
bool Project::Item::shouldBeAddedToBinaryResources() const { return getShouldAddToResourceValue().getValue(); }
Value Project::Item::getShouldAddToResourceValue() const { return node.getPropertyAsValue (Ids::resource, getUndoManager()); }
@ -503,7 +503,6 @@ Value Project::Item::getShouldAddToResourceValue() const { return node.getPro
Value Project::Item::getShouldInhibitWarningsValue() const { return node.getPropertyAsValue (Ids::noWarnings, getUndoManager()); }
Value Project::Item::getShouldUseStdCallValue() const { return node.getPropertyAsValue (Ids::useStdCall, nullptr); }
String Project::Item::getFilePath() const
{
if (isFile())
@ -838,6 +837,12 @@ Value Project::shouldShowAllModuleFilesInProject (const String& moduleID)
.getPropertyAsValue (Ids::showAllCode, getUndoManagerFor (getModulesNode()));
}
Value Project::shouldCopyModuleFilesLocally (const String& moduleID)
{
return getModulesNode().getChildWithProperty (Ids::id_, moduleID)
.getPropertyAsValue (Ids::useLocalCopy, getUndoManagerFor (getModulesNode()));
}
void Project::addModule (const String& moduleID)
{
if (! isModuleEnabled (moduleID))