1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Deprecate the CLion exporter

This commit is contained in:
Tom Poole 2020-10-23 16:57:15 +01:00
parent 6e02c45d37
commit 336398893d
3 changed files with 51 additions and 9 deletions

View file

@ -653,6 +653,7 @@ Result Project::loadDocument (const File& file)
setChangedFlag (false);
updateExporterWarnings();
updateLicenseWarning();
return Result::ok();
@ -828,6 +829,20 @@ void Project::updateModuleWarnings()
updateModuleNotFoundWarning (moduleNotFound);
}
void Project::updateExporterWarnings()
{
auto isClionPresent = [this]()
{
for (ExporterIterator exporter (*this); exporter.next();)
if (exporter->isCLion())
return true;
return false;
}();
updateCLionWarning (isClionPresent);
}
void Project::updateCppStandardWarning (bool showWarning)
{
if (showWarning)
@ -893,6 +908,14 @@ void Project::updateOldProjucerWarning (bool showWarning)
removeProjectMessage (ProjectMessages::Ids::oldProjucer);
}
void Project::updateCLionWarning (bool showWarning)
{
if (showWarning)
addProjectMessage (ProjectMessages::Ids::cLion, {});
else
removeProjectMessage (ProjectMessages::Ids::cLion);
}
void Project::updateModuleNotFoundWarning (bool showWarning)
{
if (showWarning)
@ -1050,6 +1073,8 @@ void Project::valueTreeChildAdded (ValueTree& parent, ValueTree& child)
if (child.getType() == Ids::MODULE)
updateModuleWarnings();
else if (parent.getType() == Ids::EXPORTFORMATS)
updateExporterWarnings();
changed();
}
@ -1060,6 +1085,8 @@ void Project::valueTreeChildRemoved (ValueTree& parent, ValueTree& child, int in
if (child.getType() == Ids::MODULE)
updateModuleWarnings();
else if (parent.getType() == Ids::EXPORTFORMATS)
updateExporterWarnings();
changed();
}