comparison main/MainWindow.cpp @ 93:14cc0a78f340

...
author Chris Cannam
date Thu, 25 Jan 2007 16:26:49 +0000
parents 7005d8a9f0e0
children 2678a1f132d2
comparison
equal deleted inserted replaced
92:52409ab73526 93:14cc0a78f340
2732 } else { 2732 } else {
2733 if (!QFileInfo(svDir).isDir()) return false; 2733 if (!QFileInfo(svDir).isDir()) return false;
2734 } 2734 }
2735 2735
2736 // This name doesn't have to be unguessable 2736 // This name doesn't have to be unguessable
2737 2737 #ifndef _WIN32
2738 QString fname = QString("tmp-%1-%2.sv") 2738 QString fname = QString("tmp-%1-%2.sv")
2739 .arg(QDateTime::currentDateTime().toString("yyyyMMddhhmmsszzz")) 2739 .arg(QDateTime::currentDateTime().toString("yyyyMMddhhmmsszzz"))
2740 .arg(QProcess().pid()); 2740 .arg(QProcess().pid());
2741 #else
2742 QString fname = QString("tmp-%1.sv")
2743 .arg(QDateTime::currentDateTime().toString("yyyyMMddhhmmsszzz"));
2744 #endif
2741 QString fpath = QDir(svDir).filePath(fname); 2745 QString fpath = QDir(svDir).filePath(fname);
2742 if (saveSessionFile(fpath)) { 2746 if (saveSessionFile(fpath)) {
2743 m_recentFiles.addFile(fpath); 2747 m_recentFiles.addFile(fpath);
2744 return true; 2748 return true;
2745 } else { 2749 } else {
4320 aboutText += tr("<p>Statically linked"); 4324 aboutText += tr("<p>Statically linked");
4321 #ifndef QT_SHARED 4325 #ifndef QT_SHARED
4322 aboutText += tr("<br>With Qt (v%1) &copy; Trolltech AS").arg(QT_VERSION_STR); 4326 aboutText += tr("<br>With Qt (v%1) &copy; Trolltech AS").arg(QT_VERSION_STR);
4323 #endif 4327 #endif
4324 #ifdef HAVE_JACK 4328 #ifdef HAVE_JACK
4329 #ifdef JACK_VERSION
4325 aboutText += tr("<br>With JACK audio output (v%1) &copy; Paul Davis and Jack O'Quin").arg(JACK_VERSION); 4330 aboutText += tr("<br>With JACK audio output (v%1) &copy; Paul Davis and Jack O'Quin").arg(JACK_VERSION);
4331 #else
4332 aboutText += tr("<br>With JACK audio output &copy; Paul Davis and Jack O'Quin");
4333 #endif
4326 #endif 4334 #endif
4327 #ifdef HAVE_PORTAUDIO 4335 #ifdef HAVE_PORTAUDIO
4328 aboutText += tr("<br>With PortAudio audio output &copy; Ross Bencina and Phil Burk"); 4336 aboutText += tr("<br>With PortAudio audio output &copy; Ross Bencina and Phil Burk");
4329 #endif 4337 #endif
4330 #ifdef HAVE_OGGZ 4338 #ifdef HAVE_OGGZ
4339 #ifdef OGGZ_VERSION
4331 aboutText += tr("<br>With Ogg file decoder (oggz v%1, fishsound v%2) &copy; CSIRO Australia").arg(OGGZ_VERSION).arg(FISHSOUND_VERSION); 4340 aboutText += tr("<br>With Ogg file decoder (oggz v%1, fishsound v%2) &copy; CSIRO Australia").arg(OGGZ_VERSION).arg(FISHSOUND_VERSION);
4341 #else
4342 aboutText += tr("<br>With Ogg file decoder &copy; CSIRO Australia");
4343 #endif
4332 #endif 4344 #endif
4333 #ifdef HAVE_MAD 4345 #ifdef HAVE_MAD
4346 #ifdef MAD_VERSION
4334 aboutText += tr("<br>With MAD mp3 decoder (v%1) &copy; Underbit Technologies Inc").arg(MAD_VERSION); 4347 aboutText += tr("<br>With MAD mp3 decoder (v%1) &copy; Underbit Technologies Inc").arg(MAD_VERSION);
4348 #else
4349 aboutText += tr("<br>With MAD mp3 decoder &copy; Underbit Technologies Inc");
4350 #endif
4335 #endif 4351 #endif
4336 #ifdef HAVE_SAMPLERATE 4352 #ifdef HAVE_SAMPLERATE
4353 #ifdef SAMPLERATE_VERSION
4337 aboutText += tr("<br>With libsamplerate (v%1) &copy; Erik de Castro Lopo").arg(SAMPLERATE_VERSION); 4354 aboutText += tr("<br>With libsamplerate (v%1) &copy; Erik de Castro Lopo").arg(SAMPLERATE_VERSION);
4355 #else
4356 aboutText += tr("<br>With libsamplerate &copy; Erik de Castro Lopo");
4357 #endif
4338 #endif 4358 #endif
4339 #ifdef HAVE_SNDFILE 4359 #ifdef HAVE_SNDFILE
4360 #ifdef SNDFILE_VERSION
4340 aboutText += tr("<br>With libsndfile (v%1) &copy; Erik de Castro Lopo").arg(SNDFILE_VERSION); 4361 aboutText += tr("<br>With libsndfile (v%1) &copy; Erik de Castro Lopo").arg(SNDFILE_VERSION);
4362 #else
4363 aboutText += tr("<br>With libsndfile &copy; Erik de Castro Lopo");
4364 #endif
4341 #endif 4365 #endif
4342 #ifdef HAVE_FFTW3 4366 #ifdef HAVE_FFTW3
4367 #ifdef FFTW3_VERSION
4343 aboutText += tr("<br>With FFTW3 (v%1) &copy; Matteo Frigo and MIT").arg(FFTW3_VERSION); 4368 aboutText += tr("<br>With FFTW3 (v%1) &copy; Matteo Frigo and MIT").arg(FFTW3_VERSION);
4369 #else
4370 aboutText += tr("<br>With FFTW3 &copy; Matteo Frigo and MIT");
4371 #endif
4344 #endif 4372 #endif
4345 #ifdef HAVE_VAMP 4373 #ifdef HAVE_VAMP
4346 aboutText += tr("<br>With Vamp plugin support (API v%1, SDK v%2) &copy; Chris Cannam").arg(VAMP_API_VERSION).arg(VAMP_SDK_VERSION); 4374 aboutText += tr("<br>With Vamp plugin support (API v%1, SDK v%2) &copy; Chris Cannam").arg(VAMP_API_VERSION).arg(VAMP_SDK_VERSION);
4347 #endif 4375 #endif
4348 aboutText += tr("<br>With LADSPA plugin support (API v%1) &copy; Richard Furse, Paul Davis, Stefan Westerfeld").arg(LADSPA_VERSION); 4376 aboutText += tr("<br>With LADSPA plugin support (API v%1) &copy; Richard Furse, Paul Davis, Stefan Westerfeld").arg(LADSPA_VERSION);
4349 aboutText += tr("<br>With DSSI plugin support (API v%1) &copy; Chris Cannam, Steve Harris, Sean Bolton").arg(DSSI_VERSION); 4377 aboutText += tr("<br>With DSSI plugin support (API v%1) &copy; Chris Cannam, Steve Harris, Sean Bolton").arg(DSSI_VERSION);
4350 #ifdef HAVE_LIBLO 4378 #ifdef HAVE_LIBLO
4379 #ifdef LIBLO_VERSION
4351 aboutText += tr("<br>With liblo Lite OSC library (v%1) &copy; Steve Harris").arg(LIBLO_VERSION); 4380 aboutText += tr("<br>With liblo Lite OSC library (v%1) &copy; Steve Harris").arg(LIBLO_VERSION);
4381 #else
4382 aboutText += tr("<br>With liblo Lite OSC library &copy; Steve Harris").arg(LIBLO_VERSION);
4383 #endif
4352 if (m_oscQueue && m_oscQueue->isOK()) { 4384 if (m_oscQueue && m_oscQueue->isOK()) {
4353 aboutText += tr("<p>The OSC URL for this instance is: \"%1\"").arg(m_oscQueue->getOSCURL()); 4385 aboutText += tr("<p>The OSC URL for this instance is: \"%1\"").arg(m_oscQueue->getOSCURL());
4354 } 4386 }
4355 #endif 4387 #endif
4356 aboutText += "</p>"; 4388 aboutText += "</p>";