Better resolution than r13716

The hairbrained "solution" I came up with in r13716
"worked" but it was simply unnecessary and this is
what I should have just done to begin with.

The previous "solution" actually caused some display
issues in the menus.
This commit is contained in:
lllucius 2014-12-08 03:11:20 +00:00
parent 0c51333407
commit 814ed57a68
13 changed files with 14 additions and 37 deletions

View File

@ -42,7 +42,7 @@ class EffectChangePitch : public EffectSoundTouch
}
virtual wxString GetEffectIdentifier() {
return wxString(wxT("ChangePitch"));
return wxString(wxT("Change Pitch"));
}
virtual wxString GetEffectAction() {

View File

@ -40,7 +40,7 @@ class EffectChangeSpeed : public Effect
}
virtual wxString GetEffectIdentifier() {
return wxString(wxT("ChangeSpeed"));
return wxString(wxT("Change Speed"));
}
virtual wxString GetEffectAction() {

View File

@ -42,7 +42,7 @@ class EffectChangeTempo : public EffectSoundTouch {
}
virtual wxString GetEffectIdentifier() {
return wxString(wxT("ChangeTempo"));
return wxString(wxT("Change Tempo"));
}
virtual wxString GetEffectAction() {

View File

@ -49,7 +49,7 @@ public:
}
virtual wxString GetEffectIdentifier() {
return wxString(wxT("ClickRemoval"));
return wxString(wxT("Click Removal"));
}
virtual wxString GetEffectAction() {

View File

@ -48,7 +48,7 @@ class EffectDtmf : public Generator {
}
virtual wxString GetEffectIdentifier() {
return wxString(wxT("DTMFTone"));
return wxString(wxT("DTMF Tones"));
}
virtual wxString GetEffectDescription() {

View File

@ -175,30 +175,7 @@ wxString Effect::GetName()
return mClient->GetName();
}
// Break up identifier into words based on caps
//
// EffectManager::GetEffectIdentifier() CamelCases identifiers based on
// blank delimited words. But not all legacy effects have blank delimted
// words and were manually CamelCased. So use that to break up the ident
// into words
//
// This is only temporary and will go away when the legacy effects
// get converted.
//
wxString ident = GetEffectIdentifier();
wxString name;
for (size_t i = 0, cnt = ident.Len(); i < cnt; i++)
{
wxChar c = ident.GetChar(i);
if (wxIsupper(c) && i != 0)
{
name += wxT(' ');
}
name += c;
}
return name;
return GetEffectIdentifier();
}
wxString Effect::GetVendor()

View File

@ -31,7 +31,7 @@ class EffectFadeIn: public EffectSimpleMono {
}
virtual wxString GetEffectIdentifier() {
return wxString(wxT("FadeIn"));
return wxString(wxT("Fade In"));
}
virtual wxString GetEffectAction() {
@ -65,7 +65,7 @@ class EffectFadeOut:public EffectSimpleMono {
}
virtual wxString GetEffectIdentifier() {
return wxString(wxT("FadeOut"));
return wxString(wxT("Fade Out"));
}
virtual wxString GetEffectAction() {

View File

@ -46,7 +46,7 @@ class EffectFindClipping:public Effect
virtual wxString GetEffectIdentifier()
{
return wxString(wxT("FindClipping"));
return wxString(wxT("Find Clipping"));
}
virtual wxString GetEffectAction()

View File

@ -432,7 +432,7 @@ std::set<wxString> EffectNoiseReduction::GetEffectCategories()
wxString EffectNoiseReduction::GetEffectIdentifier()
{
return wxString(wxT("NoiseReduction"));
return wxString(wxT("Noise Reduction"));
}
wxString EffectNoiseReduction::GetEffectAction()

View File

@ -44,7 +44,7 @@ public:
}
virtual wxString GetEffectIdentifier() {
return wxString(wxT("NoiseRemoval"));
return wxString(wxT("Noise Removal"));
}
virtual wxString GetEffectAction() {

View File

@ -31,7 +31,7 @@ public:
// Used internally, users will not see this. Do not translate.
virtual wxString GetEffectIdentifier() {
return wxT("StereoToMono");
return wxT("Stereo To Mono");
}
virtual wxString GetEffectAction() {

View File

@ -40,7 +40,7 @@ class EffectTimeScale : public EffectSBSMS {
}
virtual wxString GetEffectIdentifier() {
return wxString(wxT("TimeScale"));
return wxString(wxT("Time Scale"));
}
virtual wxString GetEffectAction() {

View File

@ -44,7 +44,7 @@ public:
}
virtual wxString GetEffectIdentifier() {
return wxString(wxT("TruncateSilence"));
return wxString(wxT("Truncate Silence"));
}
virtual wxString GetEffectAction() {