Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Source/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ enum CommandIDs {
ToggleDSP,
TogglePresentationMode,
TogglePluginMode,
Compile,
NumItems // <-- the total number of items in this enum
};

Expand Down
1 change: 1 addition & 0 deletions Source/Dialogs/MainMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class MainMenu : public PopupMenu {
menuItems[getMenuItemIndex(MenuItem::SaveAs)]->isActive = hasCanvas;

menuItems[getMenuItemIndex(MenuItem::CompiledMode)]->isTicked = hvccModeEnabled;
menuItems[getMenuItemIndex(MenuItem::Compile)]->isActive = hvccModeEnabled;
}

class IconMenuItem final : public PopupMenu::CustomComponent {
Expand Down
10 changes: 10 additions & 0 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,12 @@ void PluginEditor::getCommandInfo(CommandID const commandID, ApplicationCommandI
result.setActive(true);
break;
}
case CommandIDs::Compile: {
result.setInfo("Compile...", "Open Heavy export dialog", "General", 0);
result.addDefaultKeypress(67, ModifierKeys::commandModifier | ModifierKeys::shiftModifier);
result.setActive(SettingsFile::getInstance()->getProperty<bool>("hvcc_mode"));
break;
}
default:
break;
}
Expand Down Expand Up @@ -1916,6 +1922,10 @@ bool PluginEditor::perform(InvocationInfo const& info)
}
return true;
}
case CommandIDs::Compile: {
Dialogs::showHeavyExportDialog(&openedDialog, this);
return true;
}
Comment on lines +1925 to +1928
default: {
cnv = getCurrentCanvas();
if (!cnv->viewport)
Expand Down