mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Added new start page window
This commit is contained in:
parent
4c95c227f6
commit
3283f2224a
107 changed files with 2475 additions and 3452 deletions
|
|
@ -157,12 +157,14 @@ void HeaderComponent::updateExporters()
|
|||
int i = 0;
|
||||
for (Project::ExporterIterator exporter (*project); exporter.next(); ++i)
|
||||
{
|
||||
exporterBox.addItem (exporter->getName(), i + 1);
|
||||
auto exporterName = exporter->getUniqueName();
|
||||
|
||||
if (selectedExporter != nullptr && exporter->getName() == selectedExporter->getName())
|
||||
exporterBox.addItem (exporterName, i + 1);
|
||||
|
||||
if (selectedExporter != nullptr && exporterName == selectedExporter->getUniqueName())
|
||||
exporterBox.setSelectedId (i + 1);
|
||||
|
||||
if (exporter->getName().contains (ProjectExporter::getCurrentPlatformExporterName()) && preferredExporterIndex == -1)
|
||||
if (exporterName.contains (ProjectExporter::getCurrentPlatformExporterTypeInfo().displayName) && preferredExporterIndex == -1)
|
||||
preferredExporterIndex = i;
|
||||
}
|
||||
|
||||
|
|
@ -209,7 +211,7 @@ bool HeaderComponent::canCurrentExporterLaunchProject() const
|
|||
if (auto selectedExporter = getSelectedExporter())
|
||||
{
|
||||
for (Project::ExporterIterator exporter (*project); exporter.next();)
|
||||
if (exporter->canLaunchProject() && exporter->getName() == selectedExporter->getName())
|
||||
if (exporter->canLaunchProject() && exporter->getUniqueName() == selectedExporter->getUniqueName())
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -305,13 +307,13 @@ void HeaderComponent::updateExporterButton()
|
|||
{
|
||||
if (auto selectedExporter = getSelectedExporter())
|
||||
{
|
||||
auto selectedName = selectedExporter->getName();
|
||||
auto selectedName = selectedExporter->getUniqueName();
|
||||
|
||||
for (auto info : ProjectExporter::getExporterTypes())
|
||||
for (auto info : ProjectExporter::getExporterTypeInfos())
|
||||
{
|
||||
if (selectedName.contains (info.name))
|
||||
if (selectedName.contains (info.displayName))
|
||||
{
|
||||
saveAndOpenInIDEButton.setImage (info.getIcon());
|
||||
saveAndOpenInIDEButton.setImage (info.icon);
|
||||
saveAndOpenInIDEButton.repaint();
|
||||
saveAndOpenInIDEButton.setEnabled (canCurrentExporterLaunchProject());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue