# HG changeset patch # User Chris Cannam # Date 1227009069 0 # Node ID b07566f7ee84748e264439b764f3427dae74f43d # Parent f60d7ef9bd7a64f1d02c8e25c08a267266eb0a78 * Updates to version and about box diff -r f60d7ef9bd7a -r b07566f7ee84 main/MainWindow.cpp --- a/main/MainWindow.cpp Tue Nov 18 10:30:05 2008 +0000 +++ b/main/MainWindow.cpp Tue Nov 18 11:51:09 2008 +0000 @@ -3546,7 +3546,7 @@ void MainWindow::help() { - openHelpUrl(tr("http://www.sonicvisualiser.org/doc/reference/1.3/en/")); + openHelpUrl(tr("http://www.sonicvisualiser.org/doc/reference/1.4/en/")); } void @@ -3557,121 +3557,139 @@ #ifdef BUILD_DEBUG debug = true; -#endif +#endif // BUILD_DEBUG #ifdef SV_VERSION #ifdef SVNREV version = tr("Release %1 : Revision %2").arg(SV_VERSION).arg(SVNREV); -#else +#else // !SVNREV version = tr("Release %1").arg(SV_VERSION); -#endif -#else +#endif // SVNREV +#else // !SV_VERSION #ifdef SVNREV version = tr("Unreleased : Revision %1").arg(SVNREV); -#endif -#endif +#endif // SVNREV +#endif // SV_VERSION QString aboutText; aboutText += tr("

About Sonic Visualiser

"); - aboutText += tr("

Sonic Visualiser is a program for viewing and exploring audio data for semantic music analysis and annotation.

"); - aboutText += tr("

%1 : %2 configuration

") + aboutText += tr("

Sonic Visualiser is a program for viewing and exploring audio data for semantic music analysis and annotation.
http://www.sonicvisualiser.org/

"); + aboutText += tr("

%1 : %2 configuration

") .arg(version) .arg(debug ? tr("Debug") : tr("Release")); -#ifndef BUILD_STATIC - aboutText += tr("
Using Qt v%1 © Trolltech AS").arg(QT_VERSION_STR); -#else -#ifdef QT_SHARED - aboutText += tr("
Using Qt v%1 © Trolltech AS").arg(QT_VERSION_STR); -#endif -#endif - -#ifdef BUILD_STATIC - aboutText += tr("

Statically linked"); -#ifndef QT_SHARED - aboutText += tr("
With Qt (v%1) © Trolltech AS").arg(QT_VERSION_STR); -#endif + aboutText += ""; + + aboutText += tr("With Qt v%1 © Nokia Corporation").arg(QT_VERSION_STR); + #ifdef HAVE_JACK #ifdef JACK_VERSION - aboutText += tr("
With JACK audio output library (v%1) © Paul Davis and Jack O'Quin").arg(JACK_VERSION); -#else + aboutText += tr("
With JACK audio output library v%1 © Paul Davis and Jack O'Quin").arg(JACK_VERSION); +#else // !JACK_VERSION aboutText += tr("
With JACK audio output library © Paul Davis and Jack O'Quin"); -#endif -#endif +#endif // JACK_VERSION +#endif // HAVE_JACK #ifdef HAVE_PORTAUDIO aboutText += tr("
With PortAudio audio output library © Ross Bencina and Phil Burk"); -#endif +#endif // HAVE_PORTAUDIO #ifdef HAVE_LIBPULSE +#ifdef LIBPULSE_VERSION + aboutText += tr("
With PulseAudio audio output library v%1 © Lennart Poettering and Pierre Ossman").arg(LIBPULSE_VERSION); +#else // !LIBPULSE_VERSION aboutText += tr("
With PulseAudio audio output library © Lennart Poettering and Pierre Ossman"); -#endif +#endif // LIBPULSE_VERSION +#endif // HAVE_LIBPULSE #ifdef HAVE_OGGZ #ifdef OGGZ_VERSION aboutText += tr("
With Ogg file decoder (oggz v%1, fishsound v%2) © CSIRO Australia").arg(OGGZ_VERSION).arg(FISHSOUND_VERSION); -#else +#else // !OGGZ_VERSION aboutText += tr("
With Ogg file decoder © CSIRO Australia"); -#endif -#endif +#endif // OGGZ_VERSION +#endif // HAVE_OGGZ #ifdef HAVE_MAD #ifdef MAD_VERSION - aboutText += tr("
With MAD mp3 decoder (v%1) © Underbit Technologies Inc").arg(MAD_VERSION); -#else + aboutText += tr("
With MAD mp3 decoder v%1 © Underbit Technologies Inc").arg(MAD_VERSION); +#else // !MAD_VERSION aboutText += tr("
With MAD mp3 decoder © Underbit Technologies Inc"); -#endif -#endif +#endif // MAD_VERSION +#endif // HAVE_MAD #ifdef HAVE_SAMPLERATE #ifdef SAMPLERATE_VERSION - aboutText += tr("
With libsamplerate (v%1) © Erik de Castro Lopo").arg(SAMPLERATE_VERSION); -#else + aboutText += tr("
With libsamplerate v%1 © Erik de Castro Lopo").arg(SAMPLERATE_VERSION); +#else // !SAMPLERATE_VERSION aboutText += tr("
With libsamplerate © Erik de Castro Lopo"); -#endif -#endif +#endif // SAMPLERATE_VERSION +#endif // HAVE_SAMPLERATE #ifdef HAVE_SNDFILE #ifdef SNDFILE_VERSION - aboutText += tr("
With libsndfile (v%1) © Erik de Castro Lopo").arg(SNDFILE_VERSION); -#else + aboutText += tr("
With libsndfile v%1 © Erik de Castro Lopo").arg(SNDFILE_VERSION); +#else // !SNDFILE_VERSION aboutText += tr("
With libsndfile © Erik de Castro Lopo"); -#endif -#endif +#endif // SNDFILE_VERSION +#endif // HAVE_SNDFILE #ifdef HAVE_FFTW3F #ifdef FFTW3_VERSION - aboutText += tr("
With FFTW3 (v%1) © Matteo Frigo and MIT").arg(FFTW3_VERSION); -#else + aboutText += tr("
With FFTW3 v%1 © Matteo Frigo and MIT").arg(FFTW3_VERSION); +#else // !FFTW3_VERSION aboutText += tr("
With FFTW3 © Matteo Frigo and MIT"); -#endif -#endif +#endif // FFTW3_VERSION +#endif // HAVE_FFTW3F #ifdef HAVE_RUBBERBAND #ifdef RUBBERBAND_VERSION - aboutText += tr("
With Rubber Band (v%1) © Chris Cannam").arg(RUBBERBAND_VERSION); -#else + aboutText += tr("
With Rubber Band v%1 © Chris Cannam").arg(RUBBERBAND_VERSION); +#else // !RUBBERBAND_VERSION aboutText += tr("
With Rubber Band © Chris Cannam"); -#endif -#endif +#endif // RUBBERBAND_VERSION +#endif // HAVE_RUBBERBAND #ifdef HAVE_VAMP aboutText += tr("
With Vamp plugin support (API v%1, host SDK v%2) © Chris Cannam").arg(VAMP_API_VERSION).arg(VAMP_SDK_VERSION); -#endif +#endif // !HAVE_VAMP aboutText += tr("
With LADSPA plugin support (API v%1) © Richard Furse, Paul Davis, Stefan Westerfeld").arg(LADSPA_VERSION); aboutText += tr("
With DSSI plugin support (API v%1) © Chris Cannam, Steve Harris, Sean Bolton").arg(DSSI_VERSION); +#ifdef RAPTOR_VERSION + aboutText += tr("
With Raptor RDF parser v%1 © Dave Beckett and the University of Bristol").arg(RAPTOR_VERSION); +#else // !RAPTOR_VERSION + aboutText += tr("
With Raptor RDF parser © Dave Beckett and the University of Bristol"); +#endif // RAPTOR_VERSION +#ifdef RASQAL_VERSION + aboutText += tr("
With Rasqal RDF query engine v%1 © Dave Beckett and the University of Bristol").arg(RASQAL_VERSION); +#else // !RASQAL_VERSION + aboutText += tr("
With Rasqal RDF query engine © Dave Beckett and the University of Bristol"); +#endif // RASQAL_VERSION +#ifdef HAVE_REDLAND +#ifdef REDLAND_VERSION + aboutText += tr("
With Redland RDF datastore v%1 © Dave Beckett and the University of Bristol").arg(REDLAND_VERSION); +#else // !REDLAND_VERSION + aboutText += tr("
With Redland RDF datastore © Dave Beckett and the University of Bristol"); +#endif // REDLAND_VERSION +#endif // HAVE_REDLAND + #ifdef HAVE_LIBLO #ifdef LIBLO_VERSION - aboutText += tr("
With liblo Lite OSC library (v%1) © Steve Harris").arg(LIBLO_VERSION); -#else + aboutText += tr("
With liblo Lite OSC library v%1 © Steve Harris").arg(LIBLO_VERSION); +#else // !LIBLO_VERSION aboutText += tr("
With liblo Lite OSC library © Steve Harris").arg(LIBLO_VERSION); +#endif // LIBLO_VERSION + + if (m_oscQueue && m_oscQueue->isOK()) { + aboutText += tr("

The OSC URL for this instance is: \"%1\"").arg(m_oscQueue->getOSCURL()); + } + + aboutText += "

"; +#endif // HAVE_LIBLO + +#ifndef BUILD_STATIC + aboutText.replace(tr("With "), tr("Using ")); #endif - if (m_oscQueue && m_oscQueue->isOK()) { - aboutText += tr("

The OSC URL for this instance is: \"%1\"").arg(m_oscQueue->getOSCURL()); - } -#endif - aboutText += "

"; -#endif aboutText += - "

Sonic Visualiser Copyright © 2005 - 2008 Chris Cannam and " - "Queen Mary, University of London.

" - "

This program is free software; you can redistribute it and/or " + "

Sonic Visualiser Copyright © 2005 - 2008 Chris Cannam and " + "Queen Mary, University of London.

" + "

This program is free software; you can redistribute it and/or " "modify it under the terms of the GNU General Public License as " "published by the Free Software Foundation; either version 2 of the " "License, or (at your option) any later version.
See the file " - "COPYING included with this distribution for more information.

"; + "COPYING included with this distribution for more information.

"; QMessageBox::about(this, tr("About Sonic Visualiser"), aboutText); }