1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 22:23:59 +01:00

Re-adding localized menu labels for effects

If you can believe it, this whole big mess is
just to get localized effect labels back into
the menus.

I sure wish I'd had a little bit more time to
finish up all of the effects.  It sure would 
be a lot cleaner (code wise).
This commit is contained in:
lllucius
2014-12-15 21:54:23 +00:00
parent 431166561e
commit 16ca4f17eb
58 changed files with 292 additions and 153 deletions

View File

@@ -198,11 +198,16 @@ public:
return mPath;
}
wxString GetName()
wxString GetSymbol()
{
return mName;
}
wxString GetName()
{
return GetSymbol();
}
wxString GetVendor()
{
return mVendor;
@@ -300,6 +305,11 @@ wxString VSTEffectsModule::GetPath()
return mPath;
}
wxString VSTEffectsModule::GetSymbol()
{
return wxT("VST Effects");
}
wxString VSTEffectsModule::GetName()
{
return _("VST Effects");
@@ -551,7 +561,7 @@ bool VSTEffectsModule::RegisterPlugin(PluginManagerInterface & pm, const wxStrin
return valid;
}
bool VSTEffectsModule::IsPluginValid(const PluginID & ID,
bool VSTEffectsModule::IsPluginValid(const PluginID & WXUNUSED(ID),
const wxString & path)
{
return wxFileName::FileExists(path) || wxFileName::DirExists(path);
@@ -1549,11 +1559,16 @@ wxString VSTEffect::GetPath()
return mPath;
}
wxString VSTEffect::GetName()
wxString VSTEffect::GetSymbol()
{
return mName;
}
wxString VSTEffect::GetName()
{
return GetSymbol();
}
wxString VSTEffect::GetVendor()
{
return mVendor;
@@ -2050,7 +2065,7 @@ bool VSTEffect::ShowInterface(wxWindow *parent, bool forceModal)
return false;
}
bool res = mDialog->ShowModal();
bool res = mDialog->ShowModal() != 0;
mDialog = NULL;
return res;

View File

@@ -76,6 +76,7 @@ class VSTEffect : public EffectClientInterface,
virtual PluginID GetID();
virtual wxString GetPath();
virtual wxString GetSymbol();
virtual wxString GetName();
virtual wxString GetVendor();
virtual wxString GetVersion();
@@ -399,6 +400,7 @@ public:
virtual wxString GetID();
virtual wxString GetPath();
virtual wxString GetSymbol();
virtual wxString GetName();
virtual wxString GetVendor();
virtual wxString GetVersion();