Update of /cvsroot/audacity/audacity-src/src/prefs
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv14733/prefs
Modified Files:
KeyConfigPrefs.cpp
Log Message:
Make Undo/Redo commands show up more natural in Keyboard preferences
Index: KeyConfigPrefs.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/prefs/KeyConfigPrefs.cpp,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- KeyConfigPrefs.cpp 24 Sep 2006 03:43:14 -0000 1.66
+++ KeyConfigPrefs.cpp 26 Sep 2006 20:56:43 -0000 1.67
@@ -292,7 +292,18 @@
unsigned int i;
for(i=0; i<mNames.GetCount(); i++) {
mList->InsertItem( i, wxT("") );
- wxString label = mManager->GetPrefixedLabelFromName(mNames[i]);
+ wxString label;
+
+ // Labels for undo and redo change according to the last command
+ // which can be undone/redone, so give them a special check in order
+ // not to confuse users
+ if (mNames[i] == wxT("Undo"))
+ label = _("Undo");
+ else if (mNames[i] == wxT("Redo"))
+ label = _("Redo");
+ else
+ label = mManager->GetPrefixedLabelFromName(mNames[i]);
+
label = wxMenuItem::GetLabelFromText(label.BeforeFirst('\t'));
wxString key = mManager->GetKeyFromName(mNames[i]);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs