Update of /cvsroot/audacity/audacity-src/src/effects/ladspa
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv23445

Modified Files:
        LadspaEffect.h LadspaEffect.cpp 
Log Message:
Fix localization problems with command chains

Index: LadspaEffect.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/ladspa/LadspaEffect.cpp,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- LadspaEffect.cpp    4 Apr 2007 19:14:51 -0000       1.40
+++ LadspaEffect.cpp    15 Apr 2007 02:23:13 -0000      1.41
@@ -35,6 +35,7 @@
 #include <wx/statbox.h>
 #include <wx/stattext.h>
 #include <wx/textctrl.h>
+#include <wx/tokenzr.h>
 #include <wx/intl.h>
 #include <wx/scrolwin.h>
 
@@ -45,7 +46,7 @@
 LadspaEffect::LadspaEffect(const LADSPA_Descriptor *data)
 {
    mData = data;
-   pluginName = LAT1CTOWX(data->Name);
+   pluginName = LAT1CTOWX(mData->Name);
 
    fInBuffer = NULL;
    fOutBuffer = NULL;
@@ -148,6 +149,21 @@
       return pluginName;
 }
 
+wxString LadspaEffect::GetEffectIdentifier()
+{
+   wxStringTokenizer st(pluginName, wxT(" "));
+   wxString id;
+
+   // CamelCase the name
+   while (st.HasMoreTokens()) {
+      wxString tok = st.GetNextToken();
+
+      id += tok.Left(1).MakeUpper() + tok.Mid(1);
+   }
+
+   return id;
+}
+
 wxString LadspaEffect::GetEffectAction()
 {
    return wxString::Format(_("Performing Effect: %s"), 

Index: LadspaEffect.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/ladspa/LadspaEffect.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- LadspaEffect.h      1 Oct 2006 09:36:39 -0000       1.16
+++ LadspaEffect.h      15 Apr 2007 02:23:13 -0000      1.17
@@ -29,6 +29,8 @@
 
    virtual wxString GetEffectName();
    
+   virtual wxString GetEffectIdentifier();
+   
    virtual wxString GetEffectAction();
 
    virtual int GetEffectFlags() {


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Audacity-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to