Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 285:b07566f7ee84
* Updates to version and about box
author | Chris Cannam |
---|---|
date | Tue, 18 Nov 2008 11:51:09 +0000 |
parents | d27c322b5d6e |
children | 0662104e6605 |
comparison
equal
deleted
inserted
replaced
284:f60d7ef9bd7a | 285:b07566f7ee84 |
---|---|
3544 } | 3544 } |
3545 | 3545 |
3546 void | 3546 void |
3547 MainWindow::help() | 3547 MainWindow::help() |
3548 { | 3548 { |
3549 openHelpUrl(tr("http://www.sonicvisualiser.org/doc/reference/1.3/en/")); | 3549 openHelpUrl(tr("http://www.sonicvisualiser.org/doc/reference/1.4/en/")); |
3550 } | 3550 } |
3551 | 3551 |
3552 void | 3552 void |
3553 MainWindow::about() | 3553 MainWindow::about() |
3554 { | 3554 { |
3555 bool debug = false; | 3555 bool debug = false; |
3556 QString version = "(unknown version)"; | 3556 QString version = "(unknown version)"; |
3557 | 3557 |
3558 #ifdef BUILD_DEBUG | 3558 #ifdef BUILD_DEBUG |
3559 debug = true; | 3559 debug = true; |
3560 #endif | 3560 #endif // BUILD_DEBUG |
3561 #ifdef SV_VERSION | 3561 #ifdef SV_VERSION |
3562 #ifdef SVNREV | 3562 #ifdef SVNREV |
3563 version = tr("Release %1 : Revision %2").arg(SV_VERSION).arg(SVNREV); | 3563 version = tr("Release %1 : Revision %2").arg(SV_VERSION).arg(SVNREV); |
3564 #else | 3564 #else // !SVNREV |
3565 version = tr("Release %1").arg(SV_VERSION); | 3565 version = tr("Release %1").arg(SV_VERSION); |
3566 #endif | 3566 #endif // SVNREV |
3567 #else | 3567 #else // !SV_VERSION |
3568 #ifdef SVNREV | 3568 #ifdef SVNREV |
3569 version = tr("Unreleased : Revision %1").arg(SVNREV); | 3569 version = tr("Unreleased : Revision %1").arg(SVNREV); |
3570 #endif | 3570 #endif // SVNREV |
3571 #endif | 3571 #endif // SV_VERSION |
3572 | 3572 |
3573 QString aboutText; | 3573 QString aboutText; |
3574 | 3574 |
3575 aboutText += tr("<h3>About Sonic Visualiser</h3>"); | 3575 aboutText += tr("<h3>About Sonic Visualiser</h3>"); |
3576 aboutText += tr("<p>Sonic Visualiser is a program for viewing and exploring audio data for semantic music analysis and annotation.</p>"); | 3576 aboutText += tr("<p>Sonic Visualiser is a program for viewing and exploring audio data for semantic music analysis and annotation.<br><a href=\"http://www.sonicvisualiser.org/\">http://www.sonicvisualiser.org/</a></p>"); |
3577 aboutText += tr("<p>%1 : %2 configuration</p>") | 3577 aboutText += tr("<p><small>%1 : %2 configuration</small></p>") |
3578 .arg(version) | 3578 .arg(version) |
3579 .arg(debug ? tr("Debug") : tr("Release")); | 3579 .arg(debug ? tr("Debug") : tr("Release")); |
3580 | 3580 |
3581 #ifndef BUILD_STATIC | 3581 aboutText += "<small>"; |
3582 aboutText += tr("<br>Using Qt v%1 © Trolltech AS").arg(QT_VERSION_STR); | 3582 |
3583 #else | 3583 aboutText += tr("With Qt v%1 © Nokia Corporation").arg(QT_VERSION_STR); |
3584 #ifdef QT_SHARED | 3584 |
3585 aboutText += tr("<br>Using Qt v%1 © Trolltech AS").arg(QT_VERSION_STR); | |
3586 #endif | |
3587 #endif | |
3588 | |
3589 #ifdef BUILD_STATIC | |
3590 aboutText += tr("<p>Statically linked"); | |
3591 #ifndef QT_SHARED | |
3592 aboutText += tr("<br>With Qt (v%1) © Trolltech AS").arg(QT_VERSION_STR); | |
3593 #endif | |
3594 #ifdef HAVE_JACK | 3585 #ifdef HAVE_JACK |
3595 #ifdef JACK_VERSION | 3586 #ifdef JACK_VERSION |
3596 aboutText += tr("<br>With JACK audio output library (v%1) © Paul Davis and Jack O'Quin").arg(JACK_VERSION); | 3587 aboutText += tr("<br>With JACK audio output library v%1 © Paul Davis and Jack O'Quin").arg(JACK_VERSION); |
3597 #else | 3588 #else // !JACK_VERSION |
3598 aboutText += tr("<br>With JACK audio output library © Paul Davis and Jack O'Quin"); | 3589 aboutText += tr("<br>With JACK audio output library © Paul Davis and Jack O'Quin"); |
3599 #endif | 3590 #endif // JACK_VERSION |
3600 #endif | 3591 #endif // HAVE_JACK |
3601 #ifdef HAVE_PORTAUDIO | 3592 #ifdef HAVE_PORTAUDIO |
3602 aboutText += tr("<br>With PortAudio audio output library © Ross Bencina and Phil Burk"); | 3593 aboutText += tr("<br>With PortAudio audio output library © Ross Bencina and Phil Burk"); |
3603 #endif | 3594 #endif // HAVE_PORTAUDIO |
3604 #ifdef HAVE_LIBPULSE | 3595 #ifdef HAVE_LIBPULSE |
3596 #ifdef LIBPULSE_VERSION | |
3597 aboutText += tr("<br>With PulseAudio audio output library v%1 © Lennart Poettering and Pierre Ossman").arg(LIBPULSE_VERSION); | |
3598 #else // !LIBPULSE_VERSION | |
3605 aboutText += tr("<br>With PulseAudio audio output library © Lennart Poettering and Pierre Ossman"); | 3599 aboutText += tr("<br>With PulseAudio audio output library © Lennart Poettering and Pierre Ossman"); |
3606 #endif | 3600 #endif // LIBPULSE_VERSION |
3601 #endif // HAVE_LIBPULSE | |
3607 #ifdef HAVE_OGGZ | 3602 #ifdef HAVE_OGGZ |
3608 #ifdef OGGZ_VERSION | 3603 #ifdef OGGZ_VERSION |
3609 aboutText += tr("<br>With Ogg file decoder (oggz v%1, fishsound v%2) © CSIRO Australia").arg(OGGZ_VERSION).arg(FISHSOUND_VERSION); | 3604 aboutText += tr("<br>With Ogg file decoder (oggz v%1, fishsound v%2) © CSIRO Australia").arg(OGGZ_VERSION).arg(FISHSOUND_VERSION); |
3610 #else | 3605 #else // !OGGZ_VERSION |
3611 aboutText += tr("<br>With Ogg file decoder © CSIRO Australia"); | 3606 aboutText += tr("<br>With Ogg file decoder © CSIRO Australia"); |
3612 #endif | 3607 #endif // OGGZ_VERSION |
3613 #endif | 3608 #endif // HAVE_OGGZ |
3614 #ifdef HAVE_MAD | 3609 #ifdef HAVE_MAD |
3615 #ifdef MAD_VERSION | 3610 #ifdef MAD_VERSION |
3616 aboutText += tr("<br>With MAD mp3 decoder (v%1) © Underbit Technologies Inc").arg(MAD_VERSION); | 3611 aboutText += tr("<br>With MAD mp3 decoder v%1 © Underbit Technologies Inc").arg(MAD_VERSION); |
3617 #else | 3612 #else // !MAD_VERSION |
3618 aboutText += tr("<br>With MAD mp3 decoder © Underbit Technologies Inc"); | 3613 aboutText += tr("<br>With MAD mp3 decoder © Underbit Technologies Inc"); |
3619 #endif | 3614 #endif // MAD_VERSION |
3620 #endif | 3615 #endif // HAVE_MAD |
3621 #ifdef HAVE_SAMPLERATE | 3616 #ifdef HAVE_SAMPLERATE |
3622 #ifdef SAMPLERATE_VERSION | 3617 #ifdef SAMPLERATE_VERSION |
3623 aboutText += tr("<br>With libsamplerate (v%1) © Erik de Castro Lopo").arg(SAMPLERATE_VERSION); | 3618 aboutText += tr("<br>With libsamplerate v%1 © Erik de Castro Lopo").arg(SAMPLERATE_VERSION); |
3624 #else | 3619 #else // !SAMPLERATE_VERSION |
3625 aboutText += tr("<br>With libsamplerate © Erik de Castro Lopo"); | 3620 aboutText += tr("<br>With libsamplerate © Erik de Castro Lopo"); |
3626 #endif | 3621 #endif // SAMPLERATE_VERSION |
3627 #endif | 3622 #endif // HAVE_SAMPLERATE |
3628 #ifdef HAVE_SNDFILE | 3623 #ifdef HAVE_SNDFILE |
3629 #ifdef SNDFILE_VERSION | 3624 #ifdef SNDFILE_VERSION |
3630 aboutText += tr("<br>With libsndfile (v%1) © Erik de Castro Lopo").arg(SNDFILE_VERSION); | 3625 aboutText += tr("<br>With libsndfile v%1 © Erik de Castro Lopo").arg(SNDFILE_VERSION); |
3631 #else | 3626 #else // !SNDFILE_VERSION |
3632 aboutText += tr("<br>With libsndfile © Erik de Castro Lopo"); | 3627 aboutText += tr("<br>With libsndfile © Erik de Castro Lopo"); |
3633 #endif | 3628 #endif // SNDFILE_VERSION |
3634 #endif | 3629 #endif // HAVE_SNDFILE |
3635 #ifdef HAVE_FFTW3F | 3630 #ifdef HAVE_FFTW3F |
3636 #ifdef FFTW3_VERSION | 3631 #ifdef FFTW3_VERSION |
3637 aboutText += tr("<br>With FFTW3 (v%1) © Matteo Frigo and MIT").arg(FFTW3_VERSION); | 3632 aboutText += tr("<br>With FFTW3 v%1 © Matteo Frigo and MIT").arg(FFTW3_VERSION); |
3638 #else | 3633 #else // !FFTW3_VERSION |
3639 aboutText += tr("<br>With FFTW3 © Matteo Frigo and MIT"); | 3634 aboutText += tr("<br>With FFTW3 © Matteo Frigo and MIT"); |
3640 #endif | 3635 #endif // FFTW3_VERSION |
3641 #endif | 3636 #endif // HAVE_FFTW3F |
3642 #ifdef HAVE_RUBBERBAND | 3637 #ifdef HAVE_RUBBERBAND |
3643 #ifdef RUBBERBAND_VERSION | 3638 #ifdef RUBBERBAND_VERSION |
3644 aboutText += tr("<br>With Rubber Band (v%1) © Chris Cannam").arg(RUBBERBAND_VERSION); | 3639 aboutText += tr("<br>With Rubber Band v%1 © Chris Cannam").arg(RUBBERBAND_VERSION); |
3645 #else | 3640 #else // !RUBBERBAND_VERSION |
3646 aboutText += tr("<br>With Rubber Band © Chris Cannam"); | 3641 aboutText += tr("<br>With Rubber Band © Chris Cannam"); |
3647 #endif | 3642 #endif // RUBBERBAND_VERSION |
3648 #endif | 3643 #endif // HAVE_RUBBERBAND |
3649 #ifdef HAVE_VAMP | 3644 #ifdef HAVE_VAMP |
3650 aboutText += tr("<br>With Vamp plugin support (API v%1, host SDK v%2) © Chris Cannam").arg(VAMP_API_VERSION).arg(VAMP_SDK_VERSION); | 3645 aboutText += tr("<br>With Vamp plugin support (API v%1, host SDK v%2) © Chris Cannam").arg(VAMP_API_VERSION).arg(VAMP_SDK_VERSION); |
3651 #endif | 3646 #endif // !HAVE_VAMP |
3652 aboutText += tr("<br>With LADSPA plugin support (API v%1) © Richard Furse, Paul Davis, Stefan Westerfeld").arg(LADSPA_VERSION); | 3647 aboutText += tr("<br>With LADSPA plugin support (API v%1) © Richard Furse, Paul Davis, Stefan Westerfeld").arg(LADSPA_VERSION); |
3653 aboutText += tr("<br>With DSSI plugin support (API v%1) © Chris Cannam, Steve Harris, Sean Bolton").arg(DSSI_VERSION); | 3648 aboutText += tr("<br>With DSSI plugin support (API v%1) © Chris Cannam, Steve Harris, Sean Bolton").arg(DSSI_VERSION); |
3649 #ifdef RAPTOR_VERSION | |
3650 aboutText += tr("<br>With Raptor RDF parser v%1 © Dave Beckett and the University of Bristol").arg(RAPTOR_VERSION); | |
3651 #else // !RAPTOR_VERSION | |
3652 aboutText += tr("<br>With Raptor RDF parser © Dave Beckett and the University of Bristol"); | |
3653 #endif // RAPTOR_VERSION | |
3654 #ifdef RASQAL_VERSION | |
3655 aboutText += tr("<br>With Rasqal RDF query engine v%1 © Dave Beckett and the University of Bristol").arg(RASQAL_VERSION); | |
3656 #else // !RASQAL_VERSION | |
3657 aboutText += tr("<br>With Rasqal RDF query engine © Dave Beckett and the University of Bristol"); | |
3658 #endif // RASQAL_VERSION | |
3659 #ifdef HAVE_REDLAND | |
3660 #ifdef REDLAND_VERSION | |
3661 aboutText += tr("<br>With Redland RDF datastore v%1 © Dave Beckett and the University of Bristol").arg(REDLAND_VERSION); | |
3662 #else // !REDLAND_VERSION | |
3663 aboutText += tr("<br>With Redland RDF datastore © Dave Beckett and the University of Bristol"); | |
3664 #endif // REDLAND_VERSION | |
3665 #endif // HAVE_REDLAND | |
3666 | |
3654 #ifdef HAVE_LIBLO | 3667 #ifdef HAVE_LIBLO |
3655 #ifdef LIBLO_VERSION | 3668 #ifdef LIBLO_VERSION |
3656 aboutText += tr("<br>With liblo Lite OSC library (v%1) © Steve Harris").arg(LIBLO_VERSION); | 3669 aboutText += tr("<br>With liblo Lite OSC library v%1 © Steve Harris").arg(LIBLO_VERSION); |
3657 #else | 3670 #else // !LIBLO_VERSION |
3658 aboutText += tr("<br>With liblo Lite OSC library © Steve Harris").arg(LIBLO_VERSION); | 3671 aboutText += tr("<br>With liblo Lite OSC library © Steve Harris").arg(LIBLO_VERSION); |
3672 #endif // LIBLO_VERSION | |
3673 | |
3674 if (m_oscQueue && m_oscQueue->isOK()) { | |
3675 aboutText += tr("</small><p><small>The OSC URL for this instance is: \"%1\"").arg(m_oscQueue->getOSCURL()); | |
3676 } | |
3677 | |
3678 aboutText += "</small></p>"; | |
3679 #endif // HAVE_LIBLO | |
3680 | |
3681 #ifndef BUILD_STATIC | |
3682 aboutText.replace(tr("With "), tr("Using ")); | |
3659 #endif | 3683 #endif |
3660 if (m_oscQueue && m_oscQueue->isOK()) { | |
3661 aboutText += tr("<p>The OSC URL for this instance is: \"%1\"").arg(m_oscQueue->getOSCURL()); | |
3662 } | |
3663 #endif | |
3664 aboutText += "</p>"; | |
3665 #endif | |
3666 | 3684 |
3667 aboutText += | 3685 aboutText += |
3668 "<p>Sonic Visualiser Copyright © 2005 - 2008 Chris Cannam and " | 3686 "<p><small>Sonic Visualiser Copyright © 2005 - 2008 Chris Cannam and " |
3669 "Queen Mary, University of London.</p>" | 3687 "Queen Mary, University of London.</small></p>" |
3670 "<p>This program is free software; you can redistribute it and/or " | 3688 "<p><small>This program is free software; you can redistribute it and/or " |
3671 "modify it under the terms of the GNU General Public License as " | 3689 "modify it under the terms of the GNU General Public License as " |
3672 "published by the Free Software Foundation; either version 2 of the " | 3690 "published by the Free Software Foundation; either version 2 of the " |
3673 "License, or (at your option) any later version.<br>See the file " | 3691 "License, or (at your option) any later version.<br>See the file " |
3674 "COPYING included with this distribution for more information.</p>"; | 3692 "COPYING included with this distribution for more information.</small></p>"; |
3675 | 3693 |
3676 QMessageBox::about(this, tr("About Sonic Visualiser"), aboutText); | 3694 QMessageBox::about(this, tr("About Sonic Visualiser"), aboutText); |
3677 } | 3695 } |
3678 | 3696 |
3679 void | 3697 void |