1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-24 17:41:13 +01:00

EXPERIMENTAL_EFFECT_MANAGEMENT

On a reset preferences, this adds the default built in effects only.  The effects menu now has a 'More...' as its last item, and the list of plugins is invoked there.  We can add from that list to the menus from that.
This commit is contained in:
James Crook
2015-04-25 19:05:39 +01:00
parent f3f7dca595
commit 9bc32b0e6b
5 changed files with 96 additions and 3 deletions

View File

@@ -1011,6 +1011,12 @@ void AudacityProject::CreateMenusAndCommands()
EffectTypeProcess,
AudioIONotBusyFlag | TimeSelectedFlag | WaveTracksSelectedFlag,
TracksExistFlag | IsRealtimeNotActiveFlag);
#ifdef EXPERIMENTAL_EFFECT_MANAGEMENT
c->AddSeparator();
// We could say Manage Effects on the menu, but More... is more intuitive.
c->AddItem(wxT("ManageEffects"), _("&More..."), FN(OnManageEffects));
#endif
c->EndMenu();
@@ -3274,6 +3280,14 @@ void AudacityProject::OnRepeatLastEffect(int WXUNUSED(index))
}
}
void AudacityProject::OnManageEffects()
{
//gPrefs->Write( wxT("/Plugins/Rescan"), true);
//gPrefs->Read(wxT("/Plugins/CheckForUpdates"), &doCheck, true);
PluginManager::Get().CheckForUpdates(kPROMPT_TO_ADD_EFFECTS);
RebuildMenuBar();
}
void AudacityProject::OnStereoToMono(int WXUNUSED(index))
{
OnEffect(EffectManager::Get().GetEffectByIdentifier(wxT("StereoToMono")),