Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv2908/src
Modified Files:
AboutDialog.cpp AudacityApp.cpp
Log Message:
Add -version command line switch
Add ANSI/Unicode to About and -version output
Index: AboutDialog.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/AboutDialog.cpp,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- AboutDialog.cpp 21 Sep 2006 05:45:30 -0000 1.43
+++ AboutDialog.cpp 9 Oct 2006 05:47:07 -0000 1.44
@@ -220,12 +220,14 @@
}
wxString localeStr = wxLocale::GetSystemEncodingName();
+ wxString csetStr = wxUSE_UNICODE ? wxT("(Unicode)") : wxT("(ANSI)");
+
wxString creditStr =
wxT("<html><head><META http-equiv=\"Content-Type\" content=\"text/html;
charset=") +
localeStr +
wxT("\"></head>") +
wxT("<body bgcolor=\"#ffffff\"><font size=1><center>") +
- wxT("<h3>Audacity ® ") + versionStr + wxT("</h3>")+
+ wxT("<h3>Audacity ® ") + versionStr + wxT(" " ) + csetStr +
wxT("</h3>")+
_("A Free Digital Audio Editor") +
wxT("</center><p>") + par1Str +
wxT("<p>") + par2Str +
Index: AudacityApp.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/AudacityApp.cpp,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -d -r1.157 -r1.158
--- AudacityApp.cpp 23 Sep 2006 02:28:00 -0000 1.157
+++ AudacityApp.cpp 9 Oct 2006 05:47:07 -0000 1.158
@@ -595,11 +595,12 @@
// first string.
if (!wxString(wxT("-help")).CmpNoCase(argv[option])) {
- wxPrintf(/* i18n-hint: '-help', '-test' and
+ wxPrintf(/* i18n-hint: '-help', '-version', '-test' and
'-blocksize' need to stay in English. */
_(
"Command-line options supported:\n"
wxT(" -help (this message)\n")
+ wxT(" -version (display Audacity version)\n")
wxT(" -test (run self diagnostics)\n")
wxT(" -blocksize ### (set max disk block size in
bytes)\n\n")
wxT("In addition, specify the name of an audio file or
Audacity project\n")
@@ -627,6 +628,13 @@
exit(0);
}
+ if (!handled && !wxString(wxT("-version")).CmpNoCase(argv[option])) {
+ wxPrintf(wxT("Audacity v%s (%s)\n"),
+ wxT(AUDACITY_VERSION_STRING),
+ (wxUSE_UNICODE ? wxT("Unicode") : wxT("ANSI")));
+ exit(0);
+ }
+
if (argv[option][0] == wxT('-') && !handled) {
wxPrintf(_("Unknown command line option: %s\n"), argv[option]);
exit(0);
-------------------------------------------------------------------------
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